Project Analysis
Analyze a codebase — or a documented project plan — and generate a structured development backlog with quality-enforced tasks, coding conventions, and multi-agent entry points.
References
Read ALL reference files before starting. They contain the detailed instructions, templates, and checklists for each phase.
Phase 1 — Deep Analysis
| Reference |
Purpose |
| 01-read-project |
What to read, how to map architecture, tooling inventory |
| 02-extract-conventions |
Coding, architecture, testing, security, quality conventions to extract |
| 03-identify-findings |
Issue categories: Critical, High, Medium, Low |
| 04-triage-todos |
TODO/FIXME/HACK triage process |
| 05-measure-baseline |
Lint, coverage, complexity, dependency health measurement |
Phase 2 — Prioritize and Group
| Reference |
Purpose |
| 06-prioritize-and-group |
Priority assignment, size estimation, wave grouping, dependency mapping, ID assignment |
Phase 3 — Generate Output
| Reference |
Purpose |
| 07-task-format |
Per-task file template (tasks/*.md) |
| 08-backlog-format |
BACKLOG.md template with guardrails and quality baseline |
| 09-workflow-format |
Agent workflow guide, PR review checklist (tasks/README.md) |
| 10-rules-format |
How to write .ai/rules/ files — templates for all 5 core rules |
| 11-agent-pointers |
Multi-agent entry points: AGENTS.md, Claude, Copilot, Junie, Cursor, Aider |
Phase 4 — Quality Check
| Reference |
Purpose |
| 12-quality-checklist |
Verification checklists for all generated output |
Optional
| Reference |
Purpose |
| additional-rules |
Templates for domain-specific rules: API, database, deployment, git, observability, performance, accessibility, i18n |
Process
Phase 1 — Deep Analysis
- Read all source files, configs, tests, and docs per
01-read-project
- Detect existing AI tool configurations per
01-read-project "AI Tool Detection" section — record which tools are already configured
- Extract conventions per
02-extract-conventions
- Categorize findings per
03-identify-findings
- Triage TODOs per
04-triage-todos
- Measure quality baseline per
05-measure-baseline
Phase 2 — Prioritize and Group
Assign priority, estimate size, organize into dependency-ordered waves, and assign IDs per 06-prioritize-and-group.
Checkpoint — User Validation
Before generating any output files, present the user with:
Summary of findings — count by priority (N Critical, N High, N Medium, N Low)
Proposed waves — wave themes and task count per wave (e.g., "Wave A: 3 security fixes, Wave B: 5 validation tasks")
Key architectural observations — anything surprising or that requires a judgment call
Quality baseline snapshot — current coverage, lint errors, complexity hotspots
AI tool selection — Based on tool configurations detected in Phase 1, present the user with pre-selected options and ask them to confirm or adjust:
Always generated (not selectable):
AGENTS.md — Universal agent entry point (read by most AI tools)
.ai/rules/ — Canonical coding conventions (single source of truth)
Select which AI coding tools and IDEs you use (multi-select):
Pre-select any tools that already have configuration files in the project (detected in Phase 1).
Only generate pointer files for the tools the user confirms.
If none are selected, generate only AGENTS.md and .ai/rules/.
Ask the user to confirm the priorities, scope, and tool selection before proceeding to Phase 3. If the user wants to adjust priorities, re-scope, skip certain findings, or change the tool selection, update the plan before generating files.
Phase 3 — Generate Output
Generate all output files:
| Output |
Template |
tasks/*.md |
Per 07-task-format |
tasks/BACKLOG.md |
Per 08-backlog-format |
tasks/README.md |
Per 09-workflow-format |
.ai/rules/*.md |
Per 10-rules-format |
AGENTS.md, .editorconfig, and selected tool pointers |
Per 11-agent-pointers |
Phase 4 — Quality Check
Validate all output per 12-quality-checklist.
Output Structure
# Always generated:
AGENTS.md # Universal agent entry point
.ai/rules/ # Canonical rules (single source of truth)
project.md, code-style.md, testing.md, security.md, quality.md
.editorconfig # Universal editor formatting (if missing)
tasks/
BACKLOG.md # Task backlog with waves and guardrails
README.md # Agent workflow guide
A1-fix-auth-bypass.md # Individual task files
B1-add-input-validation.md
...
# Conditional (based on tool selection in Checkpoint):
.claude/CLAUDE.md # If Claude Code selected
.github/copilot-instructions.md # If GitHub Copilot selected
.github/instructions/ # If GitHub Copilot selected (path-specific)
.vscode/settings.json # If GitHub Copilot selected
.junie/guidelines.md # If JetBrains Junie selected
.cursor/rules/ # If Cursor selected
.aider.conf.yml # If Aider selected
When to Re-Run
- Major refactors or architecture changes
- Wave completion (re-assess remaining work)
- Dependency overhaul
- Backlog is >30% outdated
- Post-incident review reveals systemic issues
Re-Run Reconciliation
When output files already exist from a previous run:
tasks/BACKLOG.md — Preserve completed ([x]) and in-progress ([~]) tasks. Only update [ ] and [!] tasks. Add new findings as new tasks with new IDs (never reuse retired IDs).
tasks/ — Do not overwrite completed task files. Update or replace only [ ] task files. Create new files for new tasks.
.ai/rules/ — Update rules to reflect current codebase state. Rules are living documents and should always reflect current conventions.
- Agent entry points — Update commands and architecture descriptions if changed. Pointer structure stays the same.
- Quality Baseline — Re-measure and update the table. Compare against previous baseline to show progress.
Documentation-First Projects (New Projects from Docs)
This skill works for new projects that have feature docs and/or technical docs but little or no source code. The process adapts automatically:
- Phase 1: Reads documentation instead of source code. Extracts requirements from feature docs and architecture decisions from technical docs. Derives conventions from the documented stack rather than observing them. Most tooling will be "missing" — this becomes Wave A setup tasks.
- Phase 2: Prioritizes in build order — scaffolding → infrastructure → core features → secondary features → polish.
- Phase 3: Generates tasks referencing doc requirements instead of code snippets. Rules are derived from stack choices with clear attribution.
- Phase 4: Same quality checks apply.
See 01-read-project "Documentation-First Projects" section, 02-extract-conventions "Deriving Conventions" section, 03-identify-findings "Documentation-First Projects" section, and 06-prioritize-and-group "Documentation-First Wave Structure" for detailed guidance.
Output Summary
After generating all files, present the user with:
## Analysis Complete
**Project:** {{name}} ({{language}}/{{framework}})
**Tasks:** {{N}} across {{M}} waves
**Findings:** {{N}} Critical, {{N}} High, {{N}} Medium, {{N}} Low
### Quality Baseline
| Metric | Value |
|--------|-------|
| Coverage | {{X%}} |
| Lint errors | {{N}} |
| Type errors | {{N}} |
### Generated Files
- {{N}} task files in tasks/
- tasks/BACKLOG.md, tasks/README.md
- {{N}} rule files in .ai/rules/
- .editorconfig
- Agent entry points: AGENTS.md{{, .claude/ (Claude Code)}}{{, .github/ (Copilot)}}{{, .vscode/ (Copilot)}}{{, .junie/ (Junie)}}{{, .cursor/ (Cursor)}}{{, .aider.conf.yml (Aider)}}
(list only the tools selected by the user)
### Recommended First Action
Start with Wave A: {{wave A theme and task count}}.
Execution Checklist
[ ] Read all references/ files
[ ] Phase 1: Deep Analysis (01-05)
[ ] Phase 1: Detect existing AI tool configurations
[ ] Phase 2: Prioritize and Group (06)
[ ] Checkpoint: User validation (priorities, scope, tool selection)
[ ] Phase 3: Generate Output (07-11, respecting tool selection)
[ ] Phase 4: Quality Check (12)
[ ] Present summary to user
1---2name: project-analysis3description: Analyze an existing codebase or a documented project plan end-to-end and generate a structured, quality-enforced development backlog with prioritized tasks, coding conventions, and multi-agent configuration. Use when: (1) starting work on an existing project, (2) onboarding AI agents to a codebase, (3) creating a prioritized task backlog from scratch, (4) setting up coding standards and quality gates, (5) configuring Claude, GitHub Copilot, JetBrains Junie, Cursor, and Aider to share project rules without duplication, (6) scaffolding a new project from feature docs and technical docs. Triggers: "analyze this project", "create a task backlog", "onboard this codebase", "what needs fixing", "set up coding standards", "generate tasks", "scaffold from docs", "build this from the spec".4---56# Project Analysis78Analyze a codebase — or a documented project plan — and generate a structured development backlog with quality-enforced tasks, coding conventions, and multi-agent entry points.910## References1112Read ALL reference files before starting. They contain the detailed instructions, templates, and checklists for each phase.1314### Phase 1 — Deep Analysis1516| Reference | Purpose |17| -------------------------------------------------------------- | ----------------------------------------------------------------------- |18| [01-read-project](references/01-read-project.md) | What to read, how to map architecture, tooling inventory |19| [02-extract-conventions](references/02-extract-conventions.md) | Coding, architecture, testing, security, quality conventions to extract |20| [03-identify-findings](references/03-identify-findings.md) | Issue categories: Critical, High, Medium, Low |21| [04-triage-todos](references/04-triage-todos.md) | TODO/FIXME/HACK triage process |22| [05-measure-baseline](references/05-measure-baseline.md) | Lint, coverage, complexity, dependency health measurement |2324### Phase 2 — Prioritize and Group2526| Reference | Purpose |27| ---------------------------------------------------------------- | -------------------------------------------------------------------------------------- |28| [06-prioritize-and-group](references/06-prioritize-and-group.md) | Priority assignment, size estimation, wave grouping, dependency mapping, ID assignment |2930### Phase 3 — Generate Output3132| Reference | Purpose |33| ------------------------------------------------------ | -------------------------------------------------------------------------- |34| [07-task-format](references/07-task-format.md) | Per-task file template (`tasks/*.md`) |35| [08-backlog-format](references/08-backlog-format.md) | BACKLOG.md template with guardrails and quality baseline |36| [09-workflow-format](references/09-workflow-format.md) | Agent workflow guide, PR review checklist (`tasks/README.md`) |37| [10-rules-format](references/10-rules-format.md) | How to write `.ai/rules/` files — templates for all 5 core rules |38| [11-agent-pointers](references/11-agent-pointers.md) | Multi-agent entry points: AGENTS.md, Claude, Copilot, Junie, Cursor, Aider |3940### Phase 4 — Quality Check4142| Reference | Purpose |43| ---------------------------------------------------------- | ------------------------------------------------ |44| [12-quality-checklist](references/12-quality-checklist.md) | Verification checklists for all generated output |4546### Optional4748| Reference | Purpose |49| -------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |50| [additional-rules](references/additional-rules.md) | Templates for domain-specific rules: API, database, deployment, git, observability, performance, accessibility, i18n |5152## Process5354### Phase 1 — Deep Analysis55561. Read all source files, configs, tests, and docs per `01-read-project`572. Detect existing AI tool configurations per `01-read-project` "AI Tool Detection" section — record which tools are already configured583. Extract conventions per `02-extract-conventions`594. Categorize findings per `03-identify-findings`605. Triage TODOs per `04-triage-todos`616. Measure quality baseline per `05-measure-baseline`6263### Phase 2 — Prioritize and Group6465Assign priority, estimate size, organize into dependency-ordered waves, and assign IDs per `06-prioritize-and-group`.6667### Checkpoint — User Validation6869Before generating any output files, present the user with:70711. **Summary of findings** — count by priority (N Critical, N High, N Medium, N Low)722. **Proposed waves** — wave themes and task count per wave (e.g., "Wave A: 3 security fixes, Wave B: 5 validation tasks")733. **Key architectural observations** — anything surprising or that requires a judgment call744. **Quality baseline snapshot** — current coverage, lint errors, complexity hotspots755. **AI tool selection** — Based on tool configurations detected in Phase 1, present the user with pre-selected options and ask them to confirm or adjust:7677 **Always generated (not selectable):**78 - `AGENTS.md` — Universal agent entry point (read by most AI tools)79 - `.ai/rules/` — Canonical coding conventions (single source of truth)8081 **Select which AI coding tools and IDEs you use (multi-select):**82 - [ ] Claude Code → generates `.claude/CLAUDE.md`83 - [ ] GitHub Copilot → generates `.github/copilot-instructions.md`, `.github/instructions/`, `.vscode/settings.json`84 - [ ] JetBrains Junie / IDEA → generates `.junie/guidelines.md`85 - [ ] Cursor → generates `.cursor/rules/`86 - [ ] Aider → generates `.aider.conf.yml`8788 Pre-select any tools that already have configuration files in the project (detected in Phase 1).89 Only generate pointer files for the tools the user confirms.90 If none are selected, generate only `AGENTS.md` and `.ai/rules/`.9192Ask the user to confirm the priorities, scope, and tool selection before proceeding to Phase 3. If the user wants to adjust priorities, re-scope, skip certain findings, or change the tool selection, update the plan before generating files.9394### Phase 3 — Generate Output9596Generate all output files:9798| Output | Template |99| -------------------------------------------------------- | ------------------------ |100| `tasks/*.md` | Per `07-task-format` |101| `tasks/BACKLOG.md` | Per `08-backlog-format` |102| `tasks/README.md` | Per `09-workflow-format` |103| `.ai/rules/*.md` | Per `10-rules-format` |104| `AGENTS.md`, `.editorconfig`, and selected tool pointers | Per `11-agent-pointers` |105106### Phase 4 — Quality Check107108Validate all output per `12-quality-checklist`.109110## Output Structure111112```113# Always generated:114AGENTS.md # Universal agent entry point115.ai/rules/ # Canonical rules (single source of truth)116 project.md, code-style.md, testing.md, security.md, quality.md117.editorconfig # Universal editor formatting (if missing)118tasks/119 BACKLOG.md # Task backlog with waves and guardrails120 README.md # Agent workflow guide121 A1-fix-auth-bypass.md # Individual task files122 B1-add-input-validation.md123 ...124125# Conditional (based on tool selection in Checkpoint):126.claude/CLAUDE.md # If Claude Code selected127.github/copilot-instructions.md # If GitHub Copilot selected128.github/instructions/ # If GitHub Copilot selected (path-specific)129.vscode/settings.json # If GitHub Copilot selected130.junie/guidelines.md # If JetBrains Junie selected131.cursor/rules/ # If Cursor selected132.aider.conf.yml # If Aider selected133```134135## When to Re-Run136137- Major refactors or architecture changes138- Wave completion (re-assess remaining work)139- Dependency overhaul140- Backlog is >30% outdated141- Post-incident review reveals systemic issues142143### Re-Run Reconciliation144145When output files already exist from a previous run:1461471. **`tasks/BACKLOG.md`** — Preserve completed (`[x]`) and in-progress (`[~]`) tasks. Only update `[ ]` and `[!]` tasks. Add new findings as new tasks with new IDs (never reuse retired IDs).1482. **`tasks/`** — Do not overwrite completed task files. Update or replace only `[ ]` task files. Create new files for new tasks.1493. **`.ai/rules/`** — Update rules to reflect current codebase state. Rules are living documents and should always reflect current conventions.1504. **Agent entry points** — Update commands and architecture descriptions if changed. Pointer structure stays the same.1515. **Quality Baseline** — Re-measure and update the table. Compare against previous baseline to show progress.152153### Documentation-First Projects (New Projects from Docs)154155This skill works for new projects that have feature docs and/or technical docs but little or no source code. The process adapts automatically:156157- **Phase 1:** Reads documentation instead of source code. Extracts requirements from feature docs and architecture decisions from technical docs. Derives conventions from the documented stack rather than observing them. Most tooling will be "missing" — this becomes Wave A setup tasks.158- **Phase 2:** Prioritizes in build order — scaffolding → infrastructure → core features → secondary features → polish.159- **Phase 3:** Generates tasks referencing doc requirements instead of code snippets. Rules are derived from stack choices with clear attribution.160- **Phase 4:** Same quality checks apply.161162See `01-read-project` "Documentation-First Projects" section, `02-extract-conventions` "Deriving Conventions" section, `03-identify-findings` "Documentation-First Projects" section, and `06-prioritize-and-group` "Documentation-First Wave Structure" for detailed guidance.163164## Output Summary165166After generating all files, present the user with:167168```169## Analysis Complete170171**Project:** {{name}} ({{language}}/{{framework}})172**Tasks:** {{N}} across {{M}} waves173**Findings:** {{N}} Critical, {{N}} High, {{N}} Medium, {{N}} Low174175### Quality Baseline176| Metric | Value |177|--------|-------|178| Coverage | {{X%}} |179| Lint errors | {{N}} |180| Type errors | {{N}} |181182### Generated Files183- {{N}} task files in tasks/184- tasks/BACKLOG.md, tasks/README.md185- {{N}} rule files in .ai/rules/186- .editorconfig187- Agent entry points: AGENTS.md{{, .claude/ (Claude Code)}}{{, .github/ (Copilot)}}{{, .vscode/ (Copilot)}}{{, .junie/ (Junie)}}{{, .cursor/ (Cursor)}}{{, .aider.conf.yml (Aider)}}188 (list only the tools selected by the user)189190### Recommended First Action191Start with Wave A: {{wave A theme and task count}}.192```193194## Execution Checklist195196```197[ ] Read all references/ files198[ ] Phase 1: Deep Analysis (01-05)199[ ] Phase 1: Detect existing AI tool configurations200[ ] Phase 2: Prioritize and Group (06)201[ ] Checkpoint: User validation (priorities, scope, tool selection)202[ ] Phase 3: Generate Output (07-11, respecting tool selection)203[ ] Phase 4: Quality Check (12)204[ ] Present summary to user205```