一键导入
implement-task
Implement a specific task from the task plan using Test-Driven Development methodology, then verify documentation is current.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Implement a specific task from the task plan using Test-Driven Development methodology, then verify documentation is current.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Safe, project-wide remediation of a dangerous or incorrect code pattern using structured search and replace.
Run a multi-faceted code review on uncommitted changes using specialized review subagents.
Create an Architectural Decision Record (ADR) to document a design choice or technical strategy.
Run a multi-faceted code review on uncommitted changes using specialized review subagents.
Commit (if needed), push the current branch to origin, and generate a pull request description in the chat.
Generate a session handoff document capturing the current working state for the next session.
| name | implement-task |
| description | Implement a specific task from the task plan using Test-Driven Development methodology, then verify documentation is current. |
| metadata | {"author":"cascadian-gamers","version":"1.0"} |
Implement a specific task from the task plan using Test-Driven Development methodology, then verify documentation is current.
implement-and-review-loop. Skips Phase 7 (present for approval) and returns control to the orchestrator after Phase 6 (update spec). No commit in this mode — the orchestrator handles that after the review cycle.The user provides a task number (e.g., "2.1", "3.4"), says "next task", or says "implement all open tasks". Tests are always built alongside implementation using TDD (Red → Green → Refactor).
Docs/In-Progress/ (most recent spec file with a task table).[ ] with all prerequisites [x]).[x] completed[~] in progress[x] completed[ ] to [~] in the task plan.git branch.main or develop, remind user to create a feature branch per .kiro/steering/branching.md.⚠️ Before writing any code, read the existing patterns in the target area:
DashboardStack vs MonitoringStack — they have different creation patterns). Read the parent stack (ExtraLife.CdkStack.cs) to see how resources are wired.cdk deploy command in both develop.yml and production.yml workflows. Check existing deploy commands with grep "cdk deploy" .github/workflows/*.yml. Top-level stacks are NOT auto-deployed — they need explicit cdk deploy StackName in CI/CD.pyproject.toml or pytest.ini for testpaths restrictions. Place tests where the test runner can find them. In this project, Python tests go under src/ai-engagement-tests/test_*/.develop.yml as the reference — it's the most battle-tested workflow on self-hosted runners.For each component of the task, follow strict TDD:
Red: Write a failing test first. Run it to confirm it fails for the right reason. Green: Write the minimum code to make the test pass. Run tests. Refactor: Improve code quality while keeping tests green. Run tests again.
Include tests for:
cd src/ai-engagement && source .venv/bin/activate && PYTHONPATH=. python -m pytest ../ai-engagement-tests/ -vdotnet build ExtraLife.sln -c Release — must be 0 errors.cdk synth to verify.cd Source/ExtraLife.Web.Admin/client && npx ng build.@tool function was created, verify it is imported and registered in the handler/agent that uses it (e.g., chat_handler.py tool list).reasoningConfig, AWS SDK parameters, API enum values, etc.), look up the official AWS documentation to verify the exact accepted values, casing, and format. Never trust memory or examples alone — APIs are case-sensitive and enum values change across model versions.?? (null-coalescing) on string properties that receive user input from JavaScript/Angular, flag it. JavaScript sends "" (empty string) for unset fields, not null. Use string.IsNullOrEmpty() instead of ?? for any string that originates from a frontend request body."ENABLED" vs "enabled").run.sh (Web Adapter):
python3 -m <module> not bare <module> command. pip install -t creates package directories, not binaries on PATH.python3 (guaranteed on Lambda managed runtime), not python3.12 (may not exist).Code.FromAsset does NOT install pip deps — CI/CD pipeline extracts pre-built zip into source dir before synth. Verify the CI/CD build step includes new deps.Runtime.ExitError in logs.After implementation passes all tests:
[~] to [x] in the task plan.README.md needs updating (new prerequisites, new commands, new project structure).buildAndTest.sh needs updating (new test types, new build steps).STOP before committing. Present to the user:
In batch mode ("implement all open tasks"), commit after each task and continue to the next. Present a running summary. Offer code review after all tasks are complete rather than after each one.
In loop mode, skip this phase entirely — return control to the orchestrator.
git add .).Implement Task X.Y: {Task Title}
{Brief description}
- Key changes as bullet points
| Task | Description | Prerequisites | Status |
| 1.1 | Description | None | [x] | ← completed
| 1.2 | Description | 1.1 | [~] | ← in progress
| 1.3 | Description | 1.1 | [ ] | ← not started
.kiro/steering/branching.md..kiro/steering/.sed, search-replace, etc.), always re-run the full test suite before proceeding. Bulk replacements can miss context-dependent values (e.g., a test assertion that hardcodes a different expected value than the source).