Skip to content
Back to skills

Implement Plan Phase

ASecurity

Implement the next phase of an approved plan, and only that phase: find the plan (an OpenSpec change or a plan file), get the test list approved before any code, work test first with the expected value from the plan, stop and ask at the points that need a person, and end the phase with its checks, its commit, its pull request and a stop. Close the plan with the last phase: archive an OpenSpec change, or set a plan file to `done`. Use when the person asks to implement, continue or finish a pla...

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
ai-agentsgotestinggit

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add JorgeCostaMacia/agent-harness --skill implement-plan-phase --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Implement Plan Phase?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Implement Plan Phase
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jorgecostamacia-implement-plan-phase/badge)](https://www.skillsdirectory.com/skills/jorgecostamacia-implement-plan-phase)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: implement-plan-phase
argument-hint: "[change-id or plan]"
description: >-
  Implement the next phase of an approved plan, and only that phase: find the
  plan (an OpenSpec change or a plan file), get the test list approved before
  any code, work test first with the expected value from the plan, stop and ask
  at the points that need a person, and end the phase with its checks, its
  commit, its pull request and a stop. Close the plan with the last phase:
  archive an OpenSpec change, or set a plan file to `done`. Use when the person
  asks to implement, continue or finish a planned change or its next phase
  ("implement the next phase", "implementa la siguiente fase", "continue the
  plan"), also for an OpenSpec change on the spec-plan schema.
---

# Implement a plan phase

One run implements one phase. Start the next phase only when the person asks for it.

## 1. Find the plan and the phase

- **OpenSpec change:** `openspec list` shows the active changes. Read `openspec instructions apply --change <change-id>`. It gives the context files, the tasks and the schema's rules for `apply`. With the `spec-plan` schema, those rules are the steps of this skill. With another schema, such as `spec-driven`, follow this skill: there a phase is one `##` group of tasks in `tasks.md`.
- **Plan file:** the newest `.agents/plans/*/plan.md` whose `status` is not `done`, or the one that the person names.
- Take the first phase with unchecked tasks. When more than one plan is open and the person named none, ask which one.

## 2. The branch

- **Phase 1:** continue on the branch where `create-plan` wrote the plan. The plan goes in the last commit of this phase.
- **Later phases:** if the pull request of the previous phase is not merged yet, stop and tell the person. Otherwise, create a new branch from the base branch, as the workflow in the repository's `AGENTS.md` says (a branch from `main` in `git-workflow`).
- **Plan file:** in phase 1, set its `status` to `in-progress`.

## 3. The test list

List the tests that the phase needs: the name of each test and its level (acceptance, unit, contract). Show the list and wait until the person approves it. The approved list is the target of the phase.

## 4. Test first

- Write one failing test, then the least code that makes it pass, then the next test. Follow the repository's testing skills for names, files and levels.
- If a new type is necessary and no test can compile without it, write that type's whole test file first and see it fail. That counts as one step.
- Take the expected value of a test from a scenario of the plan. Never take it from a run of the code.
- Refactor only when the tests pass. Commit a refactor apart from new behavior. The plan goes in the last commit of the phase.

## 5. Stop and ask

Stop and ask the person when one of these happens:

- A design decision is not in the plan.
- The work seems to need something that the plan does not include.
- You must change, skip or delete a test.
- Two attempts to make a test pass have failed.
- One step grows beyond about 50 lines or 3 files.

## 6. End of the phase

1. Run the repository's build, format check and tests, and fix what fails.
2. Tick the checkboxes of the phase's tasks in the plan. Add or update `implemented_by` (the same shape as `created_by`: the tool, the model, its version and the reasoning effort) and `last_implementation_at` in its frontmatter, and rewrite its Next step. `spec-driven` has no place for the frontmatter and the Next step: there, only tick the checkboxes.
3. **Last phase only:** close the plan before the commit, so the archive goes in the same pull request.
   - If some phases live in other repositories, check that their pull requests are merged before you archive.
   - **OpenSpec change:** run `openspec validate <change-id> --strict`, then archive the change in the repository that holds it (`openspec archive <change-id> --yes`, or `/openspec-archive-change`).
   - **Plan file:** set its `status` to `done`.
4. Commit as the repository's commit conventions say, with the plan in the commit.
5. Propose the title of the pull request, with up to two alternatives, and let the person choose. Then open the pull request for the phase as the repository's pull request conventions say, with a link to the story of the plan. The pull request of the last phase says `Closes #<story>`, and earlier phases only link it, so the story closes when the last one merges. If the story lives in another repository, such as a shared backlog, write `Closes <owner>/<repo>#<story>`: a bare `#<story>` names the issue with that number in the repository of the pull request, and GitHub closes that one. Where the base is not the default branch (`develop` in `gitflow`, a `release/<major>.x`), a closing keyword does nothing: tell the person to close the story after the merge.
6. Stop. Tell the person what the phase delivered, what you checked, and anything that you decided alone.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.