Prime
Perform a comprehensive evaluation of the current codebase/project and produce a structured report covering what the project is, where it stands, and what should happen next. This is the skill to use when encountering any project for the first time, resuming work after a break, or needing a full situational assessment before making decisions.
This skill is read-only. It NEVER modifies files, commits, or pushes.
Input
Arguments: $ARGUMENTS
Optional arguments:
- A specific focus area (e.g., "testing", "deployment readiness", "documentation")
- A path to a subdirectory to scope the analysis
If no arguments are provided, evaluate the entire project from the repository root.
Instructions
Execute ALL phases below using per-phase dispatch: Phases 1, 3, and 5 run via context: fork + agent: Explore (read-only analysis, isolated context). Dispatch all three simultaneously using the Agent tool — do NOT wait for one to finish before spawning the next. They are mutually independent; only Phase 6 needs their combined output. Phase 0 (lab notebook) and Phase 6 (recommendations) run inline in the main conversation — they require full prior-phase output visibility. Phase 2 runs its git commands itself (see that phase's note).
Phase 0: Lab Notebook (Mandatory First Read)
Before any other analysis, check for LAB_NOTEBOOK.md at the repository root (and within the scoped path if $ARGUMENTS specifies a subdirectory). If it exists, read it in full before proceeding to Phase 1.
The lab notebook typically contains the most current and authoritative context for the project — active decisions, open action items, recent experiment results, and current baselines — and often contradicts or supersedes what the README claims. Reading it first prevents Phase 1-5 from producing conclusions that the lab notebook has already invalidated.
Carry forward for use throughout the remaining phases:
- Decision Log entries — inform architecture, risk, and recommendation sections
- Open Action Items — feed into open work detection and recommended next steps
- Recent experiment entries (last 3-5) — reveal what was tried, what worked, what failed
- Current Baseline measurements — use these over README descriptions when they conflict
If no LAB_NOTEBOOK.md is present, note "Lab Notebook: Absent" and proceed.
Phase 1: Project Identity
Dispatch: This phase runs via context: fork + agent: Explore. Fork an isolated Explore subagent for all file scanning and manifest reading in this phase. Return findings to parent for report assembly.
Determine what this project IS.
- Read project manifests -- Check for
package.json, pyproject.toml, Cargo.toml, go.mod, pom.xml, build.gradle, Gemfile, *.csproj, Makefile, docker-compose.yml, or similar. Extract: project name, version, description, language/runtime, declared dependencies.
- Read documentation -- Check for
README.md, CLAUDE.md, CONTRIBUTING.md, docs/, wiki/. Extract: stated purpose, architecture overview, setup instructions.
- Scan entry points -- Identify main entry points (
main.*, index.*, app.*, __main__.py, cli.*, server.*). Trace the top-level execution flow.
- Identify project type -- Classify as: library, CLI tool, web application, API service, plugin/extension, monorepo, data pipeline, mobile app, infrastructure-as-code, or other.
Output for report: Project name, type, language(s), purpose (1-3 sentences), key dependencies.
Phase 2: Repository Health
Assess the project's current state and activity.
Git history analysis — run these yourself with Bash; the values are not pre-loaded. The `!`cmd `` spans below are inert under the harness pre-pass (see ADR-0011), so they render as literal text rather than expanding. They are kept in this inert form deliberately: rewriting them into the tidy double-backtick form — the live one, per ADR-0011's escaping table — would turn on seven shell executions that have never run, four of which Bash(git:*) alone would reject for piping into head/wc. Skip this whole item when not in a git repository (see Error Handling).
- Recent commits:
!git log --oneline -20``
- Last commit date:
!git log --format='%ai' -1``
- First commit date:
!git log --format='%ai' --reverse | head -1``
- Top contributors:
!git shortlog -sn --no-merges | head -10``
- Activity last 30 days:
!git log --since="30 days ago" --oneline | wc -l``
Branch status — likewise run yourself; the spans below are inert:
- Active branches:
!git branch -a --sort=-committerdate | head -10``
- Working tree state:
!git status -s``
Open work detection -- Check for: TODO, FIXME, HACK, XXX comments across source files. Check for IMPLEMENTATION_PLAN.md, PROGRESS.md, RECOMMENDATIONS.md, open GitHub issues/PRs if gh is available.
Lab notebook -- Check for LAB_NOTEBOOK.md. If present, read it thoroughly and extract:
- Decision Log: Active decisions and their rationale — these reflect architectural and operational choices that shape what happens next
- Open Action Items: Pending follow-ups with priority and source entry — these are the project's known TODO list beyond code comments
- Recent experiment entries: Last 3-5 entries with status — reveals what was recently tried, what worked, what failed
- Current Baseline: System state measurements — more current and specific than README descriptions
The lab notebook is often the richest source of project context. Incorporate its findings throughout the report, not just in this section.
Dependency freshness -- Check lock files for staleness. Note any pinned versions that might be outdated. Check for security advisory files or npm audit/pip-audit results if available.
Output for report: Repository age, activity level (active/maintained/stale/abandoned), contributor count, working tree status, open work items, lab notebook summary (if present).
Phase 3: Code Quality & Architecture
Dispatch: This phase runs via context: fork + agent: Explore. Fork an isolated Explore subagent for all codebase structure analysis, metric collection, and CI/CD inspection. Return findings to parent for report assembly.
Evaluate the codebase structure and quality.
Project structure -- Map the directory tree (top 3 levels). Identify the architectural pattern: monolith, microservices, plugin architecture, layered, hexagonal, MVC, etc.
Code metrics:
- Total source files (by language)
- Approximate lines of code (use
wc -l on source files, exclude node_modules, venv, build artifacts)
- Largest files (potential god classes/modules)
- Circular dependency indicators
Test coverage:
- Test directory presence and structure
- Test count (if runnable without setup)
- Coverage configuration (pytest-cov, jest --coverage, etc.)
- Test-to-source ratio
CI/CD pipeline:
- Check
.github/workflows/, .gitlab-ci.yml, Jenkinsfile, Dockerfile, etc.
- What does CI run? (lint, test, build, deploy)
- Are there quality gates? (coverage thresholds, linting enforcement)
Configuration & secrets:
.env files (check .gitignore coverage)
- Config files and their complexity
- Secret management approach
Code quality signals:
- Linter configuration (eslint, ruff, clippy, golangci-lint)
- Type checking (TypeScript, mypy, pyright)
- Pre-commit hooks
- Code formatting enforcement
Output for report: Architecture pattern, code size, test coverage status, CI/CD maturity, quality tooling summary.
Phase 4: Documentation & Developer Experience
Assess how easy it is to understand and work with this project.
Documentation completeness:
- README: Does it explain setup, usage, and contribution?
- API documentation (if applicable)
- Architecture Decision Records (ADRs)
- LAB_NOTEBOOK.md (experiment log with decisions, action items, and baselines)
- Inline code comments (density and quality)
- CLAUDE.md or similar AI-context files
Developer onboarding:
- Can a new developer set up the project from README alone?
- Are there development scripts (
make dev, npm run dev, docker-compose up)?
- Is there a
CONTRIBUTING.md?
Dependency documentation:
- Are system dependencies documented?
- Are environment variables documented?
- Are third-party service requirements listed?
Output for report: Documentation grade (A-F), onboarding friction points, missing documentation.
Phase 5: Risk Assessment
Dispatch: This phase runs via context: fork + agent: Explore. Fork an isolated Explore subagent for all security posture checks, dependency scanning, and technical debt analysis. Return categorized risk items to parent for report assembly.
Identify potential problems and blockers.
Technical debt indicators:
- Large files with high complexity
- Duplicated code patterns
- Deprecated dependency usage
- TODO/FIXME density
- Disabled tests
Security posture:
- Hardcoded credentials or API keys
.env in git history
- Dependency vulnerabilities (if audit tools available)
- Input validation patterns
Operational risks:
- Single points of failure
- Missing error handling patterns
- No monitoring/logging infrastructure
- Missing backup/recovery procedures
Output for report: Risk items categorized as Critical/High/Medium/Low.
Phase 6: Recommended Next Steps
Based on ALL findings, produce a prioritized action plan.
Before constructing recommendations, review all findings from Phases 2-5 holistically. Identify shared root causes and interrelationships between issues. Group related findings into integrated corrective actions rather than listing isolated fixes. The goal is recommendations that, when executed together, produce architecturally coherent improvements — not a whack-a-mole list of patches where fixing one issue creates or worsens another.
Immediate actions (do now, < 1 hour each):
- Critical security fixes
- Broken CI/tests
- Missing .gitignore entries
Short-term improvements (this week):
- Documentation gaps
- Test coverage gaps
- Dependency updates
- Code quality quick wins
Strategic initiatives (plan and schedule):
- Architectural improvements
- New feature opportunities
- Performance optimizations
- Scalability preparations
Suggested first task:
- Based on the full analysis, recommend the single most impactful thing to do next
- Explain WHY this is the highest-leverage action
- If multiple issues share a root cause, recommend addressing that root cause rather than the individual symptoms
Output
Present findings as a structured in-conversation report with this format:
# Project Prime Report
**Project:** [name]
**Generated:** [date]
**Scope:** [full repo | specific path]
---
## 1. Project Identity
| Field | Value |
|-------|-------|
| Name | [name] |
| Type | [library/CLI/webapp/API/etc.] |
| Language(s) | [primary, secondary] |
| Version | [current version or "unversioned"] |
| Purpose | [1-3 sentence description] |
**Key Dependencies:** [top 5-10 dependencies with purpose]
---
## 2. Repository Health
| Metric | Value |
|--------|-------|
| Age | [first commit to now] |
| Last Activity | [last commit date] |
| Activity Level | [Active/Maintained/Stale/Abandoned] |
| Contributors | [count] |
| Working Tree | [Clean/Modified/Uncommitted changes] |
| Open Work | [IMPLEMENTATION_PLAN items, TODOs, issues] |
| Lab Notebook | [Present/Absent — if present: # entries, # active decisions, # open action items] |
---
## 3. Code Quality & Architecture
| Metric | Value |
|--------|-------|
| Architecture | [pattern] |
| Source Files | [count by language] |
| Lines of Code | [approximate] |
| Test Files | [count] |
| Test Coverage | [percentage or "not configured"] |
| CI/CD | [present/absent, what it runs] |
| Linting | [tool and status] |
| Type Checking | [tool and status] |
**Largest Modules:** [top 3-5 files by size]
---
## 4. Documentation
| Aspect | Grade | Notes |
|--------|-------|-------|
| README | [A-F] | [what's good/missing] |
| Setup Guide | [A-F] | [can you get running from docs alone?] |
| API Docs | [A-F or N/A] | [coverage level] |
| Architecture Docs | [A-F] | [ADRs, diagrams, etc.] |
| Code Comments | [A-F] | [density and quality] |
| **Overall** | **[A-F]** | |
---
## 5. Risk Assessment
### Critical
- [item or "None identified"]
### High
- [items]
### Medium
- [items]
### Low
- [items]
---
## 6. Recommended Next Steps
### Immediate (< 1 hour)
1. [action] -- [why]
### Short-term (this week)
1. [action] -- [why]
2. [action] -- [why]
### Strategic (plan & schedule)
1. [action] -- [why]
### Suggested First Task
> [Specific, actionable recommendation with rationale]
---
*Report generated by /prime on [date]*
Example
User: /prime
Claude: [Analyzes the codebase across all 6 phases]
# Project Prime Report
**Project:** claude-marketplace
**Generated:** 2026-02-16
...
[Full structured report]
User: /prime testing
Claude: [Focuses analysis on testing infrastructure and coverage]
# Project Prime Report (Focus: Testing)
...
User: /prime plugins/bpmn-plugin
Claude: [Scopes analysis to the bpmn-plugin subdirectory]
# Project Prime Report
**Project:** bpmn-plugin
**Scope:** plugins/bpmn-plugin
...
Error Handling
- If not in a git repository: Note this in the report, skip git-dependent analysis, proceed with file-based analysis
- If project is empty or near-empty: Produce abbreviated report noting the project appears to be in initial scaffolding phase
- If a specific tool (gh, npm, pip) is unavailable: Skip that check, note it as "unable to assess" in the report
- If the project is extremely large (>10,000 files): Use sampling -- analyze representative directories rather than exhaustive scan
- If arguments specify a path that doesn't exist: Report the error and fall back to full repository analysis
Performance
| Project Size |
Expected Duration |
| Small (< 50 files) |
30-60 seconds |
| Medium (50-200 files) |
1-3 minutes |
| Large (200-500 files) |
3-5 minutes |
| Very Large (500+ files) |
5-10 minutes |
1---2name: prime3description: Evaluate an existing codebase to produce a detailed report on project purpose, health, status, and recommended next steps. Suggest when — new session project questions, encountering repo first time, resuming after break, health/quality/documentation inquiries, architectural decisions, or "overview"/"assess" requests.4---56# Prime78Perform a comprehensive evaluation of the current codebase/project and produce a structured report covering what the project is, where it stands, and what should happen next. This is the skill to use when encountering any project for the first time, resuming work after a break, or needing a full situational assessment before making decisions.910**This skill is read-only. It NEVER modifies files, commits, or pushes.**1112## Input1314**Arguments:** `$ARGUMENTS`1516Optional arguments:17- A specific focus area (e.g., "testing", "deployment readiness", "documentation")18- A path to a subdirectory to scope the analysis1920If no arguments are provided, evaluate the entire project from the repository root.2122## Instructions2324Execute ALL phases below using per-phase dispatch: Phases 1, 3, and 5 run via `context: fork` + `agent: Explore` (read-only analysis, isolated context). **Dispatch all three simultaneously using the Agent tool — do NOT wait for one to finish before spawning the next.** They are mutually independent; only Phase 6 needs their combined output. Phase 0 (lab notebook) and Phase 6 (recommendations) run inline in the main conversation — they require full prior-phase output visibility. Phase 2 runs its git commands itself (see that phase's note).2526### Phase 0: Lab Notebook (Mandatory First Read)2728**Before any other analysis**, check for `LAB_NOTEBOOK.md` at the repository root (and within the scoped path if `$ARGUMENTS` specifies a subdirectory). If it exists, read it in full *before* proceeding to Phase 1.2930The lab notebook typically contains the most current and authoritative context for the project — active decisions, open action items, recent experiment results, and current baselines — and often contradicts or supersedes what the README claims. Reading it first prevents Phase 1-5 from producing conclusions that the lab notebook has already invalidated.3132Carry forward for use throughout the remaining phases:33- **Decision Log entries** — inform architecture, risk, and recommendation sections34- **Open Action Items** — feed into open work detection and recommended next steps35- **Recent experiment entries (last 3-5)** — reveal what was tried, what worked, what failed36- **Current Baseline measurements** — use these over README descriptions when they conflict3738If no `LAB_NOTEBOOK.md` is present, note "Lab Notebook: Absent" and proceed.3940### Phase 1: Project Identity4142> **Dispatch:** This phase runs via `context: fork` + `agent: Explore`. Fork an isolated Explore subagent for all file scanning and manifest reading in this phase. Return findings to parent for report assembly.4344Determine what this project IS.45461. **Read project manifests** -- Check for `package.json`, `pyproject.toml`, `Cargo.toml`, `go.mod`, `pom.xml`, `build.gradle`, `Gemfile`, `*.csproj`, `Makefile`, `docker-compose.yml`, or similar. Extract: project name, version, description, language/runtime, declared dependencies.472. **Read documentation** -- Check for `README.md`, `CLAUDE.md`, `CONTRIBUTING.md`, `docs/`, `wiki/`. Extract: stated purpose, architecture overview, setup instructions.483. **Scan entry points** -- Identify main entry points (`main.*`, `index.*`, `app.*`, `__main__.py`, `cli.*`, `server.*`). Trace the top-level execution flow.494. **Identify project type** -- Classify as: library, CLI tool, web application, API service, plugin/extension, monorepo, data pipeline, mobile app, infrastructure-as-code, or other.5051**Output for report:** Project name, type, language(s), purpose (1-3 sentences), key dependencies.5253### Phase 2: Repository Health5455Assess the project's current state and activity.56571. **Git history analysis** — run these yourself with Bash; the values are **not** pre-loaded. The `` `!`cmd`` `` spans below are inert under the harness pre-pass (see [ADR-0011](../../../../docs/adr/0011-dynamic-injection-doctrine.md)), so they render as literal text rather than expanding. They are kept in this inert form deliberately: rewriting them into the *tidy* double-backtick form — the live one, per ADR-0011's escaping table — would turn on seven shell executions that have never run, four of which `Bash(git:*)` alone would reject for piping into `head`/`wc`. Skip this whole item when not in a git repository (see Error Handling).58 - Recent commits: `!`git log --oneline -20``59 - Last commit date: `!`git log --format='%ai' -1``60 - First commit date: `!`git log --format='%ai' --reverse | head -1``61 - Top contributors: `!`git shortlog -sn --no-merges | head -10``62 - Activity last 30 days: `!`git log --since="30 days ago" --oneline | wc -l``63642. **Branch status** — likewise run yourself; the spans below are inert:65 - Active branches: `!`git branch -a --sort=-committerdate | head -10``66 - Working tree state: `!`git status -s``67683. **Open work detection** -- Check for: `TODO`, `FIXME`, `HACK`, `XXX` comments across source files. Check for `IMPLEMENTATION_PLAN.md`, `PROGRESS.md`, `RECOMMENDATIONS.md`, open GitHub issues/PRs if `gh` is available.69704. **Lab notebook** -- Check for `LAB_NOTEBOOK.md`. If present, read it thoroughly and extract:71 - **Decision Log:** Active decisions and their rationale — these reflect architectural and operational choices that shape what happens next72 - **Open Action Items:** Pending follow-ups with priority and source entry — these are the project's known TODO list beyond code comments73 - **Recent experiment entries:** Last 3-5 entries with status — reveals what was recently tried, what worked, what failed74 - **Current Baseline:** System state measurements — more current and specific than README descriptions7576 The lab notebook is often the richest source of project context. Incorporate its findings throughout the report, not just in this section.77785. **Dependency freshness** -- Check lock files for staleness. Note any pinned versions that might be outdated. Check for security advisory files or `npm audit`/`pip-audit` results if available.7980**Output for report:** Repository age, activity level (active/maintained/stale/abandoned), contributor count, working tree status, open work items, lab notebook summary (if present).8182### Phase 3: Code Quality & Architecture8384> **Dispatch:** This phase runs via `context: fork` + `agent: Explore`. Fork an isolated Explore subagent for all codebase structure analysis, metric collection, and CI/CD inspection. Return findings to parent for report assembly.8586Evaluate the codebase structure and quality.87881. **Project structure** -- Map the directory tree (top 3 levels). Identify the architectural pattern: monolith, microservices, plugin architecture, layered, hexagonal, MVC, etc.89902. **Code metrics:**91 - Total source files (by language)92 - Approximate lines of code (use `wc -l` on source files, exclude node_modules, venv, build artifacts)93 - Largest files (potential god classes/modules)94 - Circular dependency indicators95963. **Test coverage:**97 - Test directory presence and structure98 - Test count (if runnable without setup)99 - Coverage configuration (pytest-cov, jest --coverage, etc.)100 - Test-to-source ratio1011024. **CI/CD pipeline:**103 - Check `.github/workflows/`, `.gitlab-ci.yml`, `Jenkinsfile`, `Dockerfile`, etc.104 - What does CI run? (lint, test, build, deploy)105 - Are there quality gates? (coverage thresholds, linting enforcement)1061075. **Configuration & secrets:**108 - `.env` files (check .gitignore coverage)109 - Config files and their complexity110 - Secret management approach1111126. **Code quality signals:**113 - Linter configuration (eslint, ruff, clippy, golangci-lint)114 - Type checking (TypeScript, mypy, pyright)115 - Pre-commit hooks116 - Code formatting enforcement117118**Output for report:** Architecture pattern, code size, test coverage status, CI/CD maturity, quality tooling summary.119120### Phase 4: Documentation & Developer Experience121122Assess how easy it is to understand and work with this project.1231241. **Documentation completeness:**125 - README: Does it explain setup, usage, and contribution?126 - API documentation (if applicable)127 - Architecture Decision Records (ADRs)128 - LAB_NOTEBOOK.md (experiment log with decisions, action items, and baselines)129 - Inline code comments (density and quality)130 - CLAUDE.md or similar AI-context files1311322. **Developer onboarding:**133 - Can a new developer set up the project from README alone?134 - Are there development scripts (`make dev`, `npm run dev`, `docker-compose up`)?135 - Is there a `CONTRIBUTING.md`?1361373. **Dependency documentation:**138 - Are system dependencies documented?139 - Are environment variables documented?140 - Are third-party service requirements listed?141142**Output for report:** Documentation grade (A-F), onboarding friction points, missing documentation.143144### Phase 5: Risk Assessment145146> **Dispatch:** This phase runs via `context: fork` + `agent: Explore`. Fork an isolated Explore subagent for all security posture checks, dependency scanning, and technical debt analysis. Return categorized risk items to parent for report assembly.147148Identify potential problems and blockers.1491501. **Technical debt indicators:**151 - Large files with high complexity152 - Duplicated code patterns153 - Deprecated dependency usage154 - TODO/FIXME density155 - Disabled tests1561572. **Security posture:**158 - Hardcoded credentials or API keys159 - `.env` in git history160 - Dependency vulnerabilities (if audit tools available)161 - Input validation patterns1621633. **Operational risks:**164 - Single points of failure165 - Missing error handling patterns166 - No monitoring/logging infrastructure167 - Missing backup/recovery procedures168169**Output for report:** Risk items categorized as Critical/High/Medium/Low.170171### Phase 6: Recommended Next Steps172173Based on ALL findings, produce a prioritized action plan.174175**Before constructing recommendations**, review all findings from Phases 2-5 holistically. Identify shared root causes and interrelationships between issues. Group related findings into integrated corrective actions rather than listing isolated fixes. The goal is recommendations that, when executed together, produce architecturally coherent improvements — not a whack-a-mole list of patches where fixing one issue creates or worsens another.1761771. **Immediate actions** (do now, < 1 hour each):178 - Critical security fixes179 - Broken CI/tests180 - Missing .gitignore entries1811822. **Short-term improvements** (this week):183 - Documentation gaps184 - Test coverage gaps185 - Dependency updates186 - Code quality quick wins1871883. **Strategic initiatives** (plan and schedule):189 - Architectural improvements190 - New feature opportunities191 - Performance optimizations192 - Scalability preparations1931944. **Suggested first task:**195 - Based on the full analysis, recommend the single most impactful thing to do next196 - Explain WHY this is the highest-leverage action197 - If multiple issues share a root cause, recommend addressing that root cause rather than the individual symptoms198199## Output200201Present findings as a structured in-conversation report with this format:202203```markdown204# Project Prime Report205**Project:** [name]206**Generated:** [date]207**Scope:** [full repo | specific path]208209---210211## 1. Project Identity212213| Field | Value |214|-------|-------|215| Name | [name] |216| Type | [library/CLI/webapp/API/etc.] |217| Language(s) | [primary, secondary] |218| Version | [current version or "unversioned"] |219| Purpose | [1-3 sentence description] |220221**Key Dependencies:** [top 5-10 dependencies with purpose]222223---224225## 2. Repository Health226227| Metric | Value |228|--------|-------|229| Age | [first commit to now] |230| Last Activity | [last commit date] |231| Activity Level | [Active/Maintained/Stale/Abandoned] |232| Contributors | [count] |233| Working Tree | [Clean/Modified/Uncommitted changes] |234| Open Work | [IMPLEMENTATION_PLAN items, TODOs, issues] |235| Lab Notebook | [Present/Absent — if present: # entries, # active decisions, # open action items] |236237---238239## 3. Code Quality & Architecture240241| Metric | Value |242|--------|-------|243| Architecture | [pattern] |244| Source Files | [count by language] |245| Lines of Code | [approximate] |246| Test Files | [count] |247| Test Coverage | [percentage or "not configured"] |248| CI/CD | [present/absent, what it runs] |249| Linting | [tool and status] |250| Type Checking | [tool and status] |251252**Largest Modules:** [top 3-5 files by size]253254---255256## 4. Documentation257258| Aspect | Grade | Notes |259|--------|-------|-------|260| README | [A-F] | [what's good/missing] |261| Setup Guide | [A-F] | [can you get running from docs alone?] |262| API Docs | [A-F or N/A] | [coverage level] |263| Architecture Docs | [A-F] | [ADRs, diagrams, etc.] |264| Code Comments | [A-F] | [density and quality] |265| **Overall** | **[A-F]** | |266267---268269## 5. Risk Assessment270271### Critical272- [item or "None identified"]273274### High275- [items]276277### Medium278- [items]279280### Low281- [items]282283---284285## 6. Recommended Next Steps286287### Immediate (< 1 hour)2881. [action] -- [why]289290### Short-term (this week)2911. [action] -- [why]2922. [action] -- [why]293294### Strategic (plan & schedule)2951. [action] -- [why]296297### Suggested First Task298> [Specific, actionable recommendation with rationale]299300---301302*Report generated by /prime on [date]*303```304305## Example306307```yaml308User: /prime309310Claude: [Analyzes the codebase across all 6 phases]311312# Project Prime Report313**Project:** claude-marketplace314**Generated:** 2026-02-16315...316[Full structured report]317```318319```yaml320User: /prime testing321322Claude: [Focuses analysis on testing infrastructure and coverage]323324# Project Prime Report (Focus: Testing)325...326```327328```yaml329User: /prime plugins/bpmn-plugin330331Claude: [Scopes analysis to the bpmn-plugin subdirectory]332333# Project Prime Report334**Project:** bpmn-plugin335**Scope:** plugins/bpmn-plugin336...337```338339## Error Handling340341- If not in a git repository: Note this in the report, skip git-dependent analysis, proceed with file-based analysis342- If project is empty or near-empty: Produce abbreviated report noting the project appears to be in initial scaffolding phase343- If a specific tool (gh, npm, pip) is unavailable: Skip that check, note it as "unable to assess" in the report344- If the project is extremely large (>10,000 files): Use sampling -- analyze representative directories rather than exhaustive scan345- If arguments specify a path that doesn't exist: Report the error and fall back to full repository analysis346347## Performance348349| Project Size | Expected Duration |350|--------------|-------------------|351| Small (< 50 files) | 30-60 seconds |352| Medium (50-200 files) | 1-3 minutes |353| Large (200-500 files) | 3-5 minutes |354| Very Large (500+ files) | 5-10 minutes |