prime-expand
Skill14 starsChanged 4 months agoApache-2.0View on GitHub
Expand a vague gap into concrete questions + named source candidates via a delegated sub-agent — caller sees only the proposed pair for confirm/edit/refuse, never the expansion reasoning. Trigger /prime-expand, "expand on this", or auto-fire on handoff receipt with a thin brief. (Not for ambient "I need to know X" phrasing — that would collide with /investigate.) Single sub-agent, single turn, ≤3 candidate-source spot-checks only. Pairs with /prime-fetch (single noisy tool call) and /prime-sweep (large source-surface investigation).
In this repository70 other files it gives its agents.
- llms.txtllms.txt
- agent-mailboxSkill
- agent-outputSkill
- ask-gateSkill
- audit-coupled-constantSkill
- budget-checkSkill
- caller-optionsSkill
- cold-reviewSkill
- defuddleSkill
- design-an-interfaceSkill
- diff-recapSkill
- directives-auditSkill
- domain-checkSkill
- double-checkSkill
- extract-signalSkill
- freshness-contractSkill
- github-syncSkill
- handoff-executeSkill
- handoffSkill
- human-drawSkill
- human-mergeSkill
- human-outputSkill
- human-rewriteSkill
- improve-codebase-architectureSkill
- insight-adversarialSkill
- insight-anglesSkill
- insight-assessSkill
- insight-critiqueSkill
- insight-cross-examineSkill
- insight-exploreSkill
- insight-retroSkill
- insight-skill-gapSkill
- investigateSkill
- json-canvasSkill
- map-checkSkill
- map-initSkill
- map-maintainSkill
- map-rulesSkill
- map-thisSkill
- monorepo-depsSkill
- multi-agent-modeSkill
- new-skill-creatorSkill
- next-skillsSkill
- obsidian-basesSkill
- obsidian-cliSkill
- obsidian-markdownSkill
- orchestrate-modeSkill
- orient-gapsSkill
- orient-mapSkill
- orient-roadmapSkill
- orient-statusSkill
- plan-cleanupSkill
- plan-createSkill
- plan-deep-diveSkill
- plan-evolveSkill
- plan-executeSkill
- plan-phasesSkill
- prime-fetchSkill
- prime-sweepSkill
- prose-auditSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 8 are distinctive, and 2 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 47
If the seed is already a sharp question with named sources, do not run this skill — pass straight to /prime-fetch or /prime-sweep.
- Distinctive: line 78
Only the proposed pair returns to the lead.
- Distinctive: line 88
If the sub-agent cannot produce ≥1 question with ≥1 validated source, it emits:
- Distinctive: line 105
MUST delegate the expansion work to one sub-agent — the lead never reads sources itself.
- Distinctive: line 106
MUST cap the sub-agent's reading to ≤3 candidate-source spot-checks of ≤200 lines each.
- Distinctive: line 107
MUST emit only the proposed pair (or a refusal line) to the lead — sub-agent reasoning stays in the sub-agent's window.
- Distinctive: line 108
MUST refuse with a one-line reason if the seed cannot be expanded into ≥1 concrete question + ≥1 plausible source.
- Very specific: line 109
MUST NOT let the sub-agent run Grep, WebFetch, Bash, or any tool that produces large output — those belong to /prime-fetch or /prime-sweep.
- Distinctive: line 110
MUST NOT allow the sub-agent to spawn further sub-agents (depth-1 cap).
- Distinctive: line 111
MUST NOT require proof-of-work citations — this skill produces intent (a question + candidate sources), not factual findings.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
/prime-expand
Expand a vague gap statement into a concrete priming target — sharp question(s) + validated source candidates — via a delegated sub-agent, so the expansion reasoning never enters the caller's context. The caller sees only the proposed pair and confirms, edits, or refuses.
Structured execution spec:
protocol.yon. Read it for the canonical rules and step sequence; this file is explanation. The two must stay in sync — if you edit one, update the other and refresh the@STAMPdate.
Caller Options. Before executing, run the Caller Options protocol (
caller-options/SKILL.md): triage this invocation for material optionality across the venues and modes declared in front-matter; if one path clearly dominates, proceed silently; otherwise surface the options to the caller.
Family invariant —
/prime-*skills delegate. Every/prime-*skill uses sub-agents so the caller's context stays clean./prime-expandis the lightest member: one sub-agent, one turn, no deep reading.
Boundary
Use /prime-expand to turn a fuzzy "I should know more about X" into a sharp {question, sources[]} pair ready to feed downstream priming. Do not use it for actual investigation — that is /prime-fetch (single noisy tool call) or /prime-sweep (large source-surface, parallel sub-agents). Do not use it to gather facts for the user — that is /investigate.
Step 1 — Receive the seed gap
The seed can be a vague statement, a topic, or a worry. Examples:
- "I need to know about auth"
- "what about the cache layer?"
- "expand on yesterday's bug"
- "prime me before I touch the rate-limiter"
If the seed is already a sharp question with named sources, do not run this skill — pass straight to /prime-fetch or /prime-sweep.
Step 2 — Build the context snapshot
Assemble a short snapshot for the sub-agent only. This is the only context-bridge — the sub-agent must not see the caller's full conversation history.
- CWD, project type (language/framework if known).
- Last few files mentioned in this turn.
- The caller's current task or objective if known.
Step 3 — Brief and spawn the sub-agent
Spawn one sub-agent with a fresh context window. The brief contains:
- The seed gap, verbatim.
- The context snapshot from Step 2.
- Light scan permissions:
GlobandReadto validate candidate sources exist and look plausible (≤3 files, ≤200 lines each). No deep reading, noGrep, noWebFetch, noBash. - Output contract requiring only the proposed pair (or a refusal line).
Step 4 — Sub-agent expands
The sub-agent works in its own window:
- Parses the seed for likely subject, scope, and missing specifics.
- Generates 1–3 concrete declarative questions implied by the seed.
- Proposes ≥1 source candidate per question (file path, URL, doc reference,
the conversation above,the search-result dump in turn N). - Spot-checks candidates exist (
Glob/Read, ≤200 lines each). - Discards proposals whose sources don't exist or don't look relevant.
Step 5 — Sub-agent emits the proposed pair
Only the proposed pair returns to the lead. The sub-agent's working/reasoning stays in its own window.
Seed: <original input verbatim>
Expanded:
Q1: <concrete declarative question>
Q2: <optional second question if seed implies more than one>
Sources: [<source 1>, <source 2>, ...]If the sub-agent cannot produce ≥1 question with ≥1 validated source, it emits:
Seed: <original input verbatim>
Refused: cannot expand — <one-line reason>Step 6 — Surface for confirm / edit / refuse
The lead presents the proposed pair to the caller (or user) and waits for one of three responses:
- Confirm — emit
{question, sources[]}to the caller for direct use, or chain into/prime-fetch//prime-sweep. - Edit — caller revises questions or sources; lead re-emits the revised pair.
- Refuse — caller proceeds without priming; skill exits.
Rules
- MUST delegate the expansion work to one sub-agent — the lead never reads sources itself.
- MUST cap the sub-agent's reading to ≤3 candidate-source spot-checks of ≤200 lines each.
- MUST emit only the proposed pair (or a refusal line) to the lead — sub-agent reasoning stays in the sub-agent's window.
- MUST refuse with a one-line reason if the seed cannot be expanded into ≥1 concrete question + ≥1 plausible source.
- MUST NOT let the sub-agent run
Grep,WebFetch,Bash, or any tool that produces large output — those belong to/prime-fetchor/prime-sweep. - MUST NOT allow the sub-agent to spawn further sub-agents (depth-1 cap).
- MUST NOT require proof-of-work citations — this skill produces intent (a question + candidate sources), not factual findings.
Next Steps
/prime-fetch— if the confirmed pair needs a single noisy data-fetch resolved (Grep,WebFetch, MCP)./prime-sweep— if the confirmed pair's sources are large or numerous enough that direct reading would flood the caller's context.
Next skills. On completion, run the Next Skills protocol (
next-skills/SKILL.md): surface thenext-skillsrecommendations from front-matter for the caller to pick. Offer only — never auto-invoke.
Self-improvement. On completion, run the Self-Improvement Protocol (
self-improve/SKILL.md): if this run surfaced a concrete, blocking-or-recurring weakness in this skill, propose a specific fix for the handler to approve. Conservative — silent otherwise. Never auto-apply.
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.

