debugging

A structured method for finding and fixing software bugs. It starts by writing a test that reproduces the failure, then investigates its underlying cause before making a small fix.

In plain words
What is it for?
It is for reproducing bugs, analyzing logic errors, boundary cases, concurrency problems, type errors, and external dependency issues, including in Go projects.
Why use it?
It reduces the risk of patching only where the problem appears while leaving the real cause or related callers untouched.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/insajin/autopus-adk/debugging
Any agent
npx skills add Insajin/autopus-adk --skill debugging
Clone the repo
git clone --depth 1 https://github.com/Insajin/autopus-adk

Made for: Claude Code, Codex.

Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 735 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00016 $0.00735
Opus 5 $0.00008 $0.00367
Sonnet 5 $0.00003 $0.00147
Haiku 4.5 $0.00002 $0.00073

Measured 3d ago against content hash 065af540c052, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

debugging scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.omp/skills/debugging/SKILL.md · 97 lines

What it actually says

Debugging Skill

버그를 체계적으로 재현하고 근본 원인을 분석하여 수정하는 스킬입니다.

핵심 원칙

재현 테스트를 먼저 작성한다. 수정 전에 버그를 재현하는 테스트를 작성하고, 수정 후 테스트가 통과하는지 확인합니다.

디버깅 프로세스

1단계: 버그 재현

1. 버그 재현 조건 파악
   - 어떤 입력/상태에서 발생하는가?
   - 항상 발생하는가, 간헐적으로 발생하는가?
   - 특정 환경에서만 발생하는가?

2. 재현 테스트 작성 (RED)
   - 가장 단순한 재현 케이스로 테스트 작성
   - 테스트가 실패하는지 확인
// 버그 재현 테스트 — 수정 전 FAIL, 수정 후 PASS
func TestBug_IssueNumber_ReproductionTest(t *testing.T) {
    // Given: 버그 발생 조건
    // When: 버그 트리거 동작
    // Then: 기대한 동작 (현재는 실패)
}

2단계: 근본 원인 분석

도구 활용:

# Go: 레이스 컨디션 탐지
go test -race ./...

# 스택 트레이스 분석
go test -v -run TestBug 2>&1

# pprof 프로파일링
go test -cpuprofile cpu.out -memprofile mem.out

근본 원인 분류:

  • 로직 오류: 조건문, 계산 실수
  • 경계 조건: 빈 입력, 최대값, 최소값
  • 동시성: 레이스 컨디션, 데드락
  • 타입/변환: 오버플로우, nil 포인터
  • 외부 의존성: API 변경, 설정 오류

Caller/shared root-cause rule:

  • 증상 위치(symptom location), owning function/path, caller 목록 또는 grep evidence를 기록합니다.
  • caller와 shared root-cause path를 먼저 확인한 뒤 패치 위치를 선택합니다.
  • 증상 위치만 패치하고 caller/shared root-cause evidence가 없으면 patch plan을 revise-target으로 표시합니다.
  • evidence가 증상 위치 자체가 root cause이거나 affected caller가 하나뿐임을 보여줄 때만 focused patch를 허용합니다.

3단계: 최소 수정

원칙:
- 버그 수정에만 집중 (리팩토링 금지)
- 가능한 한 작은 변경
- 사이드 이펙트 최소화

4단계: 검증

# 재현 테스트 통과 확인
go test -run TestBug -v

# 회귀 테스트 실행
go test ./...

# 레이스 컨디션 재확인
go test -race ./...

체크리스트

  • 버그 재현 테스트 작성 및 FAIL 확인
  • 근본 원인 파악
  • caller/shared root-cause path 확인 또는 revise-target 기록
  • 최소 수정 적용
  • 재현 테스트 PASS 확인
  • 전체 테스트 스위트 통과
  • 커밋 메시지에 버그 이슈 번호 포함
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 97 lines · 16 tokens per session scan A 065af540c052

Subscribe to this mod's changes

debugging is a skill published in the GitHub repository Insajin/autopus-adk (105 stars, last pushed 3d ago), licensed MIT. It adds 16 tokens to every session and 735 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

test-driven-development

Use when implementing or changing code behavior, before writing production code.

Threat-Vector-Security/guardian-agent · 17 tokens

foundry-hosted-agent-validation

Step-by-step process for validating a Python Foundry hosted agent sample (under python/samples/04-hosting/foundry-hosted-agents/) end to end — running it locally (native runtime and azd ai agent run) and after deploying it to an Azure AI Foundry project with azd. Use this when asked to validate a hosted agent sample.

microsoft/agent-framework · 82 tokens

python-feature-lifecycle

Guidance for package and feature lifecycle in the Agent Framework Python codebase, including stage meanings, feature-stage decorators, feature enums, and how to move APIs from one stage to the next.

microsoft/agent-framework · 43 tokens

build-and-test

How to build and test .NET projects in the Agent Framework repository. Use this when verifying or testing changes.

microsoft/agent-framework · 26 tokens

python-development

Coding standards, conventions, and patterns for developing Python code in the Agent Framework repository. Use this when writing or modifying Python source files in the python/ directory.

microsoft/agent-framework · 35 tokens

foundry-config-setup

Resolve missing setup caused by a hardcoded Foundry project endpoint or model in a sample. Use when a sample fails because it uses a placeholder/hardcoded projectendpoint (for example "https://your-project.services.ai.azure.com") or a hardcoded model instead of reading them from the environment.

microsoft/agent-framework · 65 tokens