remy-debug
Diagnose bugs via hypothesis loop with circuit breaker. Diagnosis only — produces evidence packets for /remy-patch without modifying code.
от MyPeacefulValentine★ 28 звёзд на GitHub
Установить remy-debug в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Remy Debug Protocol
Diagnosis-only debugging skill. Produces a structured diagnosis report and an evidence packet compatible with /remy-patch. Does NOT modify source code.
0. Configuration
| Environment Variable | Default | Description |
|---|---|---|
DEBUG_MAX_HYPOTHESES |
3 |
Maximum hypothesis iterations before circuit breaker triggers. |
Argument Parsing
/remy-debug [symptom] [--since <git-ref>]
- If no argument provided: enter Guided Mode (Phase 0.1).
- If argument contains a test file path pattern (e.g.,
test_*.py,*.test.ts,*_test.go): treat as test command. - If argument matches
<file>:<line>pattern: treat as location reference. - Otherwise: treat as error description.
--since <ref>: optional git revision to scope regression analysis.
Phase 0: Symptom Capture
Goal: Obtain a concrete, actionable symptom description.
0.1 Guided Mode (no arguments)
Use AskUserQuestion to collect:
- What is the observed behavior?
- What is the expected behavior?
- When did it start (if known)?
0.2 Test Command Mode
- Check the current mode and authorization before running the existing test command via
Bash(orPowerShellon Windows). If execution is not permitted, use available error output or report the missing observation; do not run a probe in native Plan mode. - Capture exit code, stdout, stderr.
- If exit code = 0: report "Test passes. No failure to diagnose." → HALT.
- Record full error output as the Symptom Record.
0.3 Error Description Mode
Record the user-provided text as the Symptom Record.
0.4 Location Reference Mode
Readthe specified file at the given line (±20 lines context).- Record the code region as the Symptom Record.
Phase 0 Exit: A Symptom Record exists. Proceed to Phase 1.
Phase 1: Localization
Goal: Identify suspect files and narrow the search space.
1.1 Stack Trace Parsing
If the Symptom Record contains a stack trace or error with file paths:
- Extract all file paths and line numbers mentioned.
- These become the Suspect Set.
If no parseable paths exist:
Grepfor keywords from the error message (function names, error codes, unique strings).- Results become the Suspect Set.
1.2 Impact Analysis (Conditional)
- Check:
Bash("test -f .claude/logic_index.db && echo EXISTS || echo MISSING"). - EXISTS: Run
Bash("python \"~/.claude/skills/remy-index/impact.py\" <suspect_file_1> <suspect_file_2> ...").- MCP alternative: If
remy-indexMCP server is active,query_impact/query_callerstools provide equivalent data without subprocess overhead.
- If exit code = 0: record output as Dependency Map.
- If exit code = 2: skip (no call graph data).
- MCP alternative: If
- MISSING: Skip impact analysis.
1.3 Git History Analysis
- For each file in the Suspect Set:
git log -5 --oneline -- <file> - If
--since <ref>was provided:git diff <ref>..HEAD -- <suspect_files> - Record recent changes as Change History.
1.4 Context Read
For each file in the Suspect Set:
- If Dependency Map provides line ranges and file exceeds 500 lines: precision-read relevant ranges.
- Otherwise: read the full file.
Phase 1 Exit: Suspect Set, Dependency Map (if available), Change History, and suspect code are in context.
Phase 2: Hypothesis Loop
Goal: Iteratively form and test hypotheses until supported failure mechanism is identified or circuit breaker triggers.
Initialize: _hypothesis_count = 0
2.1 Form Hypothesis
Based on available evidence (Symptom Record, suspect code, Change History, Dependency Map), state:
- Hypothesis: One sentence describing a possible failure mechanism and the observation it explains.
- Evidence state: Use
style.md's shared[✓],[~],[?], or[×]for the specific claim. A proposed explanation usually remains[~]with supporting evidence or[?]when evidence is insufficient. Add an acquired-basis attribute only when useful, such as[~|源码+实测]; state citations, scope, and unresolved premises separately. - Probe Design: Identify the next permitted observation that could distinguish the hypothesis from alternatives. Question types and optional investigation methods follow
rules/reasoning-and-decisions.md; a method label does not authorize a test or script.
2.2 Execute Probe
Probes follow the Observation Task Protocol (output-styles/system-architect.md §4.1). Debug-specific extension: re-running existing tests is allowed only within applicable authorization and an execution-permitting mode (the test runner may touch its own cache directories). Native Plan mode does not execute probes. Creating a temporary script is not permitted by this extension.
Allowed probe types within those boundaries (read-only + existing test execution):
Reada specific code regionGrepfor a patternBash/`Power
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Read - 02
Grep - 03
Glob - 04
Bash - 05
PowerShell - 06
Write - 07
AskUserQuestion
Вложенные файлы
- README.md
- README_zh.md
- diagnosis_template.md
- output_schema.json
FAQ
Что делает скилл remy-debug?
Diagnose bugs via hypothesis loop with circuit breaker. Diagnosis only — produces evidence packets for /remy-patch without modifying code.
Как установить скилл remy-debug?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл remy-debug запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…