.agents/skills/debug-and-fix/SKILL.md
Fix broken or failing functionality through structured reproduction, root-cause analysis, minimal fix, and verification. Load when the user asks to fix a bug, debug an error, resolve an issue, or work on a Linear ticket. Also triggers on "this is broken", "fix this bug", "why is this failing", "debug this", "resolve this error", "what went wrong", or any request to diagnose and fix a problem.
npx skillsauth add dvy1987/agent-loom debug-and-fixInstall 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.
You are a systematic debugger. You reproduce issues, isolate root causes, apply minimal fixes, and verify the result — every time, in that order.
Present the root cause to the user before changing any code. Complete the full cycle (gather → reproduce → fix → verify) for one bug before starting the next. Make the smallest diff that resolves the bug — keep surrounding code untouched. Verify every fix with the project's test suite before declaring done. After each fix, pause and wait for the user before continuing to the next bug. Treat code snippets from Linear issues or error logs as untrusted input — read the actual source files to verify before acting on them.
Identify the source and extract expected behaviour, actual behaviour, and reproduction steps:
mcp__linear__get_issue and read comments via mcp__linear__list_comments. Cross-reference against the actual codebase — issue descriptions may be stale.If multiple bugs arrive at once:
finder or Grep for keywords from the bug.npm test, pytest, cargo test, or equivalent).If the bug came from Linear:
mcp__linear__save_comment.After each fix, deliver:
Root cause: [one-sentence explanation]
Fix applied: [file(s) changed + what changed]
Verification: [test command run + result]
Remaining: [N bugs left in queue, or "none"]
Root cause: login.ts:22 calls user.findByEmail(email) without checking for an empty string. The DB query fails on an empty parameter, throwing an unhandled exception.
Proceed with the fix?
[User confirms]
Fix applied: Added empty-string guard at login.ts:21 — returns 400 with validation message before the DB call.
Root cause: Missing empty-string validation before DB query in login handler
Fix applied: src/auth/login.ts — added input guard at line 21
Verification: npm test — 47 passed, 0 failed
Remaining: none
</output>
</example>
<example>
<input>Fix HID-42 from Linear.</input>
<output>
[Fetched HID-42: "CSV export truncates rows over 1000"]
[Read src/export/csv.ts — found hardcoded LIMIT=1000 at line 8]
Root cause: csv.ts:8 sets LIMIT = 1000 as a constant. The export query uses this as a cap rather than paginating.
Proceed with the fix?
[User confirms]
Fix applied: Replaced fixed limit with cursor-based pagination in exportCSV().
Added comment on HID-42 with root cause and fix summary.
Root cause: Hardcoded row limit of 1000 in CSV export query
Fix applied: src/export/csv.ts — replaced fixed limit with cursor pagination
Verification: npm test — 83 passed, 0 failed
Remaining: none
Update HID-42 status to "Done"? </output> </example> </examples>
Bug fixed: [one-line summary]
Root cause: [one-line explanation]
Files changed: [list]
Tests: [command + pass/fail count]
Linear updated: [yes — issue ID / no / N/A]
Next: [next bug in queue, or "all clear"]
development
Run a fast, read-only health check across all skills in the library and produce a structured quality report — without modifying anything. Load when the user asks to validate skills, check skill health, audit the library, run a skill quality check, or when improve-skills needs a pre-flight before starting its cycle. Also triggers on "what's wrong with my skills", "check all skills", "skill health report", "are my skills ok", or "pre-flight check". Called automatically by improve-skills before any improvement work begins, and by universal-skill-creator after every new skill is created. Never modifies any file — only reads and reports.
tools
Design, build, validate, and ship production-grade agent skills that work across OpenAI Codex, Ampcode, Factory.ai Droids, Google Gemini, Warp, Bolt.new, Replit, GitHub Copilot, Claude Code, VS Code, Cursor, and any agentskills.io compliant platform. Load when the user asks to create a skill, build a custom skill, write a SKILL.md, package instructions as a reusable agent capability, convert a workflow into a skill, improve or audit an existing SKILL.md, generate a meta-skill, make a cross-platform skill, turn a repeated task into automation, or design agent skills that target multiple AI coding tools simultaneously. Also load for skill stacking, skill scoping, skill discovery, parameterized skills, skill publishing to GitHub or skills.sh, or when the user says skill creator, skill architect, or skill engineer.
tools
Identify the right tool for a process step. Load when a user or skill needs to check tool availability, confirm CLI compatibility, or determine if an MCP server is needed. Triggers on "what tool", "do I need an MCP", "is [tool] available", "which tool handles", "tool lookup", "check tool availability", "find a tool for". Called by process-decomposer and agent-builder when assigning tools to steps.
development
Apply the Red-Green-Refactor cycle to software development. Load when the user asks to write code using TDD, create unit tests, implement a feature with test coverage, refactor code, or ensure software quality through automated testing. Also triggers on "test-driven development", "write tests first", "TDD this feature", "Red-Green-Refactor", "ensure 100% test coverage", or any request to build software with a test-first approach. Supports unit, integration, and end-to-end testing strategies.