plugin/skills/plan/SKILL.md
Use this skill when the user has a PRD or feature brief and needs an executable plan before code is written — to plan feature implementation across services and roles by parsing the PRD/feature brief, reading project architecture (ARCHITECTURE.md, CLAUDE.md), decomposing into work packages per service/role with complexity estimates, and running a multi-reviewer feedback loop (product-manager + solution-architect + system-architect).
npx skillsauth add avav25/ai-assets 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 /develop 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 (cross-platform via Glob / Read, or use one of):
// turbo
ls -la 2>/dev/null || dir
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>
Steps 4 through 9 — the dependency-graph and risk-table formats, the
plan-presentation template, the mandatory multi-reviewer feedback loop
(product-manager + solution-architect + system-architect, loop until all three
approved, max 5 cycles), the FEATURES.md update, and the implementation
handoff — are binding and unchanged. Read
planning-mechanics.md and apply Steps 4–9
verbatim. The plan MUST NOT hand off to /develop or update FEATURES.md
until the Step 7 multi-reviewer cycle returns approved from all three
reviewers with zero remaining critical/major findings.
ARCHITECTURE.md/CLAUDE.md missing → fall back to filesystem scan (Step 2b) to infer service map; never plan blind.planning-mechanics.md).Agent unavailable — apply the three Step 7 reviewer roles sequentially in the main thread and record the degraded fan-out in the Review History (planning-mechanics.md)./develop proceed against a stale plan (Step 9)./feature-design (produces design pack: PRD + ARD + UX + impl plan), /architecture (produces ARD, design docs, API contracts, engineering estimates)/develop (implementation per work package)Agent(product-manager) (requirements; Step 7 reviewer), Agent(solution-architect) + Agent(system-architect) (architecture; Step 7 reviewers), 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), @team-protocols (reviewer spawning primitives, Step 7)planning-mechanics.md — Steps 4–9 binding detail (dependency graph, risk table, plan template, multi-reviewer cycle, FEATURES.md, handoff) — Read + apply verbatimdevelopment
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.