/general:session-primerfrom general
Use this skill when starting or refreshing an agentic software engineering session and the agent needs to quickly understand a repository before working. It guides efficient inspection of codebase structure, documentation, commands, active Git state, and recent history, then outputs a compact project brief with only the facts needed to begin work.
Ships in general. 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; scripts run unread.
Prime a fresh engineering session with enough project context to work safely, without flooding the conversation. Build a compact mental model, then report only the high-signal facts.
Spend context like a budget:
scripts/prime-scan.py produces a compact repository scan: Git state, recent commits, manifests, docs, top directories, and a recommended read list.Resolve the skill directory from the active SKILL.md location, then run:
python3 "$SKILL_DIR/scripts/prime-scan.py" --repo "$REPO" --format markdown
Use --format json if you need structured data.
Identify the repo root, branch, default upstream if available, and whether the working tree is dirty. If Git is unavailable, continue with filesystem inspection.
Read high-signal project instructions first when present:
AGENTS.md, CLAUDE.md, .agents/AGENTS.md, .github/copilot-instructions.mdREADME.mddocs/README.md, architecture/deploy/contributing docsDo not inspect user-level skills or unrelated personal configuration while priming a repository.
Inventory before deep reading:
For monorepos, map workspace boundaries first, then inspect only the packages/apps relevant to the user's likely task.
Inspect enough Git context to understand the active work:
git status --porcelaingit log --oneline -10Use recent commits to infer project direction and recurring conventions. Do not summarize every commit; extract only themes that affect the session.
Read source in this order:
Stop reading when additional files repeat already-known patterns.
If a task is already known, narrow the primer to that task's likely files and dependencies.
Final output should fit on one screen. Use this structure:
## Session primer
- Project: [one-line purpose]
- Stack: [languages/frameworks/package manager]
- Shape: [apps/packages/services/docs in a concise list]
- Commands: [validated or manifest-derived commands]
- Git state: [branch, dirty/clean, recent work themes]
- Key docs read: [short path list]
- Entry points: [short path list]
- Conventions/gotchas: [only non-obvious items]
- Ready context: [what work can begin safely now]
Omit sections with no useful information. Keep each list short.
Read references/priming-heuristics.md only when the repository is large, unfamiliar, or ambiguous after the first scan. Use assets/session-brief-template.md if you need a copyable output template.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub liljamesjohn-archive/claude-code-skills --plugin general2 skills in this plugin
Other plugins' skills for the same job