一键导入
complex-feature-dev
Full-cycle 7-phase feature development workflow with persistent file-based planning (task_plan.md, findings.md, progress.md) as macro memory.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Full-cycle 7-phase feature development workflow with persistent file-based planning (task_plan.md, findings.md, progress.md) as macro memory.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | complex-feature-dev |
| version | 1.1.0 |
| description | Full-cycle 7-phase feature development workflow with persistent file-based planning (task_plan.md, findings.md, progress.md) as macro memory. |
| user-invocable | true |
| allowed-tools | ["Read","Write","Edit","Bash","Glob","Grep"] |
| hooks | {"PreToolUse":[{"matcher":"Write|Edit|Bash|Read|Glob|Grep","hooks":[{"type":"command","command":"HOME_DIR=\"$(cd ~ 2>/dev/null && pwd)\"\nSCRIPT_DIR=\"$(ls -dt \"${HOME_DIR}/.claude/plugins/cache/complex-dev-skills/complex-feature-dev\"/*/scripts 2>/dev/null | head -1)\"\nif [ -z \"${SCRIPT_DIR}\" ]; then\n CAND=\"${HOME_DIR}/.claude/plugins/marketplaces/complex-dev-skills/claude/plugins/complex-feature-dev/scripts\"\n if [ -d \"${CAND}\" ]; then\n SCRIPT_DIR=\"${CAND}\"\n fi\nfi\nif [ -z \"${SCRIPT_DIR}\" ]; then\n echo \"[complex-feature-dev] ERROR: cannot locate plugin scripts directory.\" >&2\n echo \"[complex-feature-dev] Expected either:\" >&2\n echo \" - ~/.claude/plugins/cache/complex-dev-skills/complex-feature-dev/<version>/scripts\" >&2\n echo \" - ~/.claude/plugins/marketplaces/complex-dev-skills/claude/plugins/complex-feature-dev/scripts\" >&2\n exit 0\nfi\nIS_WINDOWS=0\nif [ \"${OS-}\" = \"Windows_NT\" ]; then\n IS_WINDOWS=1\nelse\n UNAME_S=\"$(uname -s 2>/dev/null || echo '')\"\n case \"$UNAME_S\" in\n CYGWIN*|MINGW*|MSYS*) IS_WINDOWS=1 ;;\n esac\nfi\n\nROOT=\"$(git rev-parse --show-toplevel 2>/dev/null || pwd)\"\nPLAN_FILE=\"${ROOT}/task_plan.md\"\nFINDINGS_FILE=\"${ROOT}/findings.md\"\nPROGRESS_FILE=\"${ROOT}/progress.md\"\n\nprint_plan_head() {\n local file=\"$1\"\n if command -v head >/dev/null 2>&1; then\n head -30 \"$file\"\n elif command -v sed >/dev/null 2>&1; then\n sed -n '1,30p' \"$file\"\n elif command -v pwsh >/dev/null 2>&1; then\n pwsh -NoProfile -Command \"Get-Content -Path \\\"$file\\\" -TotalCount 30\"\n elif command -v powershell >/dev/null 2>&1; then\n powershell -NoProfile -Command \"Get-Content -Path \\\"$file\\\" -TotalCount 30\"\n else\n cat \"$file\"\n fi\n}\n\ninit_plan_files() {\n # Prefer bash init script first (works on Windows Git Bash/MSYS/WSL too).\n if command -v bash >/dev/null 2>&1; then\n bash \"$SCRIPT_DIR/init-session.sh\" >/dev/null 2>&1 && return 0\n fi\n\n if [ -x \"$SCRIPT_DIR/init-session.sh\" ]; then\n \"$SCRIPT_DIR/init-session.sh\" >/dev/null 2>&1 && return 0\n fi\n\n # If bash isn't available, try PowerShell (Windows).\n if [ \"$IS_WINDOWS\" -eq 1 ]; then\n if command -v powershell >/dev/null 2>&1; then\n powershell -NoProfile -ExecutionPolicy Bypass -File \"$SCRIPT_DIR/init-session.ps1\" >/dev/null 2>&1 && return 0\n fi\n if command -v pwsh >/dev/null 2>&1; then\n pwsh -NoProfile -ExecutionPolicy Bypass -File \"$SCRIPT_DIR/init-session.ps1\" >/dev/null 2>&1 && return 0\n fi\n fi\n\n return 1\n}\n\n\nif [ -f \"$PLAN_FILE\" ] && [ -f \"$FINDINGS_FILE\" ] && [ -f \"$PROGRESS_FILE\" ]; then\n print_plan_head \"$PLAN_FILE\"\nelse\n echo \"[complex-feature-dev] Planning files not found (task_plan.md/findings.md/progress.md). Initializing...\"\n init_plan_files || true\n\n ROOT=\"$(git rev-parse --show-toplevel 2>/dev/null || pwd)\"\n PLAN_FILE=\"${ROOT}/task_plan.md\"\n FINDINGS_FILE=\"${ROOT}/findings.md\"\n PROGRESS_FILE=\"${ROOT}/progress.md\"\n\n if [ -f \"$PLAN_FILE\" ] && [ -f \"$FINDINGS_FILE\" ] && [ -f \"$PROGRESS_FILE\" ]; then\n echo \"[complex-feature-dev] Initialized planning files.\"\n print_plan_head \"$PLAN_FILE\"\n else\n echo \"[complex-feature-dev] Init failed. Run manually:\"\n echo \" bash \\\"$SCRIPT_DIR/init-session.sh\\\"\"\n echo \" pwsh -ExecutionPolicy Bypass -File \\\"$SCRIPT_DIR/init-session.ps1\\\"\"\n fi\nfi\n"}]}],"PostToolUse":[{"matcher":"Write|Edit","hooks":[{"type":"command","command":"echo '[complex-feature-dev] Update planning files with brief macro notes (overall status / current micro-phase / key decisions).'"}]}],"Stop":[{"hooks":[{"type":"command","command":"HOME_DIR=\"$(cd ~ 2>/dev/null && pwd)\"\nSCRIPT_DIR=\"$(ls -dt \"${HOME_DIR}/.claude/plugins/cache/complex-dev-skills/complex-feature-dev\"/*/scripts 2>/dev/null | head -1)\"\nif [ -z \"${SCRIPT_DIR}\" ]; then\n CAND=\"${HOME_DIR}/.claude/plugins/marketplaces/complex-dev-skills/claude/plugins/complex-feature-dev/scripts\"\n if [ -d \"${CAND}\" ]; then\n SCRIPT_DIR=\"${CAND}\"\n fi\nfi\nif [ -z \"${SCRIPT_DIR}\" ]; then\n echo \"[complex-feature-dev] ERROR: cannot locate plugin scripts directory.\" >&2\n echo \"[complex-feature-dev] Expected either:\" >&2\n echo \" - ~/.claude/plugins/cache/complex-dev-skills/complex-feature-dev/<version>/scripts\" >&2\n echo \" - ~/.claude/plugins/marketplaces/complex-dev-skills/claude/plugins/complex-feature-dev/scripts\" >&2\n exit 0\nfi\nIS_WINDOWS=0\nif [ \"${OS-}\" = \"Windows_NT\" ]; then\n IS_WINDOWS=1\nelse\n UNAME_S=\"$(uname -s 2>/dev/null || echo '')\"\n case \"$UNAME_S\" in\n CYGWIN*|MINGW*|MSYS*) IS_WINDOWS=1 ;;\n esac\nfi\n\nif [ \"$IS_WINDOWS\" -eq 1 ]; then\n if command -v pwsh >/dev/null 2>&1; then\n pwsh -NoProfile -ExecutionPolicy Bypass -File \"$SCRIPT_DIR/check-complete.ps1\"\n exit $?\n fi\n if command -v powershell >/dev/null 2>&1; then\n powershell -NoProfile -ExecutionPolicy Bypass -File \"$SCRIPT_DIR/check-complete.ps1\"\n exit $?\n fi\nfi\n\nif command -v bash >/dev/null 2>&1; then\n bash \"$SCRIPT_DIR/check-complete.sh\"\n exit $?\nfi\n\nif [ -x \"$SCRIPT_DIR/check-complete.sh\" ]; then\n \"$SCRIPT_DIR/check-complete.sh\"\n exit $?\nfi\n\necho \"ERROR: Unable to run completion check (no bash/pwsh found)\" >&2\nexit 1\n"}]}]} |
| metadata | {"short-description":"Full-cycle feature development"} |
A codebase-agnostic workflow for building new features safely:
Minimum input:
Helpful extras (optional):
task_plan.md.This workflow requires these files in the repo root:
task_plan.mdfindings.mdprogress.mdCLAUDE.md (agent instructions; created by init if missing)To initialize them, run:
/complex-feature-dev:init (recommended)Or via terminal:
bash "$(ls -dt ~/.claude/plugins/cache/complex-dev-skills/complex-feature-dev/*/scripts/init-session.sh 2>/dev/null | head -1)"pwsh -ExecutionPolicy Bypass -File "~/.claude/plugins/cache/complex-dev-skills/complex-feature-dev/<version>/scripts/init-session.ps1"AGENTS.md / CLAUDE.md / CONTRIBUTING.md / README.md if present.findings.md.Goal: Make the request concrete and testable.
findings.md.Goal: Identify the correct integration points and existing patterns.
Do 2–3 independent exploration passes:
For each pass:
findings.md.Also:
AGENTS.md instructions (if present).Goal: Resolve all ambiguity before architecture and implementation.
Ask questions grouped by:
Wait for answers (or propose defaults and get explicit confirmation). Record final answers in findings.md.
Goal: Present 2–3 viable approaches and let the user choose.
Provide at least:
For each approach include:
Write the chosen approach + rationale (brief) to findings.md and task_plan.md.
Goal: Implement the chosen approach.
progress.md (brief).task_plan.md (and brief resolution in progress.md).Goal: Catch high-impact issues before delivery.
Default review scope:
git diff (or specified files).Focus areas:
Confidence filtering:
Goal: Deliver a clean handoff.