mcpField
T
tracer-implement

tracer-implement

github.com/scottwaterAgent workflows143 installsUpdated 1w ago
Repository

About tracer-implement

tracer-implement is an agent skill for delivering approved repository changes through implementation, review, any needed repair, and verification. It emphasizes minimal changes, evidence-based checks, and stopping on the feature branch without merging or opening a PR.

Key features

  1. 01Workspace and resume-state checks
  2. 02Plan approval before implementation
  3. 03Focused implementation and verification
  4. 04One review and limited repair cycle
  5. 05Evidence ledger and final status report

Use cases

  1. 01Implementing an approved feature or fix
  2. 02Resuming an interrupted implementation
  3. 03Reviewing and repairing actionable findings

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/scottwater/skills --skill tracer-implement

After installing, type/tracer-implementin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

fixer-prompt.md
implementer-prompt.md
ticket-reviewer-prompt.md
agents/
openai.yaml
scripts/
review-package
task-brief
workspace

Details

From the project README

Implement

Deliver the agreed behavior with the smallest repository-specific change: short plan and approval → implement → review → repair if needed → verify and report. Stop on the feature branch without merging, opening a PR, or invoking another review workflow. Use /tracer-autopilot for delivery through a branch-finishing choice.

Scope and simplicity

Acceptance requirements and explicit user decisions are binding. Planner-generated code, class boundaries, and mechanisms are proposals: simplify them when existing commands or libraries satisfy the same requirements. Record the changed approach; ask only when it changes acceptance, an explicit decision, or a material safety limit.

Before introducing custom parsing, a generic process runner, a permission evaluator, concurrency guarantees, or persisted recovery machinery that the user has not explicitly chosen, explain the concrete need and the simpler alternative, then ask. Safe reruns do not by themselves imply concurrent execution or automatic crash recovery. Preserve required data/security safeguards; expose a trade-off rather than quietly weakening them.

Default to one implementation context for a cohesive change, normally the controller itself. Multiple files or commits do not require multiple agents. Delegate only a named investigation or separable implementation unit whose benefit exceeds the handoff cost. Reuse its context for follow-up work. Helpers return results without spawning more agents.

1. Workspace and evidence plan

  1. Inspect the branch and working tree. Stay on an existing feature branch. On main or master, follow /tracer-worktrees; ask about detached HEAD or ambiguous ownership. Preserve unrelated changes.
  2. Ensure .tracer/ is ignored before writing workflow artifacts; commit a needed ignore rule before recording the base.
  3. On a fresh run, record the starting SHA in .tracer/implement/progress.md. On resume, read that ledger and verify its scope, base, commits, running workers, and saved reports against Git before continuing the unfinished step. Recover existing work rather than restarting it. Ask about an invalid base or unexplained changes.
  4. Select the smallest checks that establish the changed behavior and material failure paths. Run relevant existing tests as a baseline when available. An unrelated failing suite is not a work order; report it. A baseline failure that prevents assessing this change needs clarification.

Use focused tests by default. Run the full suite or broad typecheck only when repository policy requires it, the user requests it, or the impact justifies it; explain that choice. Otherwise report that broad validation is left to CI or the user. A new feature with no existing tests needs a failing acceptance test, not a whole-repository baseline.

Keep the ledger brief: scope, immutable base, approved plan, implementation commits/context, review and repair status, checked HEAD/tree, evidence, concerns, and outcome. Mark work running before delegation and save worker IDs. Completed review/repair budgets survive resumes and generic “continue” messages.

Complete when: workspace, resume point, base, and proportionate verification are known.

2. Short plan and approval

Write .tracer/implement/plan.md, normally a few bullets per coherent behavior:

# <Feature> Task Plan

**Goal:** observable outcome.
**Source:** request, ticket, or spec.
**Acceptance and limits:** required behavior and material safety boundaries.
**Approach:** existing commands/modules to reuse; proposed new mechanisms.
**Verification:** focused commands and the behavior they establish.

### Task 1: <coherent behavior>
- Files: exact affected paths.
- Change: smallest approach; only interfaces needed to coordinate work.
- Check: observable success and material failure behavior.

One task is valid. Group tasks by coherent behavior, not framework layers. Write code during implementation rather than prewriting tests and implementation in the plan. Resolve acceptance-changing ambiguities; ordinary reversible details remain implementation choices.

Show the goal, approach, task order, delegation if any, and checks. Call out custom infrastructure and safety/recovery guarantees explicitly: task names alone are not architectural approval. Explain that there is one review, at most one consolidated repair, and a correction-only recheck if repairs occur. Wait for approval and record it.

Complete when: the user has approved the actual approach and verification scope, not merely a task count.

3. Implement

Work through the plan in the same context. Use focused red/green tests for new or corrected behavior and existing checks where appropriate; documentation-only changes need relevant validation, not invented runtime tests. Test observable requirements and material failure paths, not every speculative variant. Add parameterized cases when they cheaply cover genuinely distinct behavior.

Prefer existing facilities over new abstractions. If the approach starts requiring substantially more machinery than approved, stop and propose the smaller alternative before building it. Do not finish an oversized design merely to report concerns afterward.

Commit coherent changes using repository conventions. Self-check changed behavior and scope once; fix material defects and record optional hardening as concerns. Save commits and focused results in the ledger.

If delegation is justified, extract the relevant task with scripts/task-brief and use implementer-prompt.md. Pass the original acceptance requirements and limits alongside the brief. Verify the returned diff, commits, and evidence; a report alone is not proof. A task boundary is not a fresh-agent requirement.

Complete when: agreed behavior is implemented, focused checks pass, and implementation evidence is recorded.

4. Review and optional repair

Pin the current HEAD and run scripts/review-package BASE HEAD once for the complete agreed scope. Use ticket-reviewer-prompt.md for one review, preferably by one independent read-only reviewer; review inline if delegation is unavailable or disproportionate.

Accept findings only with a reachable trigger, violated requirement, and current consequence: incorrect behavior, security/data loss, silent failure, or tests unable to detect broken required behavior. Record polish and speculative hardening as concerns, not work orders. Ask about material conflicts with the agreed requirements. Save the review and dispositions in .tracer/implement/review-1.md.

  • No accepted repairs: finish verification and report. No second review or closing-verifier agent is needed.
  • Accepted repairs: correct the complete accepted list in one repair pass, preferably in the existing implementation context, using fixer-prompt.md. Save finding IDs, changes, and focused results to .tracer/implement/repair-report.md. If code changed, recheck corrections and affected behavior only, preferably in the original reviewer context, and save .tracer/implement/review-2.md. If all repairs are blocked and nothing changed, report Needs attention without a ceremonial recheck.

The budget covers the whole agreed scope, including delegated and inline work: one initial review, at most one repair pass, and one correction-only recheck if repairs were made. Helpers cannot launch reviews or fixers. After the recheck, report unresolved work and stop; only explicit new user authorization extends the budget. A concern does not become a new implementation task.

Complete when: review findings have dispositions and any repairs have a correction-only recheck, or unresolved work is recorded.

5. Final evidence and report

Verify the agreed checks against final HEAD and tracked-tree state. Reuse already completed evidence for that same unchanged state; rerun affected checks after changes. Record commands, actual results, and unavailable checks. Focused passing tests are not a claim that the full suite ran.

Report goal, commits, review result (and recheck or skipped status), corrections, deferred concerns, verification limits, and the preserved branch. Use:

  • Implemented: required behavior is verified and no actionable findings or concerns remain.
  • Implemented with concerns: required behavior is verified; only non-blocking concerns remain.
  • Needs attention: a task, required check, actionable finding, or material scope decision remains blocked or unverified.

Save the outcome in the ledger and end. No additional audit, proof workflow, or branch finishing is implied.

Comments

Markdown supported