load

📁 laststance/skills 📅 12 days ago
4
总安装量
3
周安装量
#50247
全站排名
安装命令
npx skills add https://github.com/laststance/skills --skill load

Agent 安装分布

opencode 3
gemini-cli 3
antigravity 3
claude-code 3
windsurf 3
github-copilot 3

Skill 文档

Session Load

Load project context from Serena MCP memory for cross-session continuity.

<essential_principles>

Core Requirements

  • All context loading uses Serena MCP tools exclusively (no agent-specific tools)
  • Always read project_overview first if it exists (anchor memory)
  • Follow cross-references: if any memory contains “MUST read”, “CRITICAL”, or “also read” directives, obey them
  • Never skip think_about_collected_information validation at the end
  • Report loaded context as a structured summary to the user

</essential_principles>

Phase 1: Project Activation

  1. Call check_onboarding_performed to verify Serena knows this project
  2. If not onboarded: call onboarding to index the project first
  3. Call list_memories to discover all available memory keys

Phase 2: Context Loading

If memories exist (returning session):

  1. Call read_memory("project_overview") — the anchor memory
  2. Scan loaded content for cross-reference directives:
    • Look for: “CRITICAL”, “MUST read”, “also read”, “see also”
    • Read each referenced memory key
  3. Read any CRITICAL_* prefixed memories from the list
  4. Read the most recent session_* memory (sort by date in key name)

If no memories exist (first session):

  1. Suggest running onboarding and creating a project_overview memory for future sessions
  2. Present minimal context and note that /save should be run at end of session

Phase 3: Validation

  1. Call think_about_collected_information to verify context sufficiency
  2. If insufficient: read additional memories

Phase 4: Session Report

Report to the user:

## Session Loaded

- **Project**: [name]
- **Memories Loaded**: [count] ([list of keys])
- **Key Context**: [1-2 sentence summary of project state]
- **Previous Session**: [summary from session_* memory, or "None"]
- **Status**: Ready

Memory Prefix Reference

Prefix Purpose Load Priority
project_overview Project summary 1st (always)
CRITICAL_* Must-read rules 2nd (never skip)
Cross-referenced Memories referenced by loaded content 3rd
session_* Session checkpoints 4th (latest only)
plan_* Active plans 5th (if relevant)
pattern_* Learned patterns On demand
discovery_* Brainstorming results On demand
todo_* Persistent TODOs On demand

Success Criteria

  • Serena project is activated/onboarded
  • project_overview read (or noted as missing)
  • All CRITICAL_* memories read
  • Cross-reference directives followed
  • think_about_collected_information called
  • Session report presented to user