Skills for Real Engineers. Straight from my .agents directory.
trace-and-isolate
Agent skill fromrohitg00/skillkit
Applies systematic tracing and isolation techniques to pinpoint exactly where a bug originates in code. Use when a bug is hard to locate, code is not working as expected, an error or crash appears with unclear cause, a regression was introduced between recent commits, or you need to narrow down which component, function, or line is faulty. Covers binary search debugging, git bisect for regressions, strategic logging with [TRACE] patterns, data and control flow tracing, component isolation, minimal reproduction cases, conditional breakpoints, and watch expressions across TypeScript, SQL, and bash.
How to install trace-and-isolate
npx skills add rohitg00/skillkit# or add only this skill to Claude Code: copy the folder
packages/core/src/methodology/packs/debugging/trace-and-isolate/
# into
~/.claude/skills/trace-and-isolate/ (all projects)
.claude/skills/trace-and-isolate/ (one project)
1# Trace and Isolate23You are using systematic tracing and isolation techniques to narrow down where a bug originates. The goal is to find the exact location in code where behavior diverges from expectation.45## Quick Reference67| Scenario | Technique |8|---|---|9| Large codebase / complex flow | Binary search debugging |10| Bug appeared between commits | `git bisect` |11| Unclear data transformation | Strategic `[TRACE]` logging |12| Which component is faulty? | Component isolation + mocks |13| Bug hard to reproduce | Minimal reproduction case |14| Conditional or intermittent bug | Conditional breakpoints / watch expressions |1516## Binary Search Debugging1718When you have a large codebase or complex flow:19201. **Identify the start** - Last known good state212. **Identify the end** - First observed bad state223. **Test the middle** - Check if behavior is good or bad234. **Repeat** - Binary search on the half with the bug2425### Code Path Binary Search2627```28Start: User clicks submit button29End: Error shown to user3031Midpoint 1: Form validation32→ Data looks correct here? Continue to later code33→ Data already wrong? Focus on earlier code3435Midpoint 2: API request construction36→ Request payload correct? Focus on server side37→ Payload already malformed? Focus on form handling3839...Continue until exact line is found40```4142### Git Bisect for Regressions4344When a bug appeared between two commits:4546```bash47# Start bisect48git bisect start4950# Mark current (broken) state as bad51git bisect bad52…
Excerpt shown under the repository's Apache-2.0 license.
More skills in skillkit
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
