From context
`.claude/context/` の context ファイルを優先度順に読み込み、新規セッションにプロジェクト理解をロードする。「コンテキスト読込」「context prime」「prime」と言われたら使う。
How this command is triggered — by the user, by Claude, or both
Slash command
/context:primeThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Prime Context
This command loads essential context for a new agent session by reading the project context documentation and understanding the codebase structure.
## Preflight Checklist
Before proceeding, complete these validation steps.
Do not bother the user with preflight checks progress ("I'm not going to ..."). Just do them and move on.
### 1. Context Availability Check
- Run: `ls -la .claude/context/ 2>/dev/null`
- If directory doesn't exist or is empty:
- Tell user: "❌ No context found. Please run /context:create first to establish project context."
- Exit gracefully
- Count...This command loads essential context for a new agent session by reading the project context documentation and understanding the codebase structure.
Before proceeding, complete these validation steps. Do not bother the user with preflight checks progress ("I'm not going to ..."). Just do them and move on.
ls -la .claude/context/ 2>/dev/nullls -1 .claude/context/*.md 2>/dev/null | wc -ltest -r ".claude/context/{file}" && echo "readable"test -s ".claude/context/{file}" && echo "has content"---)git status --short 2>/dev/null to see current stategit branch --show-current 2>/dev/null to get current branchLoad context files in priority order for optimal understanding:
Priority 1 - Essential Context (load first):
project-overview.md - High-level understanding of the projectproject-brief.md - Core purpose and goalstech-context.md - Technical stack and dependenciesPriority 2 - Current State (load second):
4. progress.md - Current status and recent work
5. project-structure.md - Directory and file organization
Priority 3 - Deep Context (load third):
6. system-patterns.md - Architecture and design patterns
7. product-context.md - User needs and requirements
8. project-style-guide.md - Coding conventions
9. project-vision.md - Long-term direction
For each file loaded:
created date should be validlast_updated should be ≥ created dateversion should be presentAfter loading context files:
git ls-files --others --exclude-standard | head -20 to see untracked filesREADME.md if it exists for additional project information.env.example or similar for environment setup needsIf critical files are missing:
project-overview.md missing: Try to understand from README.mdtech-context.md missing: Analyze package.json/requirements.txt directlyprogress.md missing: Check recent git commits for statusIf context is incomplete:
/context:update to refresh contextProvide comprehensive summary after priming:
🧠 Context Primed Successfully
📖 Loaded Context Files:
✅ Essential: {count}/3 files
✅ Current State: {count}/2 files
✅ Deep Context: {count}/4 files
🔍 Project Understanding:
- Name: {project_name}
- Type: {project_type}
- Language: {primary_language}
- Status: {current_status from progress.md}
- Branch: {git_branch}
📊 Key Metrics:
- Last Updated: {most_recent_update}
- Context Version: {version}
- Files Loaded: {success_count}/{total_count}
⚠️ Warnings:
{list any missing files or issues}
🎯 Ready State:
✅ Project context loaded
✅ Current status understood
✅ Ready for development work
💡 Project Summary:
{2-3 sentence summary of what the project is and current state}
If some files fail to load:
For large contexts:
npx claudepluginhub shin1624/claude-work-marketplace --plugin context/primeLoads AI-optimized workflow context for beads issue tracking, including rules and command reference to guide agents in using bd over markdown TODOs.
/primeLoads project context by running eza tree on directory structure and reading README.md, .claude/commands/COMMANDS.md, ai_docs/AI_DOCS.md, specs/SPECS.md.
/primeLoads project context by running eza tree on directory structure and reading README.md, .claude/commands/COMMANDS.md, ai_docs/AI_DOCS.md, specs/SPECS.md.
/primeAnalyzes codebase for agent readiness and proposes improvements. Use optional [path], --report-only for assessment without changes, or --fix-all to apply fixes automatically.
/primeLoads relevant knowledge base facts (rules, gotchas, patterns, decisions) into context before starting work. Also supports auto-priming on session start, file touch, and keyword detection.
/primePrimes fresh session context with git snapshot (branch, status, commits, stashes) and task-relevant repo analysis via subagents. Supports [task hint], --quick, --verbose.