Skip to content
FunCoding

Search

Search docs, Skills and MCP

kiro-debug

Investigate implementation failures using root-cause-first debugging. Use when an implementer is blocked, verification fails, or repeated remediation does not converge.

代码质量与审查3.7ktools/cc-sdd/templates/agents/antigravity-skills/skills/kiro-debug/SKILL.md

Install

Send this to Claude Code, Codex or Cursor. The agent checks the Skill for safety first and installs it only after you confirm.

读取 https://funcoding.ai/skills/gotalab/cc-sdd/tools-cc-sdd-templates-agents-antigravity-skills-skills-kiro-debug/install.md ,按里面的步骤帮我安装这个 Skill。

SKILL.md

kiro-debug

<background_information> This skill is for fresh-context root cause investigation. It combines local evidence, runtime/config inspection, and external documentation or issue research when available. It is not a patch generator for guess-first debugging. </background_information>

## When to Use
  • Implementer reports BLOCKED
  • Reviewer rejection repeats after remediation
  • Validation fails unexpectedly
  • A task appears to conflict with runtime or platform reality
  • The same failure survives more than one attempted fix

Do not use this skill to speculate about fixes before gathering evidence.

Inputs

Provide:

  • Exact failure symptom or blocker statement
  • Error messages, stack trace, and failing command output
  • Current git diff or summary of uncommitted failed changes
  • Task brief: what was being built
  • Reviewer feedback, if the failure came from review rejection
  • Relevant spec file paths (requirements.md, design.md)
  • Relevant requirement/design section numbers
  • Relevant ## Implementation Notes
  • Runtime or environment constraints already known

Outputs

Return:

  • ROOT_CAUSE
  • CATEGORY
  • FIX_PLAN
  • VERIFICATION
  • NEXT_ACTION: RETRY_TASK | BLOCK_TASK | STOP_FOR_HUMAN
  • CONFIDENCE: HIGH | MEDIUM | LOW
  • NOTES

Use the language specified in spec.json.

Method

1. Read the Error Carefully

Extract:

  • Exact error text
  • Stack trace or failure location
  • The command that produced the failure
  • Whether the failure is deterministic or intermittent

2. Inspect Local Runtime and Repository State

Inspect the repository for local evidence:

  • package.json, pyproject.toml, go.mod, Makefile, README*
  • Build config
  • tsconfig or equivalent language/runtime config
  • Runtime-specific config
  • Dependency versions and scripts
  • Relevant changed files from git diff

3. Search the Web if Available

If web access is available, search:

  • The exact error message
  • The technology + symptom combination
  • Official documentation
  • Version-specific issue trackers or migration notes

Prefer:

  • Official docs
  • Official repos/issues
  • Version-specific references
  • Runtime-specific documentation

4. Classify the Root Cause

Use one category:

  • MISSING_DEPENDENCY
  • RUNTIME_MISMATCH
  • MODULE_FORMAT
  • NATIVE_ABI
  • CONFIG_GAP
  • LOGIC_ERROR
  • TASK_ORDERING_PROBLEM
  • TASK_DECOMPOSITION_PROBLEM
  • SPEC_CONFLICT
  • EXTERNAL_DEPENDENCY

5. Determine the Smallest Safe Next Action

Decide whether the issue can be fixed inside this repo by:

  • Editing files
  • Adjusting configuration
  • Adding or correcting dependencies
  • Restructuring code

Use NEXT_ACTION: RETRY_TASK when the issue is repo-fixable inside the current approved task plan.

6. Determine Whether the Task Plan Is Still Valid

Decide whether the current approved task plan is still safe to execute as written.

Prefer NEXT_ACTION: STOP_FOR_HUMAN when:

  • A missing prerequisite task should exist before this one
  • The current task is ordered incorrectly relative to unfinished work
  • The current task boundary is wrong and should be split or merged
  • The task is too large or ambiguous to fix safely inside the current implementation loop

Use NEXT_ACTION: BLOCK_TASK only when the current task should stop but the rest of the queue can still proceed safely.

Do not propose a brute-force code fix as a substitute for revising tasks.md or the approved plan.

Critical Rule

Do not propose a multi-fix shotgun plan. Identify the root cause first, then produce the smallest plausible fix plan. If the true problem is a spec conflict or architecture problem, say so directly.

Stop / Escalate

Use NEXT_ACTION: STOP_FOR_HUMAN when the blocker genuinely requires:

  • Human product/requirements decision
  • External credentials or inaccessible services
  • Hardware or unavailable external systems
  • Re-scoping due to spec/platform conflict

If the issue is fixable by repo changes inside the current task plan, do not escalate prematurely.

Common Rationalizations

RationalizationReality
“This probably just needs a quick patch”Patch-first debugging creates rework.
“Let’s try a few fixes”Multi-fix guessing hides root cause.
“The spec is probably wrong, I’ll adapt it”Spec conflicts must be surfaced explicitly.
“The docs search is optional”For runtime/dependency issues, docs and version issues often contain the shortest path to root cause.

Output Format

## Debug Report
- ROOT_CAUSE: <1-2 sentence root cause>
- CATEGORY: MISSING_DEPENDENCY | RUNTIME_MISMATCH | MODULE_FORMAT | NATIVE_ABI | CONFIG_GAP | LOGIC_ERROR | TASK_ORDERING_PROBLEM | TASK_DECOMPOSITION_PROBLEM | SPEC_CONFLICT | EXTERNAL_DEPENDENCY
- FIX_PLAN:
  1. <specific repo-fixable action>
  2. <specific repo-fixable action>
- VERIFICATION: <command(s) to confirm the fix>
- NEXT_ACTION: RETRY_TASK | BLOCK_TASK | STOP_FOR_HUMAN
- CONFIDENCE: HIGH | MEDIUM | LOW
- NOTES: <context the next implementer should know>

Similar Skills

claude-api
anthropics/skills180k

claude-api

Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named — don't Read the file).

Code quality & review

ponytail-review
DietrichGebert/ponytail158k

ponytail-review

Quality review of a change: is the logic right, is it safe, does it hold under real load, is risky code tested, is it fast enough, and is every line needed. Reads the connected code, not only the diff. Each finding is explained in plain English. Use for "review this", "code review", "review the last commit", "review my PR", "is this over-engineered", /ponytail-review.

Code quality & review

code-review-and-quality
addyosmani/agent-skills103k

code-review-and-quality

Conducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch. Use when asked to review a diff or a pull request, even when the diff is pasted inline.

Code quality & review

documentation-and-adrs
addyosmani/agent-skills103k

documentation-and-adrs

Records decisions and documentation. Use when you need to document an architecture decision (ADR) or the reasoning behind a design choice, when changing public APIs, shipping features, or when you need to record context that future engineers and agents will need to understand the codebase.

Code quality & review

code-simplification
addyosmani/agent-skills103k

code-simplification

Simplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity.

Code quality & review

understand
Egonex-AI/Understand-Anything86k

understand

Analyze a codebase to produce an interactive knowledge graph for understanding architecture, components, and relationships

Code quality & review