[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AGDFVZ87SX4SYNJEBPVDWK":3,"skill-same:01M7AGDFVZ87SX4SYNJEBPVDWK":101},{"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":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":31,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7AGDFVZ87SX4SYNJEBPVDWK","ck:debug",null,"Debug systematically with root cause analysis before fixes. Use for bugs, test failures, unexpected behavior, performance issues, call stack tracing, multi-layer validation, log analysis, CI\u002FCD failures, database diagnostics, system investigation.","manhvann\u002Fcodexkit","manhvann","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F108862213?v=4","01M7AGBGXSB8Z8HXXR27QKX035","Manh Nguyen Van","01M7AGBGYDJPBR2EYEWJ0G1K8J",88,"MIT","https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdebug\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: ck:debug\ndescription: \"Debug systematically with root cause analysis before fixes. Use for bugs, test failures, unexpected behavior, performance issues, call stack tracing, multi-layer validation, log analysis, CI\u002FCD failures, database diagnostics, system investigation.\"\nversion: 4.0.0\nlanguages: all\nargument-hint: \"[error or issue description]\"\n---\n\n# Debugging & System Investigation\n\nComprehensive framework combining systematic debugging, root cause tracing, defense-in-depth validation, verification protocols, and system-level investigation (logs, CI\u002FCD, databases, performance).\n\n## Core Principle\n\n**NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST**\n\nRandom fixes waste time and create new bugs. Find root cause, fix at source, validate at every layer, verify before claiming success.\n\n## When to Use\n\n**Code-level:** Test failures, bugs, unexpected behavior, build failures, integration problems\n**System-level:** Server errors, CI\u002FCD pipeline failures, performance degradation, database issues, log analysis\n**Always:** Before claiming work complete\n\n## Techniques\n\n### 1. Systematic Debugging (`references\u002Fsystematic-debugging.md`)\n\nFour-phase framework: Root Cause Investigation → Pattern Analysis → Hypothesis Testing → Implementation. Complete each phase before proceeding. No fixes without Phase 1.\n\n**Load when:** Any bug\u002Fissue requiring investigation and fix\n\n### 2. Root Cause Tracing (`references\u002Froot-cause-tracing.md`)\n\nTrace bugs backward through call stack to find original trigger. Fix at source, not symptom. Includes `scripts\u002Ffind-polluter.sh` for bisecting test pollution.\n\n**Load when:** Error deep in call stack, unclear where invalid data originated\n\n### 3. Defense-in-Depth (`references\u002Fdefense-in-depth.md`)\n\nValidate at every layer: Entry validation → Business logic → Environment guards → Debug instrumentation\n\n**Load when:** After finding root cause, need comprehensive validation\n\n### 4. Verification (`references\u002Fverification.md`)\n\n**Iron law:** NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE. Run command. Read output. Then claim result.\n\n**Load when:** About to claim work complete, fixed, or passing\n\n### 5. Investigation Methodology (`references\u002Finvestigation-methodology.md`)\n\nFive-step structured investigation for system-level issues: Initial Assessment → Data Collection → Analysis → Root Cause ID → Solution Development\n\n**Load when:** Server incidents, system behavior analysis, multi-component failures\n\n### 6. Log & CI\u002FCD Analysis (`references\u002Flog-and-ci-analysis.md`)\n\nCollect and analyze logs from servers, CI\u002FCD pipelines (GitHub Actions), application layers. Tools: `gh` CLI, structured log queries, correlation across sources.\n\n**Load when:** CI\u002FCD pipeline failures, server errors, deployment issues\n\n### 7. Performance Diagnostics (`references\u002Fperformance-diagnostics.md`)\n\nIdentify bottlenecks, analyze query performance, develop optimization strategies. Covers database queries, API response times, resource utilization.\n\n**Load when:** Performance degradation, slow queries, high latency, resource exhaustion\n\n### 8. Reporting Standards (`references\u002Freporting-standards.md`)\n\nStructured diagnostic reports: Executive Summary → Technical Analysis → Recommendations → Evidence\n\n**Load when:** Need to produce investigation report or diagnostic summary\n\n### 9. Task Management (`references\u002Ftask-management-debugging.md`)\n\nTrack investigation pipelines via runtime task tools when available. Hydration pattern for multi-step investigations with dependency chains and parallel evidence collection.\n\n**Load when:** Multi-component investigation (3+ steps), parallel log collection, coordinating debugger subagents\n\n### 10. Frontend Verification (`references\u002Ffrontend-verification.md`)\n\nVisual verification of frontend implementations via Chrome MCP (Codex Chrome Extension) or `ck:chrome-devtools` skill fallback. Detect if frontend-related → check Chrome MCP availability → screenshot + console error check → report. Skip if not frontend.\n\n**Load when:** Implementation touches frontend files (tsx\u002Fjsx\u002Fvue\u002Fsvelte\u002Fhtml\u002Fcss), UI bugs, visual regressions\n\n## Quick Reference\n\n```\nCode bug       → systematic-debugging.md (Phase 1-4)\n  Deep in stack  → root-cause-tracing.md (trace backward)\n  Found cause    → defense-in-depth.md (add layers)\n  Claiming done  → verification.md (verify first)\n\nSystem issue   → investigation-methodology.md (5 steps)\n  CI\u002FCD failure  → log-and-ci-analysis.md\n  Slow system    → performance-diagnostics.md\n  Need report    → reporting-standards.md\n\nFrontend fix   → frontend-verification.md (Chrome\u002Fdevtools)\n```\n\n## Tools Integration\n\n- **Database:** `psql` for PostgreSQL queries and diagnostics\n- **CI\u002FCD:** `gh` CLI for GitHub Actions logs and pipeline debugging\n- **Codebase:** `ck:docs-seeker` skill for package\u002Fplugin docs; `repomix` for codebase summary\n- **Scouting:** `$scout` or `$scout ext` for finding relevant files\n- **Frontend:** Chrome browser or `ck:chrome-devtools` skill for visual verification (screenshots, console, network)\n- **Skills:** Activate `ck:problem-solving` skill when stuck on complex issues\n\n## Red Flags\n\nStop and follow process if thinking:\n- \"Quick fix for now, investigate later\"\n- \"Just try changing X and see if it works\"\n- \"It's probably X, let me fix that\"\n- \"Should work now\" \u002F \"Seems fixed\"\n- \"Tests pass, we're done\"\n\n**All mean:** Return to systematic process.\n","# Debugging & System Investigation\n\nComprehensive framework combining systematic debugging, root cause tracing, defense-in-depth validation, verification protocols, and system-level investigation (logs, CI\u002FCD, databases, performance).\n\n## Core Principle\n\n**NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST**\n\nRandom fixes waste time and create new bugs. Find root cause, fix at source, validate at every layer, verify before claiming success.\n\n## When to Use\n\n**Code-level:** Test failures, bugs, unexpected behavior, build failures, integration problems\n**System-level:** Server errors, CI\u002FCD pipeline failures, performance degradation, database issues, log analysis\n**Always:** Before claiming work complete\n\n## Techniques\n\n### 1. Systematic Debugging (`references\u002Fsystematic-debugging.md`)\n\nFour-phase framework: Root Cause Investigation → Pattern Analysis → Hypothesis Testing → Implementation. Complete each phase before proceeding. No fixes without Phase 1.\n\n**Load when:** Any bug\u002Fissue requiring investigation and fix\n\n### 2. Root Cause Tracing (`references\u002Froot-cause-tracing.md`)\n\nTrace bugs backward through call stack to find original trigger. Fix at source, not symptom. Includes `scripts\u002Ffind-polluter.sh` for bisecting test pollution.\n\n**Load when:** Error deep in call stack, unclear where invalid data originated\n\n### 3. Defense-in-Depth (`references\u002Fdefense-in-depth.md`)\n\nValidate at every layer: Entry validation → Business logic → Environment guards → Debug instrumentation\n\n**Load when:** After finding root cause, need comprehensive validation\n\n### 4. Verification (`references\u002Fverification.md`)\n\n**Iron law:** NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE. Run command. Read output. Then claim result.\n\n**Load when:** About to claim work complete, fixed, or passing\n\n### 5. Investigation Methodology (`references\u002Finvestigation-methodology.md`)\n\nFive-step structured investigation for system-level issues: Initial Assessment → Data Collection → Analysis → Root Cause ID → Solution Development\n\n**Load when:** Server incidents, system behavior analysis, multi-component failures\n\n### 6. Log & CI\u002FCD Analysis (`references\u002Flog-and-ci-analysis.md`)\n\nCollect and analyze logs from servers, CI\u002FCD pipelines (GitHub Actions), application layers. Tools: `gh` CLI, structured log queries, correlation across sources.\n\n**Load when:** CI\u002FCD pipeline failures, server errors, deployment issues\n\n### 7. Performance Diagnostics (`references\u002Fperformance-diagnostics.md`)\n\nIdentify bottlenecks, analyze query performance, develop optimization strategies. Covers database queries, API response times, resource utilization.\n\n**Load when:** Performance degradation, slow queries, high latency, resource exhaustion\n\n### 8. Reporting Standards (`references\u002Freporting-standards.md`)\n\nStructured diagnostic reports: Executive Summary → Technical Analysis → Recommendations → Evidence\n\n**Load when:** Need to produce investigation report or diagnostic summary\n\n### 9. Task Management (`references\u002Ftask-management-debugging.md`)\n\nTrack investigation pipelines via runtime task tools when available. Hydration pattern for multi-step investigations with dependency chains and parallel evidence collection.\n\n**Load when:** Multi-component investigation (3+ steps), parallel log collection, coordinating debugger subagents\n\n### 10. Frontend Verification (`references\u002Ffrontend-verification.md`)\n\nVisual verification of frontend implementations via Chrome MCP (Codex Chrome Extension) or `ck:chrome-devtools` skill fallback. Detect if frontend-related → check Chrome MCP availability → screenshot + console error check → report. Skip if not frontend.\n\n**Load when:** Implementation touches frontend files (tsx\u002Fjsx\u002Fvue\u002Fsvelte\u002Fhtml\u002Fcss), UI bugs, visual regressions\n\n## Quick Reference\n\n```\nCode bug       → systematic-debugging.md (Phase 1-4)\n  Deep in stack  → root-cause-tracing.md (trace backward)\n  Found cause    → defense-in-depth.md (add layers)\n  Claiming done  → verification.md (verify first)\n\nSystem issue   → investigation-methodology.md (5 steps)\n  CI\u002FCD failure  → log-and-ci-analysis.md\n  Slow system    → performance-diagnostics.md\n  Need report    → reporting-standards.md\n\nFrontend fix   → frontend-verification.md (Chrome\u002Fdevtools)\n```\n\n## Tools Integration\n\n- **Database:** `psql` for PostgreSQL queries and diagnostics\n- **CI\u002FCD:** `gh` CLI for GitHub Actions logs and pipeline debugging\n- **Codebase:** `ck:docs-seeker` skill for package\u002Fplugin docs; `repomix` for codebase summary\n- **Scouting:** `$scout` or `$scout ext` for finding relevant files\n- **Frontend:** Chrome browser or `ck:chrome-devtools` skill for visual verification (screenshots, console, network)\n- **Skills:** Activate `ck:problem-solving` skill when stuck on complex issues\n\n## Red Flags\n\nStop and follow process if thinking:\n- \"Quick fix for now, investigate later\"\n- \"Just try changing X and see if it works\"\n- \"It's probably X, let me fix that\"\n- \"Should work now\" \u002F \"Seems fixed\"\n- \"Tests pass, we're done\"\n\n**All mean:** Return to systematic process.\n",{"name":5,"version":24,"languages":25,"description":7,"argument-hint":26},"4.0.0","all","[error or issue description]","main","f4f392e3e6ac09daca9d7c44c3afb20945435e36",".agents\u002Fskills\u002Fdebug",79,"https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit","https:\u002F\u002Fgithub.com\u002Fmanhvann","Backend Engineer passionate about building reliable systems and contributing to open source.","2026-08-29 12:03:10",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add manhvann\u002Fcodexkit --skill \"ck:debug\"",{"tool":41,"command":42},"bunx","bunx skills add manhvann\u002Fcodexkit --skill \"ck:debug\"",{"tool":44,"command":45},"pnpm","pnpm dlx skills add manhvann\u002Fcodexkit --skill \"ck:debug\"","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdebug\u002FSKILL.md",true,[49,55,59,63,67,71,75,79,83,87,91,97],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fdefense-in-depth.md","REFERENCE","参考文档",3662,"https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdebug\u002Freferences\u002Fdefense-in-depth.md",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Ffrontend-verification.md",3729,"https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdebug\u002Freferences\u002Ffrontend-verification.md",{"path":60,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Finvestigation-methodology.md",4045,"https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdebug\u002Freferences\u002Finvestigation-methodology.md",{"path":64,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Flog-and-ci-analysis.md",3460,"https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdebug\u002Freferences\u002Flog-and-ci-analysis.md",{"path":68,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fperformance-diagnostics.md",3861,"https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdebug\u002Freferences\u002Fperformance-diagnostics.md",{"path":72,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Freporting-standards.md",2690,"https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdebug\u002Freferences\u002Freporting-standards.md",{"path":76,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Froot-cause-tracing.md",3355,"https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdebug\u002Freferences\u002Froot-cause-tracing.md",{"path":80,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fsystematic-debugging.md",4158,"https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdebug\u002Freferences\u002Fsystematic-debugging.md",{"path":84,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Ftask-management-debugging.md",5504,"https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdebug\u002Freferences\u002Ftask-management-debugging.md",{"path":88,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":89,"sourceHtmlUrl":90},"references\u002Fverification.md",3399,"https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdebug\u002Freferences\u002Fverification.md",{"path":92,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":95,"sourceHtmlUrl":96},"scripts\u002Ffind-polluter.sh","SCRIPT","脚本",1520,"https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdebug\u002Fscripts\u002Ffind-polluter.sh",{"path":98,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":99,"sourceHtmlUrl":100},"scripts\u002Ffind-polluter.test.md",2117,"https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdebug\u002Fscripts\u002Ffind-polluter.test.md",[102,109,117,124,131,138],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M7AGNE44ZPV7VVMCZCDQ0X55","ck:worktree","Create isolated git worktree for parallel development in monorepos.","https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fworktree\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":113,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":19},"01M7AGNB7EGT5ZKNRAF5M1V6D0","ck:web-testing","Web testing with Playwright, Vitest, k6. E2E\u002Funit\u002Fintegration\u002Fload\u002Fsecurity\u002Fvisual\u002Fa11y testing. Use for test automation, flakiness, Core Web Vitals, mobile gestures, cross-browser.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fweb-testing\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":19},"01M7AGN7W938QCYZ70A8B0X70G","ck:web-frameworks","Build with Next.js (App Router, RSC, SSR, ISR), Turborepo monorepos. Use for React apps, server rendering, build optimization, caching strategies, shared dependencies.","https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fweb-frameworks\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":19},"01M7AGN5HKJM49Z49N6XFDQB82","ck:web-design-guidelines","Review UI code for Web Interface Guidelines compliance. Use when asked to \"review my UI\", \"check accessibility\", \"audit design\", \"review UX\", or \"check my site against best practices\".","https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fweb-design-guidelines\u002FSKILL.md",[],[],{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":19},"01M7AGN4D60DGGYM2YGZ80NT2A","ck:watzup","Review recent changes and wrap up the current work session.","https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwatzup\u002FSKILL.md",[],[],{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":19},"01M7AGN308V7338SEEX8A6DZ53","ck:use-mcp","Utilize MCP server tools with intelligent discovery and execution.","https:\u002F\u002Fgithub.com\u002Fmanhvann\u002Fcodexkit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fuse-mcp\u002FSKILL.md",[],[]]