.claude/skills/feature-plan/SKILL.md
Plan feature implementation across services and roles — parse requirements, understand project architecture (ARCHITECTURE.md, CLAUDE.md), decompose into work packages per service/role, estimate complexity, produce an actionable implementation plan. Part of the umbrella feature workflow.
npx skillsauth add avav25/ai-assets feature-planInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Plan a feature implementation by understanding the project architecture, decomposing work into service-level and role-level packages, and producing an actionable plan. This is the planning phase — no code is written here. Output feeds into /feature-dev for execution.
Gather the feature specification from the user:
If the specification is ambiguous or incomplete — ask before proceeding. Do not assume missing requirements.
Read and internalize the project's structure to plan correctly:
Read the following files (if they exist):
ARCHITECTURE.md — system overview, component boundaries, data flow, service mapCLAUDE.md (root) — tech stack declaration, project structure, conventionsCLAUDE.md files — per-service/module context and stack infoExtract:
If documentation is incomplete or absent, scan the filesystem:
// turbo
ls -la (or dir for Windows)
Look for:
packages/, services/, apps/, root package.json with workspaces, Nx/Turborepo configCLAUDE.md, one tech stackterraform/, infra/, k8s/, helm/, docker-compose.ymlpackage.json, pom.xml, requirements.txt, go.mod, *.csproj per serviceCreate a map of services/modules the feature touches:
## Service Map
| Service/Module | Tech Stack | Role | Affected by Feature |
|---|---|---|---|
| [name] | [lang + framework] | @[role] | [yes/no — how] |
| [name] | [lang + framework] | @[role] | [yes/no — how] |
| infrastructure | Terraform / K8s | Agent(devops-engineer) | [yes/no — how] |
Break the feature into work packages — each package is a self-contained unit of work scoped to one service/module and one role.
Group changes by responsibility:
| Work Stream | Role | Scope |
|---|---|---|
| Frontend | Agent(frontend-engineer) | UI components, pages, client-side logic, API integration |
| Backend API | Agent(java-engineer) / Agent(python-engineer) | Endpoints, business logic, data access, validation |
| Data Layer | Agent(db-engineer) | Database schema, migrations, queries, indexing, optimization |
| Infrastructure | Agent(devops-engineer) | Terraform, Docker, K8s, config, secrets |
| Cloud Architecture | Agent(cloud-architect) | Cloud platform design, landing zones, networking, cost optimization |
| CI/CD Architecture | Agent(devops-architect) | Pipeline design, deployment strategy, GitHub org governance, platform engineering |
| ML / Data | Agent(ml-engineer) | Models, pipelines, feature engineering. For LLM/RAG/agent features also consult context-engineering skill |
| Data Pipelines | Agent(data-engineer) | ETL/ELT, data warehousing, Spark, dbt, Airflow |
| Mobile | Agent(mobile-engineer) | React Native, Flutter, iOS, Android apps |
| Marketing Content | Agent(marketing-strategist) | Positioning, messaging, GTM, landing pages |
| Architecture | Agent(system-architect) | System design, ARCHITECTURE.md, component boundaries, tech selection |
| Cross-cutting | Agent(software-engineer) | Shared libraries, contracts, API specs |
Only include work streams that the feature actually requires. Do not add empty streams.
For each work stream, create ordered work packages:
### [Work Stream]: [Service Name] — @[role]
#### WP-[N]: [Title]
- **Description**: What to implement
- **Files**: Expected files to create/modify
- **Dependencies**: Which WPs must complete first
- **Acceptance criteria**: How to verify this WP is done
- **Complexity**: S (hours) / M (day) / L (days) / XL (week+)
Rules for decomposition:
For features spanning multiple services, explicitly document:
<integration_points>
Visualize the execution order:
## Dependency Graph
WP-1: [DB migration]
└─► WP-2: [Backend API]
├─► WP-3: [Frontend integration]
└─► WP-4: [Infrastructure/config]
WP-5: [Tests] ← depends on WP-2, WP-3
Identify:
Evaluate risks for each work stream:
| Risk | Impact | Likelihood | Mitigation | |---|---|---|---| | [risk description] | High/Med/Low | High/Med/Low | [mitigation strategy] |
Common risks to evaluate:
Compile the full plan and present to the user:
# Feature Plan: [Feature Name]
## Goal
[1–2 sentences]
## Architecture Impact
- Services affected: [list]
- New services: [if any]
- Database changes: [yes/no — summary]
- Infrastructure changes: [yes/no — summary]
## Work Packages
### Stream 1: [name] — @[role]
| WP | Title | Complexity | Dependencies | Status |
|----|-------|------------|--------------|--------|
| WP-1 | [title] | M | — | planned |
| WP-2 | [title] | S | WP-1 | planned |
### Stream 2: [name] — @[role]
| WP | Title | Complexity | Dependencies | Status |
|----|-------|------------|--------------|--------|
| WP-3 | [title] | L | WP-1 | planned |
## Critical Path
WP-1 → WP-2 → WP-5 (estimated: [timeframe])
## Risks
[table from Step 5]
## Next Step
Run `/feature-dev` per work package, applying the designated role.
Wait for user approval. The user may reorder, split, merge, or remove work packages.
After the plan is approved, apply Agent(product-manager) and update FEATURES.md:
FEATURES.md does not exist — create it at the project rootplannedfeatures/ directory and link from FEATURES.mdAfter approval, guide execution:
/feature-dev for eachplanned → in_progress → done/product-mgmt (produces PRD), /architecture (produces ARD, design docs, API contracts, engineering estimates)/feature-dev (implementation per work package)Agent(product-manager) (requirements), Agent(solution-architect) / Agent(system-architect) (architecture), Agent(cloud-architect) (cloud platform), Agent(devops-architect) (CI/CD architecture), stack-specific roles (work packages)context-engineering skill (context pipeline design, RAG, memory, agent harness — for AI/LLM feature work packages)development
Use this skill when running the recurring (daily) knowledge-base rescan for a repo that already has knowledge/.knowledge-sync.yml — the main-thread dispatcher that reads the config, computes the git delta since last_scanned_sha, maps changed paths to affected doc areas, early-exits cheaply when nothing changed, then fans out one Agent(content-writer) per affected area, applies the propose/direct update policy, advances the baseline only on success, and writes an L4 run log — all with the G1 untrusted-content choke-point, secret-scan, deny-list, and budget controls woven in. For first-time setup use /knowledge-sync-init.
development
Use this skill when bootstrapping scheduled knowledge-base sync for a repo that has no knowledge/.knowledge-sync.yml yet — to run one-time setup that detects the knowledge_root from CLAUDE.md/AGENTS.md, maps doc areas to source globs, records opt-in external sources (Linear/Notion/WebFetch, all disabled by default), captures a baseline last_scanned_sha, sets the per-area update policy, generates or seeds knowledge/CONVENTIONS.md, provisions the L4 memory dir, and offers to register the daily routine. Routes ongoing recurring sync operations to /knowledge-sync.
tools
Use this skill when bootstrapping a target repository to be ai-skills-aware — on the first run of any ai-skills workflow in a fresh repo, when adopting the ai-skills plugin in an existing repo, or after upgrading to a plugin version that adds new memory paths or templates, including when the user does not say "init" but asks to "set up" or "onboard" the repo — to detect codebase type, create CLAUDE.md + AGENTS.md scaffolding, initialize the .ai-skills-memory/ directory tree from L1 templates, and configure .gitignore. Idempotent — safe to re-run. Accepts `--codebase-type <type>` and `--overwrite`. Not for re-initializing only memory — use `/memory-init` instead.
tools
Use this skill when extending, repairing, or improving plugin assets, when ingesting a `/feedback` report as a fix-cycle backlog, or when you do not remember which lower-level command is right for the job — the umbrella workflow for ai-skills plugin-asset authoring and maintenance: creating, auditing, fixing, improving, refactoring, and migrating skills, agents, rules, hooks, prompts, schemas, and rubrics inside the plugin. Auto-classifies the request, loads the right knowledge skills (`@prompt-engineering`, `@context-engineering`, `@team-protocols`), and spawns the right subagents (`prompt-engineer`, `system-architect`, `python-engineer`, `software-engineer`, `qa-engineer`, `eval-judge`) via the `Agent` tool.