Implement

From gittower/git-flow-next · View interactive version

Implement is an AI agent skill from the GitHub repository gittower/git-flow-next. Execute an implementation plan, making changes and committing properly

How to use this skill

Skill file

Implement

Execute an implementation plan or review fixes, making code changes and committing according to guidelines.

Arguments

/implement [target]

Target (optional)

Specifies what to implement. Can be:

Source Priority

When given a directory (or auto-detecting):

  1. If review.md exists → implement fixes from the review
  2. Otherwise if plan.md exists → implement the plan
  3. If neither exists → suggest running /create-plan or /code-review first

Examples

# 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

Instructions

  1. Parse Arguments and Find Source

If a file path was provided (ends with .md):

If a directory/folder was provided:

If no argument provided:

If no source file found:

  1. Verify Prerequisites
  1. Load Guidelines
  1. Execute Work

### For Plan Mode (implementing from plan.md)

Tests come first. The plan's Test Plan section was gated by

/validate-tests and is authoritative:

1. Confirm the plan was gated: .ai/<folder>/codex-test-plan.md exists.

If not, stop and run /validate-tests first

2. Implement all Test Plan scenarios as tests before any production code

3. Verify they fail for the right reason — missing behavior, not setup

bugs — then commit the tests

4. Only then work through the remaining implementation tasks

For each task in the plan:

Before Each Task:

Code Changes:

After Each Task:

### Test Immutability Rule (Plan Mode)

Tests MUST NOT be changed to make the implementation pass. If the

implementation and a test disagree, the test plan is challenged — not

quietly edited:

1. Stop implementing. Re-read the spec/analysis and the Test Plan and

determine which is wrong: the implementation approach (usual case —

fix the implementation) or genuinely the test plan

2. If the test plan must change: revise the Test Plan section, re-run

the /validate-tests Codex gate on the revised plan, and append an

entry to the plan's Test Plan Revisions section: what changed,

why, revision count

3. Then update the affected tests to match the revised plan and continue

Abort 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 Review Mode (implementing from review.md)

For each issue found in the review:

Must fix:

Should fix:

Nit:

After Fixes:

  1. Commit Strategy

### When to Commit

  1. Checkpoint Verification

At each checkpoint:

  1. Track Progress

For plan mode - update plan.md checkboxes:

```markdown

```

For review mode - update review.md checkboxes:

```markdown

```

  1. Handle Issues

If problems arise:

Completion

For Plan Mode:

  1. Verify all tests pass
  2. Check all checkboxes in plan.md are complete
  3. Suggest running /code-review before PR

For Review Mode:

  1. Verify all tests pass
  2. Check all blocking issues are resolved
  3. Update review.md with fixes applied
  4. Ready for PR if all blocking issues fixed
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.