prime-sweep

prime-sweep is a skill for Claude Code from allemaar/open-skills. It costs 127 tokens per session (2,846 once invoked), scanned A, original, Apache-2.0.

A skill that gathers useful context from many source files, packages, or folders by sending the reading work to separate agents.

In plain words
What is it for?
Use it to inspect large codebases before making changes, especially when information is spread across multiple files or packages.
Why use it?
It reduces the amount of raw source text the main agent must read while keeping findings tied to their source locations.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents; names the TodoWrite tool; mentions Claude Code.

Part of the open-skills plugin — 70 skills shipped together

Good fit Use it to inspect large codebases before making changes, especially when information is spread across multiple files or packages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/allemaar/open-skills/prime-sweep
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add allemaar/open-skills --skill prime-sweep
Clone the repo
git clone --depth 1 https://github.com/allemaar/open-skills

Made for: Claude Code.

Or install open-skills, the plugin that ships this one along with the rest of its 70 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for prime-sweep

README.md
[![agentmods](https://agentmods.dev/badge/skills/allemaar/open-skills/prime-sweep/github.svg)](https://agentmods.dev/skills/allemaar/open-skills/prime-sweep)
Your own site
<a href="https://agentmods.dev/skills/allemaar/open-skills/prime-sweep"><img src="https://agentmods.dev/badge/skills/allemaar/open-skills/prime-sweep/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for prime-sweep

Your own site · 80×15
<a href="https://agentmods.dev/skills/allemaar/open-skills/prime-sweep"><img src="https://agentmods.dev/badge/skills/allemaar/open-skills/prime-sweep.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 127 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,846 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00127 $0.02846
Opus 5 $0.00063 $0.01423
Sonnet 5 $0.00025 $0.00569
Haiku 4.5 $0.00013 $0.00285

Measured 12d ago against content hash 660f30995c15, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

prime-sweep scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/prime-sweep/SKILL.md · 180 lines

How it starts

The opening of the file, as written. The whole thing — 180 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/prime-sweep

Prime the calling agent with high-signal context from large source surfaces by dispatching parallel delegated sub-agents. The calling agent never reads the sources — sub-agents absorb the noise, return only digested findings + source:line pointers. Full proof-of-work verification on every finding.

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 @STAMP date.

Caller Options. Before executing, run the Caller Options protocol (caller-options/SKILL.md). Modes here are the input categories — single-source / multi-source / discovery / mixed — which shape how sub-agents are sliced.

Family invariant — /prime-* skills delegate. Every /prime-* skill uses sub-agents to keep the caller's context clean. /prime-fetch and /prime-sweep additionally require proof-of-work on every finding (source:line + verbatim quote ≥8 words OR a verbatim-token). /prime-expand is exempt — it produces intent, not findings. See /prime-fetch for the verbatim-token definition.

Boundary

Use /prime-sweep when the source surface is too large to read directly (threshold: ≥3 distinct sources OR ≥~10k tokens) and you need primed context from it. Do NOT use it for a single noisy tool call (use /prime-fetch), a vague gap that needs articulating first (use /prime-expand), or work execution (use /orchestrate-mode or /multi-agent-mode). Do NOT use it for post-hoc review (use /cold-review).

Step 1 — Trigger routing + gate

Identify the trigger:

  • Explicit — user invoked /prime-sweep directly.
  • Handoff-chained — auto-fired on handoff receipt with listed sources.
  • Expand-chained — chained from /prime-expand confirmed pair.

If the trigger is a handoff with no listed source, refuse and recommend /prime-expand first — do not invent sources. If the gate refuses, the protocol terminates immediately; the caller proceeds without priming.

Read the full file on GitHub · 180 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 180 lines · 127 tokens per session scan A 660f30995c15

Subscribe to this mod's changes

prime-sweep is a skill published in the GitHub repository allemaar/open-skills (14 stars, last pushed yesterday), licensed Apache-2.0. It adds 127 tokens to every session and 2,846 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

weekly-digests

Generate a serial week-by-week narrative digest of a project's full claude-mem timeline. Splits the timeline into per-ISO-week files, then runs one consecutive subagent per week — each receiving the prior week's carry-forward block — to produce one chapter per ISO week of data. Use when asked for "weekly digests"…

thedotmack/claude-mem · 93 tokens

cloud-sync

Set up or check claude-mem cloud sync with cmem.ai Pro. Use when the user says "set up cloud sync", "sync my memories", "cmem pro", "cloud backup", "sync status", or wants their memory database backed up or synced to their cmem.ai account.

thedotmack/claude-mem · 64 tokens

long-context

Extend context windows of transformer models using RoPE, YaRN, ALiBi, and position interpolation techniques. Use when processing long documents (32k-128k+ tokens), extending pre-trained models beyond original context limits, or implementing efficient positional encodings. Covers rotary embeddings, attention biases…

davila7/claude-code-templates · 74 tokens

hive.note-taking

Maintain a free-form scratchpad of decisions, extracted values, and open questions so context pruning doesn't lose anything you still need.

aden-hive/hive · 30 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens

vellum-memory-v3-migration

One-time migration of an existing memory-v2 concept corpus into the memory-v3 section-grain "wiki" — topical articles with a stand-alone lead and queryable sections — with loss-proof staging, assistant-reviewed authoring, and a retrieval-eval gate before cutover.

vellum-ai/vellum-assistant · 63 tokens