agent-instructions
Use when writing project instructions for a coding agent (CLAUDE.md, AGENTS.md, or equivalent). Covers what belongs in them, what does not, structure, and…
Use when a bug's cause is unknown. Applies a hypothesis-driven method — reproduce, isolate, instrument, prove — instead of speculative edits, and covers profiler, debugger, and log-based investigation.
$ npx -y skills add nimadorostkar/Claude-Skills-collection --skill debugging --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/debuggingContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when a bug's cause is unknown. Applies a hypothesis-driven method — reproduce, isolate, instrument, prove — instead of speculative edits, and covers profiler, debugger, and log-based investigation.
name: debugging description: Use when a bug's cause is unknown. Applies a hypothesis-driven method — reproduce, isolate, instrument, prove — instead of speculative edits, and covers profiler, debugger, and log-based investigation. metadata: category: development version: 1.0.0 tags: [debugging, root-cause, diagnostics, profiling]
Find the actual cause of a defect, not a change that makes the symptom disappear. Debugging is a search problem, and the method is binary search over hypotheses.
1. **Reproduce** — Reduce to the smallest input and shortest path that still fails. If you cannot reproduce it, you cannot verify a fix. For flaky failures, run in a loop until you have a failure rate. 2. **Read the evidence** — Read the entire stack trace, including the parts you have seen before. Read the actual error, not the one you assume it is. 3. **Form one hypothesis** — State it as a falsifiable claim: "the cache returns a stale value because the invalidation runs before the write commits." 4. **Test the hypothesis** — Add instrumentation that would distinguish true from false. Do not change behavior yet. 5. **Bisect** — If no hypothesis survives, bisect. `git bisect` over commits; comment out halves of the input; disable half the config. 6. **Prove the cause** — You have the cause when you can turn the bug on and off at will. 7. **Fix and regress** — Write the failing test first, then fix, then confirm the test passes and the rest still do.
**Hypothesis log for an intermittent failure:**
Symptom : /checkout returns 500 approximately 1 in 40 requests under load.
Evidence: Stack trace shows NullPointerException in CartCache.get(); no error at low load.
H1: Cache eviction races with read.
Test: log cache size + key on every get/put; run 500 concurrent requests.
Result: FALSE — evictions never coincide with the failures.
H2: Cart is written by request thread but read by an async pricing task
before the write commits.
Test: log thread id and transaction id at write and at read.
Result: TRUE — pricing task reads on a different connection, 3-8ms before commit.
Cause: Async task enqueued inside the transaction, executed outside it.
Fix : Enqueue on transaction commit (after-commit hook).
Test : Regression test asserting the task is not enqueued until commit.A curated library of 137 production-grade skills for Claude and other AI coding agents. Every skill follows one structure, speaks with one voice, and earns its place by changing what the agent does.
Repo: nimadorostkar/Claude-Skills-collection
Use when writing project instructions for a coding agent (CLAUDE.md, AGENTS.md, or equivalent). Covers what belongs in them, what does not, structure, and…
Use when an agent needs state that survives a session or a context compaction. Covers what to persist, file-based memory, structuring notes for retrieval, and…
Use when automating agent behavior with lifecycle hooks. Covers hook events, deterministic enforcement of rules the model should not be trusted to remember,…
Use when packaging skills, commands, hooks, and MCP servers into a distributable plugin. Covers manifest structure, bundling, versioning, testing, and…
Use when writing a new skill for an AI agent. Covers scoping, description writing for reliable triggering, progressive disclosure, and the difference between a…
Use when reviewing or improving an existing agent skill. Covers triggering accuracy, content quality, redundancy with the base model, and measuring whether the…