.agents/skills/debugging-protocol/SKILL.md
Systematic 4-phase debugging: (1) understand the failure by reading the complete error and reproducing it, (2) find working examples to compare against, (3) test one hypothesis at a time with a single change, (4) fix the root cause and verify with tests. Includes the Three Strikes Rule (escalate after 3 failed fix attempts) and the Iron Law (no fixes without investigation). Activate when tests fail unexpectedly, errors occur, behavior is wrong, something that worked before is now broken, or a user reports a bug. Triggers on: "debug", "why is this failing", "test failure", "unexpected error", "bug", "broken", "investigate this error", "fix this bug", "tests are failing", "weird behavior", "something broke", "track down this issue". Also activates when multiple bugs need systematic investigation (one at a time, not batch-fixed). NOT for: writing new tests from scratch (use tdd), or general code review (use code-review).
npx skillsauth add G858-debug/No-Safe-Word debugging-protocolInstall 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.
Value: Feedback -- systematic investigation produces understanding. Understanding produces correct fixes. Correct fixes prevent recurrence. Skipping investigation produces symptom fixes that hide bugs.
Teaches a disciplined 4-phase debugging process that enforces root cause analysis before any fix attempt. Prevents the most common debugging failure mode: jumping to a fix without understanding why the problem exists.
Never change code to fix a bug until you have completed root cause investigation. When you see an error and immediately know the fix, that is exactly when you are most likely to be wrong. Investigate first.
Do:
Do not:
Gather facts. Do not interpret yet.
git log --oneline -10 and git diffOutput: A clear statement of what is happening, where, and since when.
Compare broken against working. The difference is the bug.
Output: A specific difference between working and failing cases.
Form a single, explicit hypothesis. Test it with one change. Learn from the result.
Do not change multiple things at once. If you change the import, the type, and the logic simultaneously, you cannot know which change mattered.
Output: Confirmed or refuted hypothesis with evidence.
Fix with confidence because you understand the root cause.
Output: A fix backed by a test, with all tests green.
If three fix attempts fail, stop. The problem is not what you think it is.
After the third failure:
Three failed fixes almost always signal a design problem, not a code problem. More code fixes will not help.
Example:
Attempt 1: Add caching (hypothesis: slow queries) -> Still slow
Attempt 2: Add index (hypothesis: missing index) -> Still slow
Attempt 3: Eager loading (hypothesis: N+1) -> Still slow
STOP. Profile the system.
Result: 90% of time in external API call. Not a database problem at all.
Hard constraints:
[H][RP]After debugging guided by this skill, verify:
If any criterion is not met, revisit the relevant phase.
This skill works standalone with no required dependencies. It integrates with:
Missing a dependency? Install with:
npx skills add jwilger/agent-skills --skill tdd
development
# SDXL Character LoRA Training — Pipeline Reference ## Overview Character LoRAs are trained using Kohya sd-scripts (`sdxl_train_network.py`) on RunPod GPU pods. Training runs as a fire-and-forget batch job — the orchestrator creates the pod, the pod trains, uploads the result, and POSTs a webhook on completion. **Base model for training:** SDXL 1.0 base (NOT Juggernaut Ragnarok). Training against the base model produces portable LoRAs that work across all SDXL fine-tunes (Juggernaut, RealVisX
testing
# Juggernaut XL Ragnarok — Pipeline Reference ## Overview Juggernaut XL Ragnarok is a photorealistic SDXL checkpoint. It is the most downloaded SDXL model (520K+ downloads) and the final SDXL release from KandooAI / RunDiffusion. **Key characteristics:** - Photorealistic output with cinematic quality - NSFW capability baked into training (trained with Booru tags on an NSFW dataset, merged with a Lustify-based NSFW pass for anatomical stability) - Supports BOTH natural language prompts AND Boo
tools
# Image Editing Workflows — Pipeline Reference ## Overview After initial image generation, the user has access to several post-generation editing tools. These are ComfyUI workflow variants that modify an existing generated image rather than generating from scratch. All editing workflows run on the same RunPod serverless infrastructure as generation, using the same Juggernaut Ragnarok checkpoint. ## Inpainting **Purpose:** Fix a specific region of a generated image without regenerating the w
testing
When the user needs marketing ideas, inspiration, or strategies for their SaaS or software product. Also use when the user asks for 'marketing ideas,' 'growth ideas,' 'how to market,' 'marketing strategies,' 'marketing tactics,' 'ways to promote,' 'ideas to grow,' 'what else can I try,' 'I don't know how to market this,' 'brainstorm marketing,' or 'what marketing should I do.' Use this as a starting point whenever someone is stuck or looking for inspiration on how to grow. For specific channel execution, see the relevant skill (paid-ads, social-content, email-sequence, etc.).