{
 "schema": "aiblocks-page/1",
 "id": "debugging-practice-coach",
 "type": "skill",
 "name": "Debugging practice coach",
 "summary": "Learn to debug your own code. Share the bug and what you tried, and this debugging practice coach guides you to find and prove the fix yourself.",
 "headline": "Debugging practice coach",
 "subhead": "Share the code, error and result you expected. It helps you gather evidence, form possible causes and test them one at a time. You work out the fix and explain why it works, then choose a check that proves it.",
 "job": {
  "id": "study-and-practice",
  "name": "Study and check your understanding"
 },
 "level": "beginner",
 "thinking": "medium",
 "tested": true,
 "updated": "2026-10-28",
 "first_published": "2026-10-25",
 "inputs": [
  {
   "type": "codebase",
   "required": true,
   "label": "Codebase",
   "what": "a project's code, in a folder or repo the AI can open"
  },
  {
   "type": "question",
   "required": true,
   "label": "Question",
   "what": "the problem, decision or piece of work you want help with, and what a good outcome looks like"
  }
 ],
 "outputs": [
  {
   "type": "document",
   "required": true,
   "label": "Document",
   "what": "a finished document, such as a Word file, a PDF or a page of notes"
  },
  {
   "type": "plan",
   "required": true,
   "label": "Plan",
   "what": "a dated plan: what to do, in what order, with a decision rule for each step"
  }
 ],
 "you_give": [
  "The code, error and expected result.",
  "Your environment and fixes already tried."
 ],
 "you_get": [
  "A guided debugging session.",
  "An explanation of the cause in your own words.",
  "A fix proposal and a verification test."
 ],
 "use_when": [],
 "skip_when": [
  "Your live site or app is down right now. Fix it with a teammate or your hosting support first, and learn from it later.",
  "You just want the fixed code. Paste it into a plain chat and ask for the fix, since this coach will not hand it over.",
  "You need a concept explained, like how loops or promises work. Ask your AI for a short lesson on that topic first."
 ],
 "output_sample": {
  "input": [
   "The code that fails",
   "The error message",
   "What you expected to happen",
   "Your setup, such as language and version (optional)",
   "Fixes you already tried (optional)"
  ],
  "output": [
   {
    "name": "Symptom",
    "contains": "Your expected result, the actual result, and when it changed, in your own words."
   },
   {
    "name": "Evidence",
    "contains": "The logs, error traces and steps to repeat the bug that you gathered."
   },
   {
    "name": "Hypotheses",
    "contains": "Your 2 or 3 possible causes, each with what would confirm or rule it out."
   },
   {
    "name": "Isolation test",
    "contains": "One small test per cause, run one at a time to rule causes out."
   },
   {
    "name": "Root cause",
    "contains": "Your explanation of why the bug happens, not just which line is wrong."
   },
   {
    "name": "Fix",
    "contains": "Your proposed fix, with a review of side effects and risks."
   },
   {
    "name": "Verification test",
    "contains": "A test that proves the fix works and would catch the bug if it came back."
   }
  ]
 },
 "how_to_use": [
  "Open a chat in Claude, ChatGPT or Gemini. Paste the full text of this skill first.",
  "On the next message, paste your code, the error, and what you expected to happen.",
  "Add your setup and any fixes you already tried, if you have them.",
  "Answer its questions. It will ask for evidence and for your own guesses before it helps further.",
  "Explain the cause in your own words, then propose a fix and a test that proves it.",
  "This needs no code running or paid tools. You run your own code and paste back what you see."
 ],
 "checks": [],
 "next": [
  {
   "name": "System design practice reviewer",
   "url": "https://useaiblocks.com/skills/system-design-practice-review",
   "why": "System design practice reviewer"
  },
  {
   "name": "Study gap tracker",
   "url": "https://useaiblocks.com/skills/study-gap-tracker",
   "why": "Study gap tracker"
  },
  {
   "name": "Learning session handover writer",
   "url": "https://useaiblocks.com/skills/learning-session-handoff",
   "why": "Learning session handover writer"
  },
  {
   "name": "Assignment AI-use rules planner",
   "url": "https://useaiblocks.com/skills/assignment-ai-boundaries",
   "why": "Assignment AI-use rules planner"
  }
 ],
 "source": {
  "by": "edu-agent-skills contributors",
  "repo": "yugash007/edu-agent-skills",
  "url": "https://github.com/yugash007/edu-agent-skills/tree/e75f44303570bb2eae37a8f7536c0358be2502ee/skills/projects/debug-teacher",
  "licence": "MIT",
  "original_name": "debug-teacher",
  "commit": "e75f44303570bb2eae37a8f7536c0358be2502ee"
 },
 "credits": [
  {
   "title": "debug-teacher skill",
   "by": "edu-agent-skills contributors",
   "url": "https://github.com/yugash007/edu-agent-skills/tree/e75f44303570bb2eae37a8f7536c0358be2502ee/skills/projects/debug-teacher",
   "used": "Copied under the MIT licence. We gave it a plain name. We added Before you start and After this sections that link to other AI Blocks steps."
  }
 ],
 "files": [
  "examples.md",
  "LICENSE",
  "README.md"
 ],
 "links": {
  "page": "https://useaiblocks.com/skills/debugging-practice-coach",
  "markdown": "https://useaiblocks.com/skills/debugging-practice-coach.md",
  "json": "https://useaiblocks.com/skills/debugging-practice-coach.json",
  "instructions": "https://useaiblocks.com/skills/debugging-practice-coach/SKILL.md",
  "download": "https://useaiblocks.com/skills/debugging-practice-coach.zip",
  "api_item": "https://useaiblocks.com/api/v1/items/debugging-practice-coach",
  "api_document": "https://useaiblocks.com/api/v1/documents/skill/debugging-practice-coach",
  "mcp": "https://useaiblocks.com/mcp"
 }
}
