一键导入
add-feature
Use when adding a feature to a production project. Full cycle: brainstorm, plan, implement, docs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when adding a feature to a production project. Full cycle: brainstorm, plan, implement, docs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when fixing a bug in a production project. Full cycle: diagnose, fix, regression test, review, docs.
Use to batch-validate all skills in this plugin. Runs deterministic repo-wide static checks (frontmatter, command delegation, cross-references, Architect model= rule, orphan references, README<->MemPalace sync) and reports pass/fail per skill.
Use when creating a new project. Bare AI shell by default; interactive menu adds docs / backend-infra / agents on demand.
Use after init-project to fill docs/product/start-project.md with AI research on competitors, monetization, valuation, and marketing.
Use when unsure which skill to use. Lists all vladyslav skills, workflow, and integration.
Quick-save the latest decision/problem/milestone to MemPalace with zero questions — derives everything from the current conversation. Use for a fast mid-session capture, or accept it when offered at task completion.
| name | add-feature |
| description | Use when adding a feature to a production project. Full cycle: brainstorm, plan, implement, docs. |
Full-cycle feature addition: idea → design → plan → implement → docs. Orchestrates superpowers skills in the right order with project-specific reminders.
Type: Architect
Apply the verify-working-directory contract from <plugin>/skills/_shared/references/verify-pwd.md: confirms CLAUDE.md exists, derives the canonical MemPalace wing name, warns on stale-wing duplicates, and establishes the mandatory path-validation rule for the rest of this skill's MemPalace reads.
Additionally, read the project name from CLAUDE.md (first heading or # <ProjectName> line).
Ask the user: "Manual mode or Auto mode?"
/superpowers:<name> in their terminal. Use when the feature is unusual, high-risk, or you want tight control.Record the chosen mode for the rest of the flow. Do not default to Auto silently — always ask.
Auto-mode guard rails (automatic STOP + ask):
scripts/quality-gate.sh), code review, or security check reports blockerAny guard rail → stop, report the situation to the user, ask what to do. Do NOT attempt to work around a guard rail silently.
Read these files before anything else (independent reads — fetch them in one parallel batch). For subagent dispatch, model tiers, and parallelism-safety rules used throughout this skill, see _shared/references/orchestration-conventions.md.
CLAUDE.mddocs/architecture/system.mddocs/architecture/api.md (if exists)docs/product/prd.mddocs/plans/tasks.mdAsk the user to describe the feature they want to add. Free text.
Manual mode: ⏸ Stop. Tell the user: "Step 3 complete. Now run /superpowers:using-git-worktrees in your terminal. When done, come back and say 'done' to continue."
Auto mode:
Invoke the superpowers:using-git-worktrees skill via the Skill tool to create a feature/<feature-name> worktree directly. If the project does not use git worktrees (e.g. not a git repo or user opted out in CLAUDE.md), create a regular feature/<feature-name> branch via git checkout -b. Record the branch name for later steps.
Existing roadmap check (both modes): Before starting brainstorming, check for an existing roadmap in two locations (in order):
docs/roadmap/ — look for a .md file whose slug matches the feature name from Step 2 (lowercased, hyphens-normalized)ROADMAP.md at the project root — check if it exists and contains phases with unchecked items relevant to this featureIf a match is found in either location, ask:
"Знайшов роадмап
<slug>. Продовжуємо з наступної незакінченої фази?"
Manual mode: ⏸ Stop. Tell the user: "Step 4 complete. Now run /superpowers:brainstorming in your terminal. When done, come back and say 'done' to continue."
Auto mode:
Invoke the superpowers:brainstorming skill via the Skill tool with the feature description from Step 2 plus the project context from Step 1. Capture the brainstorm output (design doc, key decisions, MVP cut).
Present the output to the user and ⏸ stop for approval: "Here's the brainstorm result:
This is approval point #2 (first was the feature description in Step 2). Do NOT proceed to the contract until the user says approve.
Before planning, write down the contract explicitly (3-10 lines is enough):
The contract is the alignment point between intent, code, and tests. Skipping it means tests will end up verifying what you wrote, not what you intended.
Save the contract as a section inside the design doc from Step 4, or as a separate file docs/plans/<feature>-contract.md.
Both modes: Present the contract to the user and ⏸ stop for approval — this is approval point #3. Read the contract out loud (it's 3-10 lines, trivial to verify). Do not proceed until the user approves.
Auto mode: After approval, record the contract baseline for the "contract changed during execution" guard rail: shasum -a 256 <contract path> | awk '{print $1}' > <contract path>.sha256. The gate in Step 6 (quality-gate.sh → check-plan-scope.sh) compares against this file; if the contract drifts during execution, it triggers a STOP. Delete the .sha256 file after the last batch — it is gate plumbing, not a deliverable.
Applies to: both modes. Runs after contract approval, before writing-plans.
Assess whether the feature is multi-phase using any one of:
If any condition is true, ask:
"Ця фіча виглядає багатофазно — є сенс розбити на фази з роадмапом перед тим як писати детальний план. Зробити?"
If yes:
docs/roadmap/ directory if it does not exist.docs/roadmap/<feature-slug>.md already exists, ask: "Роадмап для <slug> вже існує. Перезаписати чи зберегти старий і створити <slug>-v2.md?" — on overwrite, replace the file; on "v2", write to <slug>-v2.md and use that filename for all subsequent references in this run.docs/roadmap/<feature-slug>.md using this format:# Roadmap: <Feature Name>
> Created: YYYY-MM-DD
## Phase 1: <Name>
**Done when:** <one sentence criteria>
- [ ] Task 1
- [ ] Task 2
## Phase 2: <Name>
**Done when:** <one sentence criteria>
- [ ] Task 1
- [ ] Task 2
<!-- Add Phase 3, 4… as needed — one phase per logical milestone -->
git add docs/roadmap/<feature-slug>.md && git commit -m "docs: add roadmap for <feature-slug>"<feature-slug> derivation: feature name from Step 2, lowercased, spaces replaced with hyphens. Example: "User Authentication" → user-authentication.
If no (or gate did not fire): Proceed to Step 5 with the full feature scope as before. No file is created.
After the contract (Step 4.5) is locked:
Manual mode: ⏸ Stop. Tell the user: "Step 5 complete. Now run /superpowers:writing-plans in your terminal. When done, come back and say 'done' to continue."
Auto mode:
Invoke the superpowers:writing-plans skill via the Skill tool, feeding it the contract + brainstorm output. Capture the plan — it must list each bite-sized task, which contract piece it implements, and (crucially) which files each task will create or modify. The file list is the baseline for the "files touched outside plan" guard rail. If a roadmap was created in Step 4.7, pass the Phase 1 task list as the scope constraint — writing-plans must produce a plan that implements Phase 1 only, not the full feature.
Present the plan to the user and ⏸ stop for approval — this is approval point #4. Show:
Do not proceed to Step 6 until the user approves. Record the file lists — main thread will enforce them as guard rails.
Each task in the plan must reference which part of the contract it implements.
Tests mandate (both modes): Every task in the plan must include a "Write tests" sub-step alongside implementation — not deferred to after the feature is complete. Tests derive from the contract (Step 4.5). Remind the user of this rule before finalizing the plan.
Auto mode: Steps 6, 6.5, 7, and 8 below have an Auto-mode counterpart. If the user chose Auto in Step 0.5, read
<plugin>/skills/add-feature/references/auto-mode.mdand follow its instructions for Steps 6, 6.5, 7, and 8 instead of the Manual blocks below. Step 9 (post-implementation) is mode-agnostic and stays inline. The Manual blocks below are the default reading path.
Manual mode:
Ask the user which execution approach. Parallel agents is recommended by default.
Parallel agents (recommended): ⏸ Stop. Tell the user: "Step 6 complete. Now run /superpowers:dispatching-parallel-agents in your terminal. When done, come back and say 'done' to continue."
Subagent-driven (this session): ⏸ Stop. Tell the user: "Step 6 complete. Now run /superpowers:executing-plans in your terminal. When done, come back and say 'done' to continue."
Parallel session: ⏸ Stop. Tell the user: "Step 6 complete. Now run /superpowers:executing-plans in a new terminal. When done, come back and say 'done' to continue."
Rules that apply to every execution mode:
~/.claude/CLAUDE.md) — smallest justified change, no "while I'm here" refactors, ask the user before expanding scope.Manual mode — PR review after each chunk:
After each chunk/phase of the plan completes (not just at the very end):
⏸ Stop. Tell the user: "Chunk complete. Run /pr-review-toolkit:code-reviewer now for a focused review of what was just implemented. This is mandatory — do not skip. When done, come back and say 'done' to continue to the next chunk."
If the reviewer returns feedback → fix issues in the same chunk before moving on. Do NOT accumulate technical debt across chunks.
Repeat this step after each chunk until all chunks are done.
After ALL chunks are complete, run the deterministic gate on the branch before any reviewer looks at it:
bash <plugin>/scripts/quality-gate.sh --pwd . --base $(git merge-base HEAD <dev-branch>) --test-cmd "<project test command>"
Fix and re-run until it exits 0 — it catches the mechanical failures (failing tests, debug leftovers, conflict markers, credential-shaped strings) so review time is spent on design, not noise.
Then ⏸ Stop. Tell the user: "Step 7 complete. Now run /superpowers:requesting-code-review in your terminal for a final full-feature review. When done, come back and say 'done' to continue."
If feedback is received:
⏸ Stop. Tell the user: "Step 7 complete. Now run /superpowers:receiving-code-review in your terminal to process the feedback. When done, come back and say 'done' to continue."
⏸ Stop. Tell the user: "Step 8 complete. Now run /superpowers:finishing-a-development-branch in your terminal. When done, come back and say 'done' to continue."
After merge (both modes — auto does this without stopping, manual requires the user to confirm merge happened):
docs/roadmap/<slug>.md or ROADMAP.md — whichever was used)- [ ] with - [x] for every task that was completed**Status: Complete ✓** on the line immediately after the **Done when:** linegit add <roadmap-file> && git commit -m "docs: mark Phase N complete in <slug> roadmap"docs/product/user-stories.md — add the new feature as a storydocs/architecture/api.md — if any endpoints changeddocs/plans/tasks.md — mark completed tasksdecision record to the project wing: [WHAT] feature <name> implemented, [CONTRACT] <path>, [FILES] <list>, [DATE] <today>git diff --stat main...HEAD to produce the blast-radius summary for the report (files touched vs plan)Print architect report:
✓ Architect report:
- Feature: <description>
- Mode: <manual|auto>
- Design: <key decisions>
- Implementation: <files changed, endpoints added>
- Blast radius: <files touched> / <files planned> — <match|expanded with approval|within plan>
- Tests: <count> passing
- Auto-gate runs: <count> (auto mode) — review HIGH issues: <count>, security issues: <count>
- Guard rail triggers: <count> (auto mode) — all resolved with user approval
- Merged to: <branch>
- Merge to main: <yes|pending user approval|never on auto>
Updated:
- docs/product/user-stories.md
- docs/architecture/api.md (if changed)
- docs/plans/tasks.md
- MemPalace wing <name> — decision record added
Do NOT add translations — wait for pre-release-check phase.
Next steps:
/vladyslav:write-test-docs — generate test plan + QA checklist/vladyslav:write-user-stories — update user-stories registry/vladyslav:pre-release-check — pre-release verificationFor Auto-mode-specific instructions (Steps 6, 6.5, 7, 8) and the approval map, see <plugin>/skills/add-feature/references/auto-mode.md.