본문으로 건너뛰기
cccskills
무료GitHub에 공개

triage-issue

Investigate a reported problem, diagnose root cause, and file a Beads issue with a behavior-level TDD fix plan.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md6.4 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

triage-issue

Investigate a bug report or broken behavior, find the root cause, and create follow-up work in Beads with a durable RED/GREEN fix plan. Keep the workflow mostly hands-off: ask only for the minimum problem statement, then investigate.

When to use

  • The user reports a bug, regression, confusing behavior, failing workflow, or production symptom.
  • The user asks to triage, investigate, diagnose, or file an issue for a problem.
  • You need a fix plan but should not implement the fix yet.

Do not use this skill for broad product planning, feature decomposition, or already-approved implementation work. Use to-prd, to-issues, or tdd instead when those are the actual request.

Process

1. Capture the problem

Get one brief description of the issue from the user. If they have not provided one, ask exactly one clarifying question first:

What's the problem you're seeing?

Do not start with a long questionnaire. Preserve any reported symptoms, expected behavior, reproduction hints, logs, affected environment, and impact, then begin diagnosis.

2. Load harness context first

Before source exploration, read relevant knowledge and repo guidance:

  • knowledge/_shared.yaml
  • knowledge/repos/<repo>.yaml for the affected repo, when present
  • repos/<repo>/AGENTS.md and repos/<repo>/CONTRIBUTING.md when investigating a sub-repo
  • Existing Beads context with bd show <id> when the report is attached to an issue

If a knowledge file is missing, note that briefly and continue. Do not let missing documentation block investigation.

3. Explore and diagnose

Trace the behavior far enough to identify root cause, not just the symptom. Investigate:

  • Where the problem manifests: UI behavior, command output, API response, data mutation, or user-visible effect
  • What public flow or contract is involved
  • Why the current behavior fails
  • Similar working patterns elsewhere in the codebase
  • Existing tests and the behavioral coverage gap
  • Recent relevant changes when history can explain a regression

Use a focused Explore subagent only when the codebase area is broad or unfamiliar. For small, local bugs, direct reading and targeted search are enough. Do not delegate merely to add ceremony.

Keep private diagnostic notes as needed, but keep the final issue durable. The issue should describe behaviors, contracts, and outcomes rather than fragile file paths, line numbers, or implementation details that could become stale after a refactor.

4. Identify the minimal fix approach

Before filing, decide:

  • The smallest behavior change that addresses the root cause
  • Whether this is a regression, missing validation, missing feature, data migration need, or design flaw
  • Which public interfaces or user-visible workflows need verification
  • What existing tests should remain green
  • What risk remains if the diagnosis is uncertain

If root cause is not known, file an investigation task rather than pretending to know the fix. State the leading hypothesis and the evidence needed to confirm it.

5. Design the TDD fix plan

Write an ordered list of RED/GREEN cycles. Each cycle is one vertical slice:

RED: Add one failing test that captures an observable broken behavior.
GREEN: Make the smallest code change that passes that test.

Rules:

  • Test through public interfaces and observable outcomes.
  • Prefer behavior assertions: API responses, command results, persisted data, rendered UI state, user-visible messages, emitted events.
  • Avoid tests that assert private helper calls, internal state shape, line numbers, or current file layout.
  • Add one failing test at a time; do not write all tests first and implementation afterward.
  • Include a final REFACTOR step only after the planned tests are green.
  • Make the plan resilient to radical internal refactors. A good plan reads like a spec, not a diff.

6. Choose Beads priority

Before creating a new Beads issue or changing an existing issue's priority, read and apply:

.claude/skills/beads-priority-assignment/SKILL.md

Set an explicit priority on every created issue when the local bd CLI supports priority. If no urgency, impact, or deferral-risk signal exists, use the harness default P2 / 2 / medium.

7. Create or update the Beads issue

Use Beads by default. Do not create a GitHub issue unless the user explicitly asks for GitHub or the repository's documented workflow requires it.

For a new issue:

bd create --type task --title "<durable behavior title>" --description "<issue body markdown>" --priority <value> --repo .
bd comments add <new-id> "worklog: triaged root cause; TDD fix plan added."

For an existing issue:

bd comments add <id> "worklog: triage result - <one-line root cause and TDD plan summary>."
bd update <id> --priority <value>

Use this issue body shape:

<issue-template>

Problem

Describe the durable behavior:

  • Actual behavior: what happens now
  • Expected behavior: what should happen instead
  • Reproduction: the shortest known path, if known
  • Impact: who or what is affected

Root Cause Analysis

Summarize the diagnosis:

  • Public flow or contract involved
  • Why the behavior fails
  • Contributing factors
  • Confidence level and remaining uncertainty, if any

Avoid file paths, line numbers, and implementation-specific diffs in this section. Mention modules only at the level a maintainer would still understand after a refactor.

TDD Fix Plan

  1. RED: Write a behavior test proving <expected observable outcome>. GREEN: Implement the smallest change that makes that behavior pass.

  2. RED: Write a behavior test proving <next important edge case or regression guard>. GREEN: Extend the implementation only as needed for that behavior.

REFACTOR: Clean up duplication or naming after all planned tests pass, then rerun the relevant quality gates.

Acceptance Criteria

  • The reported behavior is reproduced by at least one failing test before the fix.
  • The expected behavior is verified through public interfaces or user-visible output.
  • The root cause is fixed without relying on brittle implementation details.
  • New tests and existing relevant tests pass.
</issue-template>

After creating or updating the issue, report the Beads ID, chosen priority, and a one-line root-cause summary to the user.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

add-bead

무료

Capture free-text work as a tracked Beads issue. Use when the user runs /add-bead or wants to quickly file a Beads issue.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

jupes/agent-forge-harness22026년 10월 19일 업데이트

add-repo

무료

Register a new sub-repo in the knowledge base.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

jupes/agent-forge-harness22026년 10월 19일 업데이트

Add focused Bun unit tests for mission-critical behavior and edge cases — not blanket coverage.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

jupes/agent-forge-harness22026년 10월 19일 업데이트

ask

무료

Answer questions about the codebase from knowledge files. Use when the user runs /ask or asks a domain/knowledge question about the repos.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

jupes/agent-forge-harness22026년 10월 19일 업데이트

Meta-skill for creating Agent Forge skills under .claude/skills/ with SKILL.md, optional references/ and scripts/, and Bun scaffolds. Use when the user wants to add or author a skill, scaffold a new skill folder, or align skill docs with harness conventions (JSON script output, Beads for tasks).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

jupes/agent-forge-harness22026년 10월 19일 업데이트

Choose Beads issue priority (P0–P4, numeric, or named) from urgency, impact, and risk when creating or triaging work.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

jupes/agent-forge-harness22026년 10월 19일 업데이트

jupes의 스킬 모두 보기

이 스킬의 문제 신고