implement-fix

implement-fix is a command for Claude Code from plipowczan/claude-piv-skeleton. It costs 6 tokens per session (1,766 once invoked), scanned A, original, MIT.

A bug-fix command that implements a solution described in a root-cause analysis. It reviews the analysis, testing plan, acceptance criteria, and current Git branch before changing code.

In plain words
What is it for?
Use it with an RCA document, a written investigation of why a problem occurred. It is intended for implementing fixes on a suitable feature branch and resolving unclear details before coding.
Why use it?
It connects investigation to implementation and adds checks that the fix matches the documented cause and expected result.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

Part of the piv-speckit plugin — 6 skills, 16 commands shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/plipowczan/claude-piv-skeleton/implement-fix
Clone the repo
git clone --depth 1 https://github.com/plipowczan/claude-piv-skeleton

Made for: Claude Code.

Or install piv-speckit, the plugin that ships this one along with the rest of its 6 skills, 16 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for implement-fix

README.md
[![agentmods](https://agentmods.dev/badge/commands/plipowczan/claude-piv-skeleton/implement-fix.svg)](https://agentmods.dev/commands/plipowczan/claude-piv-skeleton/implement-fix)
Your own site
<a href="https://agentmods.dev/commands/plipowczan/claude-piv-skeleton/implement-fix"><img src="https://agentmods.dev/badge/commands/plipowczan/claude-piv-skeleton/implement-fix.svg" alt="Measured on agentmods" height="20"></a>
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,766 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00006 $0.01766
Opus 5 $0.00003 $0.00883
Sonnet 5 $0.00001 $0.00353
Haiku 4.5 $0.00001 $0.00177

Measured 5d ago against content hash f5fc1aa10c44, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

implement-fix scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/bug_fix/implement-fix.md · 333 lines

How it starts

The opening of the file, as written. The whole thing — 333 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Implement Fix: Execute RCA Solution

RCA Document

Read RCA document: $ARGUMENTS

Example: .claude/agents/reviews/rca-123-bug-title.md

Purpose

Implement a bug fix based on a comprehensive Root Cause Analysis.

Process: Use systematic approach for bug fixing

Implementation Process

1. Read and Understand RCA

Read the entire RCA document:

  • Understand the issue
  • Understand the root cause
  • Review the fix strategy
  • Note the testing strategy
  • Note the acceptance criteria

Clarify Ambiguities:

  • If RCA is unclear, ask questions
  • Get specific implementation details
  • Resolve approach decisions

2. Verify Feature Branch

CRITICAL: You MUST be on a feature branch for bug fixes!

Check current branch:

git branch --show-current

If on main branch:

  1. STOP - Do not implement fixes on main!
  2. Ask user: "Should I create a feature branch for this bug fix?"
  3. If approved, create branch:
    git checkout -b fix/issue-{number}-{brief-description}
    
  4. Then proceed with implementation

If on feature branch:

  • ✅ Continue with implementation
  • Verify branch name follows convention: fix/issue-{number}-{description}

Rationale:

  • Protects main branch from untested fixes
  • Allows for review before merging
  • Facilitates rollback if fix introduces issues
  • Enables testing in isolation

3. Create Mini-Plan

Unlike feature development, bug fixes are simpler. Create a mini-plan:

# Fix Plan: Issue #{number}

## Root Cause
[From RCA]

## Fix Strategy
[From RCA]

## Files to Modify
- `path/to/file1.java` - [What to change]
- `path/to/file2.java` - [What to change]

## Implementation Steps
1. Step 1: [Description]
2. Step 2: [Description]
3. Step 3: [Description]

## Testing Strategy
[From RCA]

## Validation
[From RCA]

Save to: .claude/agents/plans/fix-issue-{number}.md

4. Read Context

Read necessary context:

  • Read files to be modified
  • Understand current implementation
  • Identify patterns to follow
  • Note related code that might be affected

Read the full file on GitHub · 333 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 333 lines · 6 tokens per session scan A f5fc1aa10c44

Subscribe to this mod's changes

implement-fix is a command published in the GitHub repository plipowczan/claude-piv-skeleton (4 stars, last pushed 7mo ago), licensed MIT. It adds 6 tokens to every session and 1,766 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.