prime

A command that loads key information about a software project into the current session. It reads items such as the project manifest, directory structure, recent commits, status, project instructions, README, entry point, and relevant architecture records.

In plain words
What is it for?
Use it when starting in a new repository, returning after a long break, or switching projects and needing its structure, setup, history, and conventions summarized.
Why use it?
It reduces the need to explain an unfamiliar repository from scratch. The agent receives recent project context before answering or working.

Command for Claude Code

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.

agentmods
npx agentmods add commands/khaledsaeed18/dotclaude/prime
Clone the repo
git clone --depth 1 https://github.com/KhaledSaeed18/dotclaude

Made for: Claude Code.

Per session 63 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 694 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00063 $0.00694
Opus 5 $0.00032 $0.00347
Sonnet 5 $0.00013 $0.00139
Haiku 4.5 $0.00006 $0.00069

Measured 2d ago against content hash b2d079023d7f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

prime 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 2d 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.

.claude-plugin/plugins/productivity/commands/prime.md · 65 lines

How it starts

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

Context

Scope (optional): $ARGUMENTS

Project manifest:

!cat package.json 2>/dev/null || cat pyproject.toml 2>/dev/null || cat Cargo.toml 2>/dev/null || cat go.mod 2>/dev/null || echo "(no manifest found)"

Directory structure (top two levels):

!find . -maxdepth 2 -not -path '*/.git/*' -not -path '*/node_modules/*' -not -path '*/__pycache__/*' -not -path '*/dist/*' -not -path '*/.next/*' | sort | head -60

Recent commits:

!git log --oneline -15 2>/dev/null || echo "(not a git repository)"

Active branch and status:

!git status --short 2>/dev/null | head -20

Task

Read the files above and any additional ones needed to build a working mental model of this project. Then deliver a concise session brief.

Step 1: Extend the read

Beyond what is already injected above, read:

  • CLAUDE.md or CLAUDE.local.md if present (project-specific conventions for this session)
  • README.md or README (project purpose and setup)
  • The main entry point for the project (the main or index file, the root route file, or the top-level src/ directory)
  • Any architecture decision records (docs/adr/, decisions/, or similar) if the scope argument names an area that would benefit from them

If $ARGUMENTS is set, focus the read on that path or module rather than the full project.

Step 2: Identify what matters right now

From the git log and status:

  • What work is in progress (uncommitted or staged changes)?
  • What was the last significant change (most recent meaningful commit)?
  • Are there any open merge conflicts or rebase states?

Step 3: Deliver the session brief

Respond with four short sections, each under five lines:

Project: One sentence on what this project does and its primary tech stack.

Structure: The two or three most important directories and what lives in each. Skip boilerplate folders (node_modules, dist, .git).

Recent work: What the last few commits changed and whether any of that work is unfinished.

Read the full file on GitHub · 65 lines

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. 2d ago First seen · 65 lines · 63 tokens per session scan A b2d079023d7f

Subscribe to this mod's changes

prime is a command published in the GitHub repository KhaledSaeed18/dotclaude (4 stars, last pushed 7d ago), licensed MIT. It adds 63 tokens to every session and 694 once invoked, about $0.0003 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-31.