AGENT SKILL

fix-issue

Use when fixing a GitHub issue — reproduce, trace root cause, fix, add regression test

License 许可
Apache-2.0
最近更新
2026-10-11
Stars
★ 7
Forks
8

01 前言 Front Matter

name
fix-issue
arguments
[ { "name": "issue", "required": true, "description": "GitHub issue number or URL" } ]
description
Use when fixing a GitHub issue — reproduce, trace root cause, fix, add regression test
disable-model-invocation
true

03 SKILL.md 正文

Fix Issue Workflow

When to use

  • Fixing a tracked GitHub issue: reproduce → trace root cause → fix → add regression test.
  • Any bug fix that needs a failing test written first (TDD approach).
  • Investigating an issue report where the reproduction steps or root cause are unclear.

Step 1: Load Issue Context

  • Fetch issue details: gh issue view $issue --json title,body,labels,comments
  • Read all comments for additional context
  • Identify: expected behavior, actual behavior, reproduction steps

Step 2: Reproduce

  • Set up reproduction environment based on issue description
  • Write a failing test that captures the bug (TDD approach)
  • If cannot reproduce — ask user for more context, do NOT guess

Step 3: Trace Root Cause

  • Use Grep/Glob to find relevant code paths
  • Trace execution flow from entry point to failure
  • Identify the ROOT CAUSE, not symptoms
  • Check DECISIONS.md for related past decisions

Step 4: Checkpoint

  • git commit current state: checkpoint: before fix-issue #$issue

Step 5: Fix

  • Fix at the root cause level, NOT overlay/patch
  • Follow Constructor Pattern: if fix grows file >200 lines, decompose
  • Ensure fix doesn't break other functionality

Step 6: Verify

  • Run the failing test — must pass now
  • Run full test suite — no regressions
  • If test suite doesn't exist, create at minimum:
    • Test for the specific bug (regression test)
    • Test for the happy path of affected function

Step 7: Commit

  • fix: <description of what was fixed> (closes #$issue)
  • Update TODO.md if issue was tracked there

04 同仓库更多 Skills

KeiSeiLab
KeiSeiLab/KeiSeiKit

wave-audit

3-wave parallel audit — Wave 1 discovery (4 agents), Wave 2 verification (4 agents), Wave 3 cross-optimization (1 synthesizer). Each wave runs agents in parallel. Combines security review, runtime analysis, quality check, and constructor pattern into one unified workflow with evidence grading and Go/No-Go verdict.

★ 7
KeiSeiLab
KeiSeiLab/KeiSeiKit

vm-provision

End-to-end VPS provisioning — select provider → plan → provision → harden → verify (ssh-check + firewall-diff hard-gate) → handoff. 6 phases, ≥6 AskUserQuestion calls, defensive-only. Stops if either verification primitive fails.

★ 7
KeiSeiLab
KeiSeiLab/KeiSeiKit

visual-explainer

Generate beautiful, self-contained HTML pages that visually explain systems, code changes, plans, and data. Use when the user asks for a diagram, architecture overview, diff review, plan review, project recap, comparison table, or any visual explanation of technical concepts. Also use proactively when you are about to render a complex ASCII table (4+ rows or 3+ columns) — present it as a styled HTML page instead.

★ 7
KeiSeiLab
KeiSeiLab/KeiSeiKit

video-gen

Use when generating video from frame sequences — FFmpeg extraction, WebP/AVIF conversion, sprite sheets, scroll-synced playback, video encoding/transcoding. Covers the full pipeline from video source to web-ready frame sequence or optimized video.

★ 7
KeiSeiLab
KeiSeiLab/KeiSeiKit

test-matrix

Use when a project needs testing BEYOND unit tests — fuzzing, property-based, load, E2E, or mutation. Five-phase hub-and-spoke pipeline composes the right mix per language × critical path × CI target, scaffolds configs + corpus + fixtures, wires CI jobs, and defines the crash/regression triage workflow. Pure-click: every decision except intake is an AskUserQuestion.

★ 7
KeiSeiLab
KeiSeiLab/KeiSeiKit

test-gen

Use when generating tests for untested code — happy path, edge cases, error handling

★ 7