/open-skills:prime-fetchfrom open-skills
Delegates a noisy data-fetching tool call (Grep, Glob, WebFetch, MCP search) to a sub-agent, returning only a filtered, proof-of-work-verified digest to keep the caller's context clean.
Ships in open-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Wrap a noisy data-fetching tool call in a delegated sub-agent so the raw dump lands in the sub-agent's context, not yours. The lead receives only the filtered, proof-of-work-verified digest.
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).
Family invariant —
/prime-*skills delegate. Every/prime-*skill uses sub-agents to keep the caller's context clean./prime-fetchand/prime-sweepadditionally require proof-of-work on every finding (source:line + verbatim quote ≥8 words OR averbatim-token)./prime-expandis exempt — it produces intent (a question + candidate sources), not factual findings.
What's a
verbatim-token? A discrete identifier where ≥8 prose words isn't applicable. Examples: version strings (v1.2.3), commit hashes (abc123def), function/class names (MyClass.handleRequest), numeric values (port 8080), enum values (STATUS_PENDING). Must be quoted exactly; the lead still grep-verifies findability.
Use /prime-fetch for one read-only data-fetching tool call (Grep, Glob, Read, WebFetch, or an MCP search) regardless of expected result size — the family invariant is about keeping noise out of your context, not about whether the result happens to be small. Do NOT use it for write-side calls (Edit, Write, Bash with side effects), multi-source investigation (use /prime-sweep — threshold ≥3 distinct sources OR ≥~10k tokens), or vague gaps that need articulating first (use /prime-expand). Do NOT use it to gather facts for the user — that is /investigate.
Inputs:
Grep(pattern='session', type='ts'), WebFetch(url='https://...'), mcp__claude_ai_Google_Drive__search_files(query='...')./prime-expand).If the tool call has side effects (Edit, Write, Bash with effects), refuse and tell the caller this skill is read-only.
Before dispatch, bind the worker and total invocation to finite deadlines and resource limits, with a named monitoring owner, observable progress, a cancellation handle and terminal success/failure/timeout outcomes. Use native controls; include read-only scope and no-child instructions in research briefs. On failure or timeout, cancel owned work and report retained partial results and unchecked coverage. If these controls are unavailable, do not dispatch. Mandatory delegation cannot fall back to inline source gathering; report the missing capability and stop the dependent operation.
Spawn one sub-agent (Explore for filesystem, general-purpose for mixed/web). Brief contains:
source:line + verbatim quote (≥8 words OR a verbatim-token for identifiers/versions/numerics) + 1-line relevance.source:line + quote showing where the reference was found in the fetched material.The sub-agent executes the tool call in its own context window. The raw dump lands there — not in the lead's window. The sub-agent then:
source:line + verbatim quote to each kept finding.source:line + quote.Output to the lead (structure):
Findings (verified):
- <objective>
- <finding 1>
source: <path:line-range>
quote: "<verbatim ≥8 words OR verbatim-token>"
relevance: <one line>
- <finding 2>
...
Unfollowed pointers (grounded):
- <source candidate> ← cited at <source:line>, quote "<verbatim>" — <one-line relevance>
Discarded:
- <category 1>
- <category 2>
Gaps:
- <what was looked for and not found>
Match quoted proof text and tokens as exact literal strings, using fixed-string matching or complete regex escaping; characters such as a[b] and version dots must not become regex operators. An exact match still does not establish independent provenance.
For each kept finding AND each unfollowed pointer, the lead issues a deterministic verification tool call — never memory pattern-matching. All ephemeral sources are temp-file-backed before verification — the in-context substring check is removed because it has no real tool primitive.
Temp-file path convention: use the system temp directory (Write resolves cross-platform paths transparently — on Windows: %TEMP%\… or C:\Users\<user>\AppData\Local\Temp\…; on Unix: /tmp/…). Filename pattern: prime-fetch-verify-<short-id>.txt, where <short-id> can be the sub-agent's invocation timestamp or a 6-char nonce. One temp file per verification batch; cleanup not required between waves but recommended on emit/abort.
Grep the quoted excerpt against the cited file (±3 lines of the cited range).Write, then Grep against the temp file.conversation-msg-N, search-result-#N, url-anchor#section) → before verification, materialize the cited unit from that independent capture or re-readable source to a temp file; the quote must appear within that file. Same Grep mechanism.A worker-authored dump or excerpt is not an independent capture, regardless of size. Without an independent source, apply the provenance-unverified gap branch below.
For large dumps, a worker may supply a narrow excerpt (cited unit ± 50 lines). A match against that excerpt alone checks internal consistency, not source provenance. Verify against the re-readable source or an independently retained capture of the cited unit. If unavailable, only report the item in gaps as attributed, provenance-unverified material; it is not a verified finding or pointer. Reject items whose quote or grounding is not findable.
Emit the verified findings + verified pointers + discarded-categories + gaps. The raw tool-call dump is never relayed.
source:line + verbatim quote ≥8 words OR a verbatim-token) on every finding AND every unfollowed pointer./prime-sweep or a refined re-invocation./prime-sweep — if one wave missed signal and the gap needs parallel multi-source investigation./prime-expand — if the result reveals a new line of inquiry that needs sharpening.Next skills. On completion, run the Next Skills protocol (
next-skills/SKILL.md).
Self-improvement. On completion, run the Self-Improvement Protocol (
self-improve/SKILL.md): apply its signal taxonomy and threshold to this run; surface any surviving proposal for handler approval. Conservative — silent otherwise. Never auto-apply.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub allemaar/open-skills --plugin open-skills93 skills in this plugin
/agent-mailboxTwo or more agents — any harness, any vendor — collaborate through any shared folder: share a folder, load the skill, point at it.
/agent-outputCompact agent-to-agent communication contract for worker reports, handoffs, status, blockers, and review findings. Trigger phrases: "/agent-output", "brief the worker", "make agent reports terse". Not a transport; use /agent-mailbox for delivery.
/ask-gateThe Ask-Gate Protocol (AGP). Before surfacing an AskUserQuestion, triage whether the question is genuinely the handler's call (anti-nag); ask routine questions directly after a quality checklist, but escalate high-stakes / branching / irreversible ones through /insight-critique then /insight-assess first. Trigger via /ask-gate, or automatically before any handler-facing question. Not /caller-options (routes a skill's venue/mode) or /next-skills (recommends successors) — AGP governs the question itself.
/ask-meConstructively interview someone about an idea, task, project or decision so useful work can start. Use when explicitly asked to be interviewed, including “ask me”; ordinary task requests do not start this interview./audit-code-commentsInventory the code comments in a repository, classify each one against the code it sits beside (tautology, stale, excuse, decision, keep, uncertain), then report, prune or strictly migrate them: delete noise, turn excuse comments into issue drafts, move decisions into ADRs, and optionally lock the result with a per-file comment ratchet. Edits go through a real parser with a token guard. Scales from a small module to a large repo with a pilot batch, path stages and budget gates. Trigger on /audit-code-comments, "audit the comments in this repo", "clean up code comments", "move comments to ADRs", "turn TODO comments into issues", "add a comment ratchet". Not for reviewing a diff for bugs (use /cold-review), not for prose in docs (use /prose-audit), not for duplicated constants (use /audit-coupled-constant).
/audit-coupled-constantAudit every site of a constant whose value is duplicated across multiple call sites (retry budgets, timeouts, page sizes, magic numbers, feature flags). The author-maintained `SEE ALSO` trail is documentation, not enforcement — one missed site means the trail lies. Trigger on /audit-coupled-constant, "audit budget consistency", "find all sites of this value", "check coupled invariant", "before raising this constant", or after any edit to a constant that has SEE ALSO cross-references in its comments. Pairs naturally before /cold-review on a "raise the budget" PR. Not for extract-constant refactors that consolidate scattered values into a single named import — use /improve-codebase-architecture. Not for constants enforced by the type system (TypeScript `as const` literal imported everywhere) where the compiler is the audit — skip.Other plugins' skills for the same job