Archon: Command for Claude Code

.claude/commands/github_bug_fix/implement-fix.md

implement-fix is a command for Claude Code from coleam00/Archon. It costs 9 tokens per session (878 once invoked), scanned A, original, MIT.

A command that implements the fix described in a root-cause analysis (RCA) document for a GitHub issue.

In plain words
What is it for?
Use it after an RCA to review the analysis, verify the affected files, apply the proposed fix, follow project conventions, and meet its testing requirements.
Why use it?
It connects an investigated issue to its implementation while checking that the issue still exists and that the current code has not changed unexpectedly.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions AGENTS.md.

This is coleam00/Archon's own configuration. It tells Claude Code how to work on Archon itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Archon configures →

About the project

Archon is a workflow engine for AI coding agents that turns development processes into YAML-defined sequences with phases, validation gates, and artifacts. Developers use it to run repeatable processes such as planning, implementation, testing, code review, and pull-request creation across projects. The catalogue entries provide commands, agents, skills, hooks, instructions, and settings for working with Archon.

coleam00/Archon · 23,752 stars · on GitHub · archon.diy

Reuse

Borrowing it

Nothing to install: this file belongs to coleam00/Archon. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/coleam00/Archon/dev/.claude/commands/github_bug_fix/implement-fix.md
Clone the repo
git clone --depth 1 https://github.com/coleam00/Archon

Made for: Claude Code.

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/coleam00/archon/implement-fix/github.svg)](https://agentmods.dev/commands/coleam00/archon/implement-fix)
Your own site
<a href="https://agentmods.dev/commands/coleam00/archon/implement-fix"><img src="https://agentmods.dev/badge/commands/coleam00/archon/implement-fix/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for implement-fix

Your own site · 80×15
<a href="https://agentmods.dev/commands/coleam00/archon/implement-fix"><img src="https://agentmods.dev/badge/commands/coleam00/archon/implement-fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 878 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00009 $0.00878
Opus 5.5 $0.00004 $0.00351
Sonnet 5.5 $0.00002 $0.00176
Haiku 4.5 $0.00001 $0.00088

Measured 9d ago against content hash cbbde26579f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 9d 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/github_bug_fix/implement-fix.md · 149 lines

How it starts

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

Implement Fix: GitHub Issue #$ARGUMENTS

Prerequisites

  • RCA document exists at .agents/rca/issue-$ARGUMENTS.md
  • If not, run /rca $ARGUMENTS first

RCA Document to Reference

Read RCA: .agents/rca/issue-$ARGUMENTS.md

Optional — View GitHub issue for latest context:

gh issue view $ARGUMENTS

Implementation Instructions

1. Read and Understand RCA

  • Read the ENTIRE RCA document thoroughly
  • Understand the root cause
  • Review the proposed fix strategy
  • Note all files to modify
  • Review testing requirements

2. Verify Current State

Before making changes:

  • Confirm the issue still exists in current code
  • Check current state of affected files
  • Review any recent changes to those files since RCA was written

3. Implement the Fix

Following the "Proposed Fix" section of the RCA:

For each file to modify:

a. Read the existing file
  • Understand current implementation
  • Locate the specific code mentioned in RCA
b. Make the fix
  • Implement the change as described
  • Follow the fix strategy exactly
  • Maintain Archon coding conventions (see AGENTS.md)
  • Respect package boundaries
  • Use proper import patterns (import type for type-only)
c. Handle related changes
  • Update related code affected by the fix
  • Ensure consistency across packages
  • Update imports if needed

4. Add/Update Tests

Following the "Testing Requirements" from RCA:

Important Archon test patterns:

  • Use spyOn() for internal module mocking (not mock.module() unless absolutely necessary)
  • If adding mock.module(), check if the test file needs its own batch in package.json
  • Place tests alongside source files or in existing test directories
  • Follow existing test patterns in the affected package

5. Check Your Changes

Run the tests that cover what you changed, and lint and type-check the packages you touched. CI is the full validation; don't run bun run validate.

If a check fails because of your change:

  • Fix it
  • Re-run that check
  • Don't proceed until it passes

Read the full file on GitHub · 149 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. 9d ago Changed · -5 lines cbbde26579f2
  2. 17d ago Changed 7176d6685af2
  3. 1mo ago First seen · 154 lines · 9 tokens per session scan A 4529edd0e008

Subscribe to this mod's changes

implement-fix is a command published in the GitHub repository coleam00/Archon (23,752 stars, last pushed today), licensed MIT. It adds 9 tokens to every session and 878 once invoked, about $0.0000 per session on Opus 5.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-30.