一键导入
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":"SCRIPT_DIR=\"${CODEX_HOME:-$HOME/.codex}/skills/complex-feature-dev/scripts\"\n\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 if [ \"$IS_WINDOWS\" -eq 1 ]; then\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 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 fi\n\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 return 1\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 \\\"${CODEX_HOME:-$HOME/.codex}/skills/complex-feature-dev/scripts/init-session.sh\\\"\"\n echo \" pwsh -ExecutionPolicy Bypass -File \\\"${CODEX_HOME:-$HOME/.codex}/skills/complex-feature-dev/scripts/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":"SCRIPT_DIR=\"${CODEX_HOME:-$HOME/.codex}/skills/complex-feature-dev/scripts\"\n\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):
From a Codex chat/session (run from anywhere inside your repo):
$complex-feature-dev init
Behavior:
scripts/init-session.(sh|ps1) (creates task_plan.md, findings.md, progress.md if missing; targets git repo root by default)AGENTS.md if missing (unless the init script is run with --no-agents)$complex-feature-dev <feature description> to start Phase 1)Hard rule:
init / initialize / 初始化, run the initializer via the shell tool (Bash on macOS/Linux; PowerShell on Windows) and stop (do not start Phase 1).This skill keeps the core workflow in SKILL.md, and ships deeper checklists/prompt templates in:
references/complex-feature-dev.md (full workflow reference)references/code-explorer.md (Phase 2 checklist)references/code-architect.md (Phase 4 checklist)references/code-reviewer.md (Phase 6 checklist)references/examples.md (example outputs and question style)At the end of each phase, present results using the output templates in:
references/complex-feature-dev.md → “Phase Outputs”references/examples.mdKeep user-facing messages structured and scannable (short headings + bullets + file:line where possible). Keep planning files macro/concise; avoid long transcripts.
Also:
Phase 3: Clarifying Questions). Use the user’s language when appropriate.These files live in the project root (not in the skill folder):
task_plan.md (macro status + summary + next actions + decisions/errors)findings.md (durable findings + decisions)progress.md (short session notes + validations)AGENTS.md (Codex reads this)This workflow requires these files. Do not proceed with Phase 1 until they exist.
Initialize them (defaults to git repo root):
bash "${CODEX_HOME:-$HOME/.codex}/skills/complex-feature-dev/scripts/init-session.sh"pwsh -ExecutionPolicy Bypass -File "$env:CODEX_HOME\skills\complex-feature-dev\scripts\init-session.ps1"
CODEX_HOME is not set: pwsh -ExecutionPolicy Bypass -File "$env:USERPROFILE\.codex\skills\complex-feature-dev\scripts\init-session.ps1"Alternatively, you can copy templates manually from this skill’s folder:
assets/templates/task_plan.mdassets/templates/findings.mdassets/templates/progress.mdassets/templates/AGENTS.mdAGENTS.md and follow instructions (including any nested ones that apply to the files you touch).AGENTS.md doesn’t exist, fall back to project docs like CONTRIBUTING.md, README.md, and existing code conventions.findings.md.task_plan.md.update_plan for the UI checklist (7 steps).task_plan.md updated with **Overall Status:** and (optionally) **Current Micro-Phase:**.findings.md (prefer file:line pointers).progress.md (commands + results).Goal: Make the request concrete and testable.
findings.md.Goal: Identify the correct integration points and existing patterns.
Use references/code-explorer.md as your checklist for each exploration pass.
When presenting Phase 2 results to the user, match the structure in references/examples.md (start with “Found similar features:” and “Key files to understand:”).
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.
When asking questions, use the Phase 3 style from references/examples.md:
Phase 3: Clarifying Questions)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.
Use references/code-architect.md to structure the blueprint(s).
When presenting options, match the Phase 4 style from references/examples.md (Approach 1/2/3 + Pros/Cons + Recommendation + “Which approach would you like to use?”).
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.
Use references/code-reviewer.md as the review checklist.
When presenting review results, match the Phase 6 style from references/examples.md (“Code Review Results:” + priority buckets + “What would you like to do?”).
Default review scope:
git diff (or specified files).Focus areas:
Confidence filtering:
Goal: Deliver a clean handoff.
When presenting the final summary, match the Phase 7 style from references/examples.md (“Feature Complete:” + sections).