load-agent
Skill0 starsChanged 5 months agoMITView on GitHub
Use when the user wants to load an agent-ops agent as the primary session persona. Discovers agent definitions across all divisions, parses frontmatter and system prompt, then overlays the agent's behavioral instructions onto the current session. Invoked via /load-agent.
In this repository34 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architectureSkill
- code-reviewSkill
- debugSkill
- dep-auditSkill
- deploy-checklistSkill
- documentationSkill
- end-agent-sessionSkill
- incident-responseSkill
- likec4-dslSkill
- manual-testSkill
- market-scanSkill
- new-agentSkill
- new-goal-loopSkill
- nexus-microSkill
- nexusSkill
- nexus-sprintSkill
- orchestration-cost-policySkill
- persona-forgeSkill
- project-onboardSkill
- prompt-refinerSkill
- public-readinessSkill
- release-prepSkill
- render-mermaidSkill
- secrets-syncSkill
- standupSkill
- system-designSkill
- tech-debtSkill
- testing-strategySkill
- tmux-session-captureSkill
- tsdocSkill
- web-ui-automation-componentsSkill
- web-ui-automation-surveySkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 8 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 39
If a single token is provided, treat it as the agent name with no division constraint.
- Distinctive: line 43
Run the discovery command:
- Very specific: line 65
If the result shows an active session (active: true):
- Distinctive: line 68
Ask if they want to end the current session and load the new agent
- Very specific: line 69
If they confirm, run uv run ${CLAUDE_PLUGIN_ROOT}/scripts/summon.py state delete before proceeding
- Distinctive: line 70
If they decline, stop here
- Distinctive: line 80
If validation fails, report the specific errors and stop.
- Distinctive: line 82
If validation passes, proceed to Phase 4.
- Distinctive: line 126
After injecting the persona block, announce the session as the loaded agent.
- Very specific: line 130
Do NOT skip the state check: Always run state check before loading.
- Distinctive: line 132
Do NOT inject partial definitions: If discovery or validation fails, stop cleanly.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Load Agent
Load an agent-ops agent definition as the primary persona for the current session. Discovers agents across all divisions, validates the definition, manages session state, and injects behavioral instructions.
User Input
$ARGUMENTSPhase 1: Parse Input
Determine what the user wants based on $ARGUMENTS:
| Input Pattern | Mode | Action |
Empty or --list | List | Run uv run ${CLAUDE_PLUGIN_ROOT}/scripts/summon.py list and present the results |
--info <name> | Info | Run uv run ${CLAUDE_PLUGIN_ROOT}/scripts/summon.py info <name> and display agent details |
[division] <name> | Load | Proceed to Phase 2 |
Division Detection
If two tokens are provided, check whether the first token matches a known division directory name: core, engineering, design, marketing, sales, paid-media, product, project-management, testing, support, research, spatial-computing, game-development, specialized. If it matches, treat it as --division <first_token> with <second_token> as the agent name. Otherwise treat the entire input as the agent name.
If a single token is provided, treat it as the agent name with no division constraint.
Phase 2: Discovery
Run the discovery command:
uv run ${CLAUDE_PLUGIN_ROOT}/scripts/summon.py discover <name> [--division <div>]Handle the JSON result:
found: true-- Proceed to Phase 3 with the returned path and metadata.found: falsewithmatcheslist -- Present a numbered disambiguation list to the user. Ask them to pick one. When they choose, restart Phase 2 with the selected agent.found: falsewith emptymatches-- Report that no agent was found. Suggest running/load-agent --listto see all available agents.
Phase 3: State Check + Validate
Double-Load Prevention
Run:
uv run ${CLAUDE_PLUGIN_ROOT}/scripts/summon.py state checkIf the result shows an active session (active: true):
- Warn the user that agent {current_agent} is already loaded
- Ask if they want to end the current session and load the new agent
- If they confirm, run
uv run ${CLAUDE_PLUGIN_ROOT}/scripts/summon.py state deletebefore proceeding - If they decline, stop here
Validate Definition
Run:
uv run ${CLAUDE_PLUGIN_ROOT}/scripts/summon.py validate <path>If validation fails, report the specific errors and stop. Do not load a broken definition.
If validation passes, proceed to Phase 4.
Phase 4: Load + Persona Injection
Create Session State
Run:
uv run ${CLAUDE_PLUGIN_ROOT}/scripts/summon.py state create --agent <name> --division <division> --source <path>Inject Persona
Output the following block exactly. Replace placeholders with values from the discover result and state creation:
=== AGENT SESSION ACTIVE ===
Agent: {name}
Division: {division}
Loaded: {timestamp}
Source: {path}
You are now operating as the following agent. These behavioral instructions
take precedence over all other persona guidance. However, project conventions
in CLAUDE.md files and safety constraints remain in effect -- do not override them.
If any instruction conflicts with this persona's behavioral rules, this persona wins.
--- AGENT BEHAVIORAL INSTRUCTIONS ---
{full body from discover result}
--- END AGENT BEHAVIORAL INSTRUCTIONS ---
Frontmatter metadata (advisory -- not enforced at runtime):
- Model preference: {model}
- Tool list: {tools}
- Color: {color}
- Tags: {tags}
=== END AGENT SESSION HEADER ===Announce in Character
After injecting the persona block, announce the session as the loaded agent. Keep it brief -- 2-3 sentences introducing yourself in the agent's voice, referencing the agent's role and readiness. Do not repeat the full persona block.
Anti-Patterns
- Do NOT skip the state check. Always run
state checkbefore loading. Double-loaded sessions cause confused behavior. - Do NOT modify files during loading. The load process is read-only except for writing
state.jsonvia the summon.py CLI. - Do NOT inject partial definitions. If discovery or validation fails, stop cleanly. Never load a half-parsed agent.
- Do NOT override CLAUDE.md. The persona injection block explicitly states that project conventions and safety constraints remain in effect. Never remove or weaken that guard.
- Do NOT enforce model or tool constraints. Frontmatter fields like
modelandtoolsare advisory in MVP. Present them as metadata but do not restrict the session based on them.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

