Creates prioritized evolution roadmaps for brownfield projects by identifying gaps between codebase analysis and constitution requirements.
From humaninloopnpx claudepluginhub deepeshbodh/human-in-loop --plugin humaninloopThis skill uses the workspace's default tool permissions.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Executes pre-written implementation plans: critically reviews, follows bite-sized steps exactly, runs verifications, tracks progress with checkpoints, uses git worktrees, stops on blockers.
Violating the letter of the rules is violating the spirit of the rules.
Create evolution roadmaps that identify gaps between current codebase state and constitution requirements. Produces prioritized gap cards with dependencies, enabling incremental improvement without overwhelming teams.
humaninloop:analysis-codebase firsthumaninloop:authoring-constitution or humaninloop:brownfield-constitution firsthumaninloop:plan insteadTo create an evolution roadmap, both inputs are REQUIRED:
Codebase Analysis (.humaninloop/memory/codebase-analysis.md)
Constitution (.humaninloop/memory/constitution.md)
No exceptions:
If inputs are missing, create them first using REQUIRED: humaninloop:analysis-codebase and humaninloop:authoring-constitution.
For each Essential Floor category, check status from codebase analysis:
| Status | Action |
|---|---|
present | No gap needed |
partial | Create gap for missing aspects |
absent | Create gap for full implementation |
Example:
Codebase Analysis shows:
- Security: partial (has auth, missing input validation)
- Testing: partial (has tests, coverage at 45%)
- Error Handling: present
- Observability: absent
Gaps to create:
- GAP-001: Implement input validation (Security)
- GAP-002: Increase test coverage to 80% (Testing)
- GAP-003: Implement structured logging (Observability)
- GAP-004: Add correlation IDs (Observability)
For each constitution principle, check if codebase complies:
Example:
Constitution Principle: "API responses MUST include correlation IDs"
Codebase Analysis: "Correlation IDs: absent"
→ Create GAP-005: Add correlation IDs to API responses
Assign priority based on:
| Priority | Criteria | Examples |
|---|---|---|
| P1 | Security issues, blocking problems, MUST violations | Auth gaps, data exposure risks |
| P2 | Testing/error handling, SHOULD violations | Coverage gaps, missing error handling |
| P3 | Observability, MAY items, nice-to-haves | Logging improvements, metrics |
Determine which gaps block or enable others:
No exceptions:
Each gap uses the hybrid format (structured header + prose body):
### GAP-XXX: [Title]
| Aspect | Value |
|--------|-------|
| Priority | P1/P2/P3 |
| Category | Security/Testing/ErrorHandling/Observability/Other |
| Blocks | [What this prevents] |
| Enables | [What fixing unlocks] |
| Depends On | GAP-YYY, GAP-ZZZ (or "None") |
| Effort | Small/Medium/Large |
**Current state**: [Factual description from codebase-analysis.md]
**Target state**: [What constitution requires]
**Suggested approach**: [Actionable guidance for addressing]
**Related files**:
- `path/to/relevant/file.ts`
- `path/to/another/file.py`
Every gap card MUST include all fields. Incomplete gap cards are not acceptable.
No exceptions:
# Evolution Roadmap
> Generated: [ISO timestamp]
> Based on: codebase-analysis.md, constitution.md
> Status: active
---
## Overview
[1-2 sentence summary of gap analysis findings]
**Total Gaps**: N
- P1 (Critical): X
- P2 (Important): Y
- P3 (Nice-to-have): Z
---
## Gap Summary
| ID | Title | Priority | Category | Depends On | Effort |
|----|-------|----------|----------|------------|--------|
| GAP-001 | [title] | P1 | Security | None | Medium |
| GAP-002 | [title] | P2 | Testing | GAP-001 | Large |
| ... | ... | ... | ... | ... | ... |
---
## Dependency Graph
[Foundation] └── GAP-001: [title] └── GAP-002: [title] └── GAP-005: [title]
[Parallel Track] └── GAP-003: [title] └── GAP-004: [title]
---
## Gap Cards
[Individual gap cards in priority order]
---
## Maintenance Protocol
[Standard maintenance instructions]
| Priority | Trigger | Timeline Guidance |
|---|---|---|
| P1 | Security gaps, constitution MUST violations, blocking issues | Address before new feature work |
| P2 | Testing gaps, error handling gaps, SHOULD violations | Address in next iteration |
| P3 | Observability gaps, MAY items, improvements | Address when convenient |
| Effort | Scope | Examples |
|---|---|---|
| Small | Single file, isolated change | Add validation to one endpoint |
| Medium | Multiple files, moderate scope | Implement logging across service |
| Large | Architectural change, significant scope | Restructure error handling |
Before finalizing roadmap, ALL items MUST be checked:
No exceptions:
| Anti-Pattern | Problem | Fix |
|---|---|---|
| Gap overload | 50+ gaps overwhelms team | Focus on P1/P2, defer P3 |
| Vague gaps | "Improve testing" | Specific: "Increase coverage from 45% to 80%" |
| Missing dependencies | Gaps in wrong order | Trace what blocks what |
| No effort estimates | Can't prioritize work | Add Small/Medium/Large |
| Stale roadmap | Gaps addressed but not updated | Note "Addressed: GAP-XXX" in commits |
If any of these thoughts arise, STOP immediately:
All of these mean: Rationalization is occurring. Restart with proper process.
| Excuse | Reality |
|---|---|
| "I know the gaps already" | Knowledge ≠ documentation. Future agents need the roadmap to understand priorities. |
| "Simple codebase, no formal roadmap needed" | Simple codebases have hidden gaps. Systematic process reveals what intuition misses. |
| "We can prioritize informally" | Informal prioritization leads to P3 work before P1. Document it or watch priorities drift. |
| "Dependencies are obvious" | Obvious to you now ≠ obvious to team later. Dependency graphs prevent wasted work. |
| "Codebase analysis is enough" | Analysis describes current state. Roadmap bridges current state to target state. Different purpose. |
| "This is just overhead" | Roadmap prevents rework from wrong-order fixes. Investment, not overhead. |
| "Quick fixes first, roadmap later" | "Later" becomes never. Quick fixes accumulate into unmapped chaos. |
When agents in /plan, /tasks, /implement address roadmap gaps:
Agents should read .humaninloop/memory/evolution-roadmap.md to: