debugging-helpers/SKILL.md
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
npx skillsauth add lidge-jun/cli-jaw-skills debugging-helpersInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Find root cause before attempting fixes. Symptom fixes mask underlying issues and waste time.
Complete each phase before proceeding to the next.
Before attempting any fix:
Read error messages carefully
Reproduce consistently
Check recent changes
Gather evidence in multi-component systems
When a system has multiple components (CI → build → signing, API → service → database), add diagnostic instrumentation before proposing fixes:
For each component boundary:
- Log what data enters and exits the component
- Verify environment/config propagation
- Check state at each layer
Run once to gather evidence showing WHERE it breaks
Then investigate that specific component
Example (multi-layer system):
# Layer 1: Workflow
echo "=== Secrets available: ==="
echo "IDENTITY: ${IDENTITY:+SET}${IDENTITY:-UNSET}"
# Layer 2: Build script
env | grep IDENTITY || echo "IDENTITY not in environment"
# Layer 3: Signing
security find-identity -v
# Layer 4: Actual signing
codesign --sign "$IDENTITY" --verbose=4 "$APP"
Trace data flow
See root-cause-tracing.md for the complete backward tracing technique.
Quick version:
Create a failing test case — simplest possible reproduction, automated if feasible
Implement a single fix — address root cause only; no "while I'm here" improvements
Verify the fix — test passes, no other tests broken, issue actually resolved
If the fix fails — count attempts:
If 3+ fixes failed: question architecture
Pattern indicating architectural problems:
Stop and question fundamentals:
Discuss with the human before attempting more fixes.
If any of these apply, pause and re-investigate before continuing:
Available in this directory:
root-cause-tracing.md — trace bugs backward through call stack to find original triggerdefense-in-depth.md — add validation at multiple layers after finding root causecondition-based-waiting.md — replace arbitrary timeouts with condition pollingRelated skills:
| Phase | Key Activities | Success Criteria | |-------|---------------|------------------| | 1. Root Cause | Read errors, reproduce, check changes, gather evidence | Understand what and why | | 2. Pattern | Find working examples, compare | Identify differences | | 3. Hypothesis | Form theory, test minimally | Confirmed or new hypothesis | | 4. Implementation | Create test, fix, verify | Bug resolved, tests pass |
tools
Use only on the Codex CLI for native image generation or image editing without an API key. Save final PNG files under ~/.cli-jaw/uploads, report web-ready absolute-path markdown, and send to Telegram or Discord only when explicitly requested.
tools
Ranked repository structure map via `cli-jaw map`. Use for codebase overview, structure map, symbol overview, unfamiliar codebase exploration, architecture orientation. Triggers: repo map, structure map, codebase overview, 와꾸, project structure, unfamiliar code.
tools
cli-jaw Design workspace: create, preview, run, and export design pages from the right sidebar. Covers panel UX, direct-write workflow, artifact lifecycle, wireframe generation, design system, and Open Design adapter.
development
MUST USE for infrastructure and delivery work — container builds, deploy pipelines, Kubernetes, Infrastructure as Code, SRE foundations, edge/serverless, ML infrastructure. Triggers: Dockerfile, K8s manifests, CI/CD pipeline, Terraform/IaC, release/deploy, devops/infra/deploy or release_cd task_tags.