Skip to content
Agent Orchestration
Command

/implement-fix

Implement fix from RCA document for GitHub issue

From plugin
archon
24k19 skills13 agents19 commands
$ npx -y skills add coleam00/Archon --agent claude-code

Command definition

implement-fix.md
description: Implement fix from RCA document for GitHub issue
argument-hint: "[github-issue-id]"

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

6. Verify Fix Manually

If applicable:

  • Follow reproduction steps from RCA
  • Confirm issue no longer occurs
  • Test edge cases
  • Check for unintended side effects

Output Report

Fix Implementation Summary

**GitHub Issue #$ARGUMENTS**: [Brief title]

**Root Cause** (from RCA): [One-line summary]

Changes Made

**Files Modified:** 1. **[file-path]**

  • Change: [what was changed]
  • Lines: [line numbers]

Tests Added

**Test Files Created/Modified:** 1. **[test-file-path]**

  • Test cases: [list test functions]
  • Mock isolation: [notes on mock.module() vs spyOn()]

Validation Results

Type Checking:  ✅/❌
Linting:        ✅/❌
Formatting:     ✅/❌
Tests:          ✅/❌ [X passed]
Full Validate:  ✅/❌

Ready for Commit

All changes complete and validated. Ready for:

/commit

**Suggested commit message:**

fix([package]): resolve GitHub issue #$ARGUMENTS - [brief description]

[Summary of what was fixed and how]

Fixes #$ARGUMENTS

Optional: Update GitHub Issue

gh issue comment $ARGUMENTS --body "Fix implemented. Ready for review."

Notes

  • If the RCA document is missing, request it with `/rca $ARGUMENTS`
  • If you discover the RCA analysis was incorrect, document findings and update the RCA
  • If additional issues are found during implementation, note them for separate issues
  • Follow Archon coding standards exactly (AGENTS.md + relevant .claude/rules/)
Read more
@coleam00
Ships witharchon

The first open-source harness builder for AI coding. Make AI coding deterministic and repeatable.

24k7 skills13 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
23.9k
Star history of coleam00/Archon on GitHub, a chart by star-history.com

Other commands on archon.

rca

rca

Command

Analyze and document root cause for a GitHub issue

@coleam00@coleam00Install Command
handoff

handoff

Command

Write a session handoff document for the next agent or session

@coleam00@coleam00Install Command

More commands from other plugins.

COMMAND_COMPLIANCE_REPORT

COMMAND_COMPLIANCE_REP…

Command

Reviewed all command files in `.claude/commands/analysis/` directory to ensure proper usage of: - `mcp__claude-flow__*` tools…

@ruvnet@ruvnetInstall Command
ask

ask

Command

This compatibility command keeps `/oh-my-claudecode:ask` available without loading the full `ask` skill description in every…

@yeachan-heo@yeachan-heoInstall Command