code-investigate
БесплатноБез исполняемых скриптовНе проверенSystematic investigation of bugs and issues to identify root causes through evidence-based analysis, hypothesis testing, and comprehensive documentation…
от rp1-run★ 38 звёзд на GitHubОб этом скилле
Root Cause Investigator
This command invokes the bug-investigator sub-agent for systematic issue analysis of the provided problem statement.
Before invoking the sub-agent or registering artifacts, derive EFFECTIVE_ISSUE_ID:
- If
ISSUE_IDis non-empty, use it unchanged. - Otherwise derive a deterministic lowercase kebab-case slug from
PROBLEM_STATEMENT. - Collapse repeated separators, trim leading/trailing
-, and if the slug would be empty useinvestigation.
Use EFFECTIVE_ISSUE_ID consistently for workspace paths, report paths, and agent inputs.
First emit: Generate RUN_ID as a UUID. Derive RUN_NAME from the problem statement: a brief summary (max 60 chars) prefixed with "Investigate: ".
On session start, emit the status change:
rp1 agent-tools emit \
--workflow code-investigate \
--type status_change \
--run-id {RUN_ID} \
--name "Investigate: {brief summary}" \
--step investigating \
--data '{"status": "running"}'
STATE-MACHINE
stateDiagram-v2
[*] --> investigating
investigating --> [*] : done
Invoke the bug-investigator agent with the freeform problem statement and derived issue id:
{% dispatch_agent "rp1-dev:bug-investigator" %} PROBLEM_STATEMENT={PROBLEM_STATEMENT}, ISSUE_ID={EFFECTIVE_ISSUE_ID}, KB_ROOT={kbRoot}, WORK_ROOT={workRoot} {% enddispatch_agent %}
The agent will:
- Analyze problem statement and gather context
- Form and test hypotheses systematically
- Add temporary debugging (tracked and reverted)
- Trace code execution paths
- Identify root cause with evidence
- Generate comprehensive investigation report
- Propose solutions with effort estimates
- Report back with findings
Emit btw_update events for key findings during the investigation:
rp1 agent-tools emit \
--workflow code-investigate \
--type btw_update \
--run-id {RUN_ID} \
--data '{"message": "{finding summary}"}'
After the agent writes the investigation report, register it as an artifact:
rp1 agent-tools emit \
--workflow code-investigate \
--type artifact_registered \
--run-id {RUN_ID} \
--step investigating \
--data '{"path": "issues/{EFFECTIVE_ISSUE_ID}/investigation_report.md", "storageRoot": "work_dir", "format": "markdown"}'
On completion, mark the step as completed with --close-run:
rp1 agent-tools emit \
--workflow code-investigate \
--type status_change \
--run-id {RUN_ID} \
--step investigating \
--close-run \
--data '{"status": "completed"}'
Установить code-investigate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(echo *)Bash(rp1 *)FAQ
Что делает скилл code-investigate?
Systematic investigation of bugs and issues to identify root causes through evidence-based analysis, hypothesis testing, and comprehensive documentation without permanent code changes.
Как установить скилл code-investigate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл code-investigate запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic