Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

fix-issue

БесплатноЗапускает вложенные скриптыНе проверен

Triages and fixes a GitHub issue given its number or URL: root cause and culprit (stack trace, blame), a fix with tests, a linked PR, prevention notes. Use…

yonatangrossот yonatangross★ 312 звёзд на GitHub

Об этом скилле

Fix Issue

Host-neutral workflow. Invoke by skill name (fix-issue). Claude Code slash routing, YAML hook loaders, and .claude/chain live in references/claude-code.md.

Systematic issue resolution with hypothesis-based root cause analysis, similar issue detection, and prevention recommendations.

Quick Start

fix-issue 123
fix-issue 456

Opus 5.5: Root cause analysis uses native adaptive thinking. Dynamic token budgets scale with context window for thorough investigation.

CC ≥ 2.1.119 multi-host note (M122): Issue fetching works against GitHub, GitLab, Bitbucket, and GitHub Enterprise. The argument is either a numeric ID (use the configured default remote's host) or a full URL (parsed via parsePrUrl/parseIssueUrl from src/hooks/src/lib/pr-host-parser.ts). Branch on the detected host family for the right CLI: gh issue view (GitHub/GHE), glab issue view (GitLab), bb issue view (Bitbucket). Reference: src/skills/chain-patterns/references/pr-from-platform.md.

Argument Resolution

Check the target first, before any other step. This skill forks and cannot see the conversation. Load Read("../../shared/rules/target-resolution.md"): if the target, flags stripped, is a bare pronoun or deictic (this, them, that one) or empty, return exactly TARGET_UNRESOLVED: <word> and stop. The caller resolves it and re-invokes.

ISSUE_NUMBER = "$ARGUMENTS" with the flags stripped  # the target the check above reads, e.g. "123"
# $ARGUMENTS contains the full argument string and may open with flags
# like --model=opus; indexing [0] would fetch the flag, not the issue.
# If the stripped target is not an issue number or URL, return
# TARGET_UNRESOLVED: <word> and stop.

STEP -1: MCP Probe + Resume Check

Run BEFORE any other step. Detect available MCP servers and check for resumable state.

Load the issue the target names first. A fork skill never runs frontmatter hooks (#4683), so fetch ISSUE_NUMBER (the flags-stripped target, never $ARGUMENTS[0]) yourself and keep the result in mind. Do not call skill/issue-context-loader for this: it takes its number from the branch name, not from the argument, so on a branch like fix/ork10-... it loads a different issue. Use the CLI the M122 host note selects (gh, glab, or bb):

gh issue view "$ISSUE_NUMBER" --json title,body,labels,milestone,state
# Probe MCPs (parallel — all in ONE message):
# memory is alwaysLoad in .mcp.json (CC 2.1.121+, #1541) — probe below kept as fallback for older CC:
ToolSearch(query="select:mcp__memory__search_nodes")
ToolSearch(query="select:mcp__context7__resolve-library-id")

# Write capability map:
Write(".claude/chain/capabilities.json", JSON.stringify({
  "memory": <true if found>,
  "context7": <true if found>,
  "timestamp": now()
}))

# Check for resumable state:
Read(".claude/chain/state.json")
# If exists and skill == "fix-issue":
#   Read last handoff, skip to current_phase
#   Tell user: "Resuming from Phase {N}"
# If not exists: write initial state
Write(".claude/chain/state.json", JSON.stringify({
  "skill": "fix-issue",
  "issue": ISSUE_NUMBER,
  "current_phase": 1,
  "completed_phases": [],
  "capabilities": capabilities
}))

Load pattern details: Read("../chain-patterns/references/mcp-detection.md")

Phase 0b — Prior-fix lookup (signal-fired, optional)

Before diagnosis kicks off, optionally invoke scripts/prior_fix_lookup.py <session-dir> to surface similar fixes already recorded in the memory MCP. READ-ONLY — no writeback. Self-skips on every non-happy-path so it never blocks the fix:

python3 ${CLAUDE_SKILL_DIR}/scripts/prior_fix_lookup.py "$CLAUDE_JOB_DIR"

Auto-skip conditions (all exit 0, all WARN-logged):

Skip reason Trigger
signal absent error_text missing OR signature extractor returns None
yg-mcp-core not importable yg-mcp-core>=0.3.0 not installed (orchestkit is public; yg-mcp-core lives on private pypi.yonyon.ai — HQ-only)
memory MCP unreachable MCP server down OR .mcp.json doesn't define memory

Session dir must contain fix-issue-input.json (with error_text: str). The signature extractor (signature_lib.extract_signature) normalizes Python tracebacks, JS stack traces, and generic <Type>: <msg> errors to a <error_type> <primary_path>:<lineno> shape used as the search_nodes query. Handoff JSON at <session-dir>/prior-fix-matches.json records status, signature, and matches_count; the top-3 matches land in <session-dir>/prior-fix-matches.md as a Markdown table.

Mirrors the memory-consumer pattern from PR #1889 but read-only. Closes orchestkit#1895.

Finish line. Done means: the root cause is confirmed by a failing test that now passes, the full suite is green, and the PR links the issue. Follow Read("../../shared/rules/long-run-protocol.md"): keep going when a step needs no input from the user, stop

Полный SKILL.md на GitHub

Установить fix-issue в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

SendMessage
AskUserQuestion
Bash
Read
Write
Edit
Agent
TaskCreate
TaskUpdate
TaskStop
Grep
Glob
ToolSearch
ExitWorktree
CronCreate
CronDelete
PushNotification
mcp__memory__search_nodes
mcp__memory__create_entities
mcp__context7__resolve-library-id
mcp__context7__query-docs

Вложенные файлы

assets/commit-template.mdassets/rca-report-template.mdassets/runbook-entry-template.mdchecklists/fix-complete-checklist.mdreferences/agent-selection.mdreferences/agent-teams-rca.mdreferences/cc-enhancements.mdreferences/claude-code.mdreferences/fix-blast-radius.mdreferences/fix-phases.mdreferences/hypothesis-rca.mdreferences/prevention-patterns.mdreferences/similar-issue-search.mdrules/_sections.mdrules/_template.mdrules/evidence-gathering.mdrules/rca-fault-tree.mdrules/rca-fishbone.mdrules/rca-five-whys.mdscripts/prior_fix_lookup.pyscripts/signature_lib.pyscripts/similar-issue-finder.shtest-cases.json

FAQ

Что делает скилл fix-issue?

Triages and fixes a GitHub issue given its number or URL: root cause and culprit (stack trace, blame), a fix with tests, a linked PR, prevention notes. Use for issue #N or a URL; it stops without one.

Как установить скилл fix-issue?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл fix-issue запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить fix-issue с