mik2win/foureyes/implement
Claude Code and agent skill by mik2win/foureyes
- community
Checking that the SKILL.md file is still in the repository.
Execute a prepared plan or subtask file with quality gates. Reads the plan, builds a verbatim step ledger, implements each step with real-time deviation tracking, routes every finding (adapt / fix-and-log / file-as-card / STOP), spawns an audit subagent (counter-bias), runs tests, drives its slice of the epic's E2E block, and ends with a MANDATORY formatted report (Changes, Architecture Audit, Deviation Report, Cross-Session / Out-of-Scope Findings, Test Results, Commit Message). TRIGGER when: the user wants to carry out an existing plan or subtask file. DO NOT TRIGGER when: there is no plan yet — route to /prepare (to write one) or /analyst (to investigate) first; or the work is a new module/component/command modelled on an existing one that must be registered in an extension point — route to /scaffold.
Install
npx vskill@latest install mik2win/foureyes/implementSKILL.md
The same SKILL.md was published earlier as mik2win/foureyes/implement.
Implement Plan: $ARGUMENTS
This skill carries ONLY invariant workflow logic. Every project-specific fact (commands, paths, architecture, integrations, deploy mapping) is read at runtime from .claude/PROJECT.md.
Phase 0 — Load profile
Tooling preflight — one call, before anything else. Some tools this skill relies on are deferred by the harness: the session lists them by name only and loads their schemas on demand, so calling one before it is fetched fails. Listing a tool in allowed-tools does not un-defer it. Issue a single ToolSearch up front covering the whole run — select:SendMessage,TaskOutput (continuing the same auditor in the Architecture Audit, collecting a backgrounded drive) — instead of one round-trip per discovery. A name already loaded costs nothing to include; a schema discovered missing mid-run costs a turn.
Then load context:
- Read
.claude/PROJECT.md. If it is missing, or still contains TEMPLATE /
placeholder markers, fall back to the root CLAUDE.md (always in context) when it carries the commands/architecture/integrations below — proceed on it, noting you're running without a kit profile. Only if neither has those facts, STOP and tell the user: "Profile not configured — run /bootstrap to generate .claude/PROJECT.md, then re-run /implement."
- Read the plan / subtask file passed as
$ARGUMENTS. If$ARGUMENTSis a free-text
description with no file, note that there is no plan file (the implementation log + archive steps below will be skipped).
- The plan is authoritative (Artifact-Continuity Contract,
rules/_generic/planning-artifacts.md): open every cross-linked report in its header (spike / grill / review verdicts) and the epic overview's "Reviews & decisions — READ FIRST" index before editing — decisions were folded into the plan, not this chat.
- Check the file's shape before executing it.
00-overview.mdis/prepare's reserved
name for a ≥2-subtask index (Phase 6.3), but plans written before that rule sometimes carry it over a step list. Decide by content, not by name: look for a step list (## Steps, ### S1…, numbered steps). Steps present → it is a single-session plan; execute it exactly as written. No steps → it is an index; do not implement it — list the NN-<subtask>.md files it indexes with their statuses and ask which to run, or route to /epic-status.
- Read applicable
.claude/rules/*(conventions, patterns) that bear on the plan. If
CONTEXT.md exists, read it and use the project's domain vocabulary in code, names, and the implementation log; respect ADRs in docs/adr/ touching the area.
- Parent RUN-ORDER — look, never require. Walk up from the plan path toward the program
directory looking for a RUN-ORDER.md (the artifact is described in `skills/prepare/reference/parallel-wave-execution.md`). Found → it is the execution truth for this run: read this plan's row and honor its Owns set, its ∥ mark, and its Mode/Model over a stale plan header, plus any inline note about collisions with sibling rows. Never write into it — it has exactly one writer; your row's Status update goes into the final report as a proposal, and the operator (or the wave coordinator) applies it. Not found → proceed as without one, create nothing, say nothing about its absence; for a standalone epic that is the normal case, not a gap.
From PROJECT.md, resolve and keep handy these keys (names are profile-defined):
- Commands —
test,test:targeted,lint, etc. - Plans/backlog location and Archive location.
- Architecture — layers, module map, where code lives.
- Integrations — external APIs and where their docs are.
- Deploy mapping — changed-path → deploy action.
Pre-Implementation Gate (MANDATORY)
Before writing code, confirm context is gathered. Skip rows that don't apply.
- [ ] External APIs (per PROJECT.md → Integrations): docs fetched, schema verified.
- [ ] Bug fixes: related tests + doc comments read and understood.
- [ ] Features: existing patterns in the target module reviewed.
- [ ] Depending on untested code: for each unit the plan's steps call, check for tests; with
none, pin only the behaviour this change depends on — direct callees, one level deep, never transitive. Unreachable without a seam change, or >2 units → a Flagged — NOT fixed row.
- [ ] Runtime/ops issues: logs read, the error identified.
- [ ] Check the Archive location (PROJECT.md) for prior plans on related work.
- [ ] Plan stage gate (
rules/_generic/planning-artifacts.md→ Stage gates): every step
answers WHERE + WHAT + HOW + VERIFY, and material assumptions are confirmed / verified / routed to /spike. A plan failing its gate goes back to /prepare with the gaps named — do not improvise the missing decisions mid-build.
- [ ] Complex plans: challenge verdict present. A Complex-tier plan should carry
/prepare's plan-challenge record ("Challenged: N findings → …", from plan-challenger). If absent, flag it and recommend running the challenge before building — an unchallenged complex plan is where mid-build surprises live. Proceed only if the user accepts the risk explicitly.
If any applicable gate is missing, gather that context FIRST — do not start editing.
Build the step ledger
- Plan Step Extraction (MANDATORY): extract EVERY numbered step or bullet from the
plan into a step ledger — one named file in the session scratchpad directory, <scratchpad>/implement-ledger-<slug>.md (slug from the plan file's name, or from the task focus when there is no plan file). One row per step carrying the step's EXACT text, no paraphrasing, plus a Status column (todo / done / deviated / skipped). State the total step count in the ledger header; the final report accounts for every row against it. Print the ledger's full path in the chat when you create it, and re-read the file — not your memory of the run — whenever you need its contents.
Verbatim extraction is the point, not bookkeeping: a numbered item copied out of the middle of a long plan becomes its own beginning and stops losing attention to the plan's first and last steps (docs/agent-failure-modes.md → middle-loss). The named file is the other half — a harness-side task list is not guaranteed in the session that runs this skill and cannot be read back in any case (rules/_generic/delegation.md § Deferred tools), and a checklist that lives only in the reply is gone at the next compaction, taking the unwritten deviations with it and leaving persistence nothing to copy from.
- Classify the task:
- Code changes — edits to source under the Architecture map (PROJECT.md).
- Non-code — configs, rules, skills, docs.
- Append conditional rows at the end of the ledger:
- If code changes:
Architecture audit,Run tests,Behavior check. - Always (when a plan file exists):
Write Deviation Report into plan,Archive plan. - If tracked files changed:
Generate commit message. - If deploy-relevant paths changed (PROJECT.md → Deploy mapping):
Suggest deploy.
Parallel-wave awareness
If the plan/subtask declares a file-ownership scope — a Wave / Owns block, or a "YOU OWN ONLY … / DO NOT TOUCH …" instruction — this run is one of several parallel sessions sharing one working tree. There is no merge safety net; editing a file outside your scope silently clobbers a sibling session. Follow any .claude/rules/* parallel-wave guidance, plus these invariants:
- Edit only files in your
Ownsscope (+ their tests). Shared files: append-only,
minimal edits. A step needing any other file → classify it before touching anything: concurrent-sibling and serialization-point files are a hard STOP and flag; sequenced and unowned files may take a minimal logged fix. The full table is in `reference/parallel-wave-execution.md` → When a necessary fix lands outside `Owns`.
- Run only targeted tests for your owned modules (PROJECT.md →
test:targeted).
Never run the full suite mid-wave — the coordinator runs it at the wave boundary.
- Never edit the RUN-ORDER mid-wave. It is a serialization point with exactly one writer:
concurrent sessions propose, the coordinator commits. Your row's Status update — what landed, what spun out, what re-priced — goes into your final report as a proposed row, never into the file. This holds even when the row is obviously yours and the edit is obviously right; two sessions writing one table is how a wave loses a row.
- Emit a per-session commit command —
git addof this session's own files by explicit path
(created / modified / deleted, plus the plan file if you appended an Implementation Log) and a commit message, as copy-paste text; never run it. One commit per session. Explicit paths are what make this safe alongside concurrent siblings: they stage your files and nothing else, even when the shared tree holds their uncommitted work. Do not archive the plan — that is the coordinator's step, not this session's.
- Still write the Deviation Report into the plan file and set its status frontmatter.
- In the final report: list owned files touched, flag any shared-file edits, and note
"Part of Wave W — commit this session's files only (explicit paths, never -A / .)."
Implement each step (with real-time deviation tracking)
For each step, in order:
- Quote the step text from the plan.
- Implement it. If the step carries a
Verify:line (from/prepare), run that check now —
the step is done when the check passes, not when the edit is saved. Set the ledger row's status as you go — before starting the next step, not in a batch at the end.
- Tighten the feedback loop. After each step (or small coherent group), run the fastest
applicable signal — typecheck/lint/test:targeted from PROJECT.md → Commands — rather than batching all verification to the end. A mistake caught one step later costs one step of rework; caught at the end, it can cost the session. Never start a step on a red bar, and when one reddens the suite without an obvious cause, revert to the last green and redo it smaller rather than debugging forward — naming the abort condition first (docs/decision-craft.md §1).
- Track deviations at the moment of decision — not retrospectively. The instant your
actual action differs from the plan (different approach, skipped item, extra action), append a row to the ledger file's ## Deviations section — the file named above, on disk, not a line in the reply — with four fields: Plan said (verbatim), What was done, Reason, Decided by, and set the step's status to deviated. Write it before you move to the next step: a compaction between the decision and the report takes the unrecorded row with it. That section is the raw material for the Deviation Report. Do NOT reconstruct deviations at the end.
`Decided by` is `[AGENT]` unless you can paste the user's own words. When a STOP-and-ask or AskUserQuestion answer is what changed the course, copy the reply verbatim into the cell, in the language the user wrote it, at the moment they answer: [USER] "<quote>". That quote is the only thing a later reviewer has — review runs on the diff, in a fresh session where this conversation no longer exists, and a remembered user decision is indistinguishable from the agent's own (/code-review Phase 1 → provenance). Paraphrase, translation, or "the user approved this" is [AGENT].
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/implement/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mik2win/foureyes/implement)