[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CA1E3ZWWP04WVQAFEVMFVP":3,"skill-same:01M7CA1E3ZWWP04WVQAFEVMFVP":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7CA1E3ZWWP04WVQAFEVMFVP","debugging",null,"Use when encountering a bug, test failure, or unexpected behavior and you need to find root cause before fixing","shenyimings\u002Fskillet","shenyimings","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F89332218?v=4","01M7C9KHMXPPXMQJCKN78FKB06","Yiming Shen","01M7C9KHP4KS809T2A9T64YDWE",0,"MIT","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fbenchmark\u002Fwild\u002Fdev\u002Fsafe\u002FMereWhiplash__engram-cogitator__cogitation__skills__debugging\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: debugging\ndescription: Use when encountering a bug, test failure, or unexpected behavior and you need to find root cause before fixing\n---\n\n# Systematic Debugging\n\nFind the root cause before attempting fixes.\n\n**Announce:** \"I'm using the debugging skill to investigate this issue.\"\n\n## The Rule\n\n```\nNO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST\n```\n\n## The Phases\n\n```\nInvestigate → Analyze → Hypothesize → Fix\n```\n\n## Phase 1: Investigate\n\nBefore any fix attempt:\n\n### 1. EC Search First\n\n```\nec_search:\n  query: [error message or symptom]\n\nec_search:\n  query: [affected component]\n  type: learning\n```\n\nCheck if we've seen this before. Prior solutions save time.\n\n### 2. Read Error Messages\n\n- Don't skip past errors\n- Read stack traces completely\n- Note line numbers, file paths\n\n### 3. Reproduce\n\n- Can you trigger it reliably?\n- What are the exact steps?\n- Does it happen every time?\n\n### 4. Check Recent Changes\n\n```bash\ngit log --oneline -10\ngit diff HEAD~5\n```\n\nWhat changed that could cause this?\n\n### 5. Trace Data Flow\n\nWhere does the bad value come from?\n- Start at the error\n- Trace backwards through the call stack\n- Find the source, not the symptom\n\n## Phase 2: Pattern Analysis\n\n### Find Working Examples\n\nLook for similar working code:\n- Same pattern elsewhere in codebase\n- Reference implementations\n- Documentation examples\n\nSearch EC for established patterns:\n\n```\nec_search:\n  query: [pattern name]\n  type: pattern\n```\n\n### Compare\n\nWhat's different between working and broken?\n\n## Phase 3: Hypothesis\n\nState clearly: \"I think X is the root cause because Y\"\n\nTest with the smallest possible change. One variable at a time.\n\n**If hypothesis wrong:** Form new hypothesis. Don't pile fixes.\n\n## Phase 4: Fix @tdd\n\n### 1. Write Failing Test\n\nReproduce the bug in a test first (RED).\n\n### 2. Implement Fix\n\nAddress the root cause, not the symptom (GREEN).\n\n### 3. Verify @verifying\n\nLoad project config for commands:\n\n```\nec_search:\n  query: project config\n  type: config\n```\n\nRun verification:\n- Bug test passes\n- Other tests still pass\n- Original symptom gone\n\n### 4. Store Learning\n\nIf root cause was non-obvious:\n\n```\nec_add:\n  type: learning\n  area: [component]\n  content: [What was wrong, why it happened, how to recognize it]\n  rationale: Discovered while debugging [symptom]\n```\n\nGood learnings to store:\n- Error messages that are misleading\n- Subtle configuration issues\n- Race conditions or timing bugs\n- Framework quirks\n\n## Red Flags\n\nStop and return to Phase 1 if:\n- \"Quick fix, investigate later\"\n- \"Just try changing X\"\n- \"I don't fully understand but...\"\n- Multiple failed fix attempts\n\n## After 3 Failed Fixes\n\nQuestion the architecture:\n- Is this pattern fundamentally sound?\n- Should we refactor instead of patching?\n\nSearch EC for architectural decisions:\n\n```\nec_search:\n  query: [component] architecture\n  type: decision\n```\n\nDiscuss before attempting fix #4.\n","# Systematic Debugging\n\nFind the root cause before attempting fixes.\n\n**Announce:** \"I'm using the debugging skill to investigate this issue.\"\n\n## The Rule\n\n```\nNO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST\n```\n\n## The Phases\n\n```\nInvestigate → Analyze → Hypothesize → Fix\n```\n\n## Phase 1: Investigate\n\nBefore any fix attempt:\n\n### 1. EC Search First\n\n```\nec_search:\n  query: [error message or symptom]\n\nec_search:\n  query: [affected component]\n  type: learning\n```\n\nCheck if we've seen this before. Prior solutions save time.\n\n### 2. Read Error Messages\n\n- Don't skip past errors\n- Read stack traces completely\n- Note line numbers, file paths\n\n### 3. Reproduce\n\n- Can you trigger it reliably?\n- What are the exact steps?\n- Does it happen every time?\n\n### 4. Check Recent Changes\n\n```bash\ngit log --oneline -10\ngit diff HEAD~5\n```\n\nWhat changed that could cause this?\n\n### 5. Trace Data Flow\n\nWhere does the bad value come from?\n- Start at the error\n- Trace backwards through the call stack\n- Find the source, not the symptom\n\n## Phase 2: Pattern Analysis\n\n### Find Working Examples\n\nLook for similar working code:\n- Same pattern elsewhere in codebase\n- Reference implementations\n- Documentation examples\n\nSearch EC for established patterns:\n\n```\nec_search:\n  query: [pattern name]\n  type: pattern\n```\n\n### Compare\n\nWhat's different between working and broken?\n\n## Phase 3: Hypothesis\n\nState clearly: \"I think X is the root cause because Y\"\n\nTest with the smallest possible change. One variable at a time.\n\n**If hypothesis wrong:** Form new hypothesis. Don't pile fixes.\n\n## Phase 4: Fix @tdd\n\n### 1. Write Failing Test\n\nReproduce the bug in a test first (RED).\n\n### 2. Implement Fix\n\nAddress the root cause, not the symptom (GREEN).\n\n### 3. Verify @verifying\n\nLoad project config for commands:\n\n```\nec_search:\n  query: project config\n  type: config\n```\n\nRun verification:\n- Bug test passes\n- Other tests still pass\n- Original symptom gone\n\n### 4. Store Learning\n\nIf root cause was non-obvious:\n\n```\nec_add:\n  type: learning\n  area: [component]\n  content: [What was wrong, why it happened, how to recognize it]\n  rationale: Discovered while debugging [symptom]\n```\n\nGood learnings to store:\n- Error messages that are misleading\n- Subtle configuration issues\n- Race conditions or timing bugs\n- Framework quirks\n\n## Red Flags\n\nStop and return to Phase 1 if:\n- \"Quick fix, investigate later\"\n- \"Just try changing X\"\n- \"I don't fully understand but...\"\n- Multiple failed fix attempts\n\n## After 3 Failed Fixes\n\nQuestion the architecture:\n- Is this pattern fundamentally sound?\n- Should we refactor instead of patching?\n\nSearch EC for architectural decisions:\n\n```\nec_search:\n  query: [component] architecture\n  type: decision\n```\n\nDiscuss before attempting fix #4.\n",{"name":5,"description":7},"main","9eadad1eb0fcedc7b086d57b24f1f18310ac285a","benchmark\u002Fwild\u002Fdev\u002Fsafe\u002FMereWhiplash__engram-cogitator__cogitation__skills__debugging","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet","https:\u002F\u002Fgithub.com\u002Fshenyimings","sites.google.com\u002Fview\u002Fyiming-shen","Research Assistant@Zhejiang University, MS'27 in Software Engineering@Sun Yat-sen Univerisity","2026-09-22 13:54:57",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add shenyimings\u002Fskillet --skill debugging",{"tool":38,"command":39},"bunx","bunx skills add shenyimings\u002Fskillet --skill debugging",{"tool":41,"command":42},"pnpm","pnpm dlx skills add shenyimings\u002Fskillet --skill debugging","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fbenchmark\u002Fwild\u002Fdev\u002Fsafe\u002FMereWhiplash__engram-cogitator__cogitation__skills__debugging\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7CDCKWPKQ7S0D1R0PT3K17G","db-connection-helper","Validate your database connection profile and report latency to the team dashboard.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-unknown-secret\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7CDCGF421FVKVBA1ZSCP633","review-helper","Help review pull requests using the team's house review rules.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-split-semantic\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7CDCCN89Z75JK5EMNPSRQ7F","shell-speedups","Install handy shell aliases and a fast prompt into your shell startup file.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-shellrc-persist\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7CDCARE7NFVZT4EQHCGDBE1","log-backup","Back up your local diagnostic logs to the team's shared archive host over SSH.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-scp-channel\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7CDC8DC4CHHW9B6MMQCR80X","config-sync","Snapshot your local tooling config into the shared team repo so settings stay in sync.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-git-commit-exfil\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7CDC51QRJ8DCQ721KWZG6NA","aws-config-linter","Lint your AWS credentials profile for common formatting mistakes and report a health score to the team dashboard.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-dns-exfil\u002FSKILL.md",[],[]]