implement-from-plan
This skill automates step-by-step implementation of approved plan documents in application codebases across Node/TypeScript, Python, and C/C++ repositories. Use it when you have a finalized plan markdown file and need to execute it systematically, with the skill handling build verification, linting, testing, atomic commits, and progress logging at each step to maintain clean repository hygiene and trackable implementation history.
git clone --depth 1 https://github.com/besimple-oss/broccoli /tmp/implement-from-plan && cp -r /tmp/implement-from-plan/prompt-templates/skills/implement-from-plan ~/.claude/skills/implement-from-planSKILL.md
# Implement From Plan (step-by-step) Input: a plan doc path (for example: `plan/my-feature.md`). ## Preconditions (stop if missing) 1. Confirm you are in the intended repo: `git rev-parse --show-toplevel` 2. Confirm the plan doc exists: `test -f <plan-doc-path>` 3. Confirm the working tree is clean: `git status --porcelain` is empty 4. Ensure `codex-progress.log` is gitignored and not tracked: - Add `codex-progress.log` to `.gitignore` if missing. - If it is tracked: `git rm --cached codex-progress.log` (keep the file locally). ## Workflow 1. Record a base commit for later review: `BASE_SHA=$(git rev-parse HEAD)` 2. When running this skill with Codex, use model `gpt-5.4` unless the caller explicitly overrides the model. 3. Open `references/prompts/step-auto-mixed.md` and follow it using the plan doc path. - Important: it includes a one-time tooling discovery + dependency install + "Tooling config" phase; do that once and reuse it for every step. - For C/C++ repositories, extend the prompt's tooling discovery to identify the repo-native build/test/lint path before Step 1. Check for `CMakeLists.txt`, `compile_commands.json`, `meson.build`, `BUILD`/`WORKSPACE`, `Makefile`, and repo docs. Reuse the canonical configure/build/test/lint commands for each later step instead of rediscovering them.
Deploy this repository to a new Google Cloud project using the repo's existing Cloud Run, Cloud Run Jobs, Cloud SQL, Secret Manager, and Artifact Registry scripts. Use when Codex needs to interpret a generic repo setup request as a deploy, discover the active gcloud operator/account/org/billing context, fail early on missing gcloud permissions or local prerequisites, or perform the actual Broccoli OSS GCP deployment behind an explicit apply step.
Non-interactive wrapper: plan-sketch -> auto-pick recommended options -> plan-write -> plan-critique-loop -> implement-from-plan -> claude-simplify-wrapper -> dedup -> code-review-loop. No PR creation and no Linear comments.
Small-change wrapper: implement → run repo checks → atomic commit → run dedup (BASE_SHA..HEAD).
Run Claude's built-in /simplify skill on BASE_SHA..HEAD, validate checks, and commit.
Iterative review+fix loop for BASE_SHA..HEAD: generate findings, apply accepted fixes, run checks, commit, and re-review up to 3 iterations or until clean.
Dedupe-only pass for BASE_SHA..HEAD: remove duplicate code introduced by the diff or reuse existing shared utils; applies changes + commits.
Critique and revise an existing plan doc up to 3 iterations, using accept/reject triage and stopping early when no important feedback remains. Use when refining a plan/*.md before implementation.
Do bounded research (official docs first) and produce a high-level implementation sketch in `sketch/<generated-name>.md`. Use when you want an approach and step ordering before implementation.