Execute an implementation plan, making changes and committing properly
Execute an implementation plan or review fixes, making code changes and committing according to guidelines.
/implement [target]
Specifies what to implement. Can be:
.ai/ (e.g., issue-59-add-no-verify-option).ai/ folder (e.g., .ai/my-feature).ai/my-feature/review.md)When given a directory (or auto-detecting):
review.md exists → implement fixes from the reviewplan.md exists → implement the plan/create-plan or /code-review first# Auto-detect from branch, prefer review.md over plan.md
/implement
# Use specific folder in .ai/
/implement issue-59-add-no-verify-option
# Use relative path
/implement .ai/my-feature
# Use specific file directly
/implement .ai/my-feature/plan.md
/implement .ai/my-feature/review.md
Parse Arguments and Find Source
If a file path was provided (ends with .md):
If a directory/folder was provided:
.ai/, use it directly.ai/review.md first, then plan.mdIf no argument provided:
feature/59-... → 59).ai/issue-<number>-* folderreview.md first, then plan.mdIf no source file found:
/create-plan for new work/code-review if code exists but needs reviewVerify Prerequisites
git status)go test ./...Load Guidelines
Execute Work
Tests come first. The plan's Test Plan section was gated by
/validate-tests and is authoritative:
.ai/<folder>/codex-test-plan.md exists.
If not, stop and run /validate-tests firstFor each task in the plan:
Before Each Task:
Code Changes:
After Each Task:
go build ./...go test ./...git diffTests MUST NOT be changed to make the implementation pass. If the implementation and a test disagree, the test plan is challenged — not quietly edited:
/validate-tests Codex gate on the revised plan, and append an
entry to the plan's Test Plan Revisions section: what changed,
why, revision countAbort rule: if this happens more than 3 times in one implementation, error out — stop all work, leave the branch as-is, and report to the user that the plan and implementation are fundamentally at odds and need human review. Do not attempt a fourth revision.
For each issue found in the review:
Must fix:
Should fix:
Nit:
After Fixes:
go build ./...go test ./...git diffCommit Strategy
/commit skill for proper formattingCheckpoint Verification
At each checkpoint:
go build ./...go test ./...Track Progress
For plan mode - update plan.md checkboxes:
- [x] Completed task
- [ ] Pending task
For review mode - update review.md checkboxes:
- [x] Fixed: <issue description>
- [ ] Pending: <issue description>
Handle Issues
If problems arise:
For Plan Mode:
/code-review before PRFor Review Mode:
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer