[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6J3J497AE12KTY3XMD1ZEVS":3,"skill-same:01M6J3J497AE12KTY3XMD1ZEVS":99},{"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":41,"linkOnly":42,"markdownContent":43,"markdownBody":44,"frontMatter":45,"refName":63,"commitSha":64,"skillDirectory":65,"forksCount":66,"repositoryHtmlUrl":67,"repositoryHomepageUrl":68,"ownerHtmlUrl":69,"ownerBlogUrl":6,"ownerDescription":70,"updatedAt":71,"install":72,"resources":84},"01M6J3J497AE12KTY3XMD1ZEVS","mk:build-fix",null,"Triage compile and type errors — detect language, load fix patterns, retry the build. NOT for mk:fix.","ngocsangyem\u002FMeowKit","ngocsangyem","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F33769536?v=4","01M6J3FSMJAG9PVQEGRT7AQ9J2","Sang Nguyen","01M6J3FSRTJG0MNP6NV71639RM",16,"MIT","https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbuild-fix\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],"build fix","mk:build fix","build","fix","when","mk:fix","runtime","for","path","patterns","edit","read","active","code","Bash","debugging","auto","errors","local","testing","retry","error","2026-11-10 10:12:30",false,"---\nname: mk:build-fix\ndescription: Triage compile and type errors — detect language, load fix patterns, retry the build. NOT for mk:fix.\nversion: 1.0.0\nargument-hint: '[error output or file path]'\nsource: local\nallowed-tools:\n  - Bash\n  - Read\n  - Edit\n  - Glob\nkeywords:\n  - build-fix\n  - compile-error\n  - type-error\n  - build-failed\n  - auto-retry\n  - error-triage\nwhen_to_use: The build or compile step just failed with a type or syntax error.\nuser-invocable: true\nowner: testing\ncriticality: medium\nstatus: active\nruntime: claude-code\n---\n\n# Build Fix — Universal Build Error Resolver\n\nDetects language from error output, loads the appropriate reference, classifies the error\nby fixability, applies the fix, and chains into `mk:verify` to confirm the build is green.\n\n## When to Use\n\n- Build command fails (npm run build, tsc, go build, python -m build, cargo build)\n- Type check errors (TypeScript TS\\d{4}, mypy)\n- Compilation errors in any language\n- Triggers: \"build failed\", \"fix build\", \"compilation error\", \"type error\"\n\n## Phase Anchor\n\n**Phase: 3 (Build GREEN)**\n**Handoff:** If `mk:verify` passes → proceed to Phase 4 (Review). If 3 attempts exhausted → escalate to user.\n\n## Process\n\n### Step 1: Capture Error Output\n\nRun the failing build command and capture full output. If error output was passed as input,\nuse that directly.\n\n### Step 2: Detect Language\n\nMatch error patterns in order (first match wins):\n\n| Pattern | Language | Reference |\n|---------|----------|-----------|\n| `error TS\\d{4}:` | TypeScript | `references\u002Ftypescript-errors.md` |\n| `SyntaxError:` or `ModuleNotFoundError:` or `IndentationError:` | Python | `references\u002Fpython-errors.md` |\n| `cannot find package` or `undefined: ` or `syntax error near` (Go) | Go | `references\u002Fgeneral-errors.md` |\n| `error[E\\d{4}]` (Rust) | Rust | `references\u002Fgeneral-errors.md` |\n| Any other pattern | Unknown | `references\u002Fgeneral-errors.md` |\n\nLoad the matched reference file before proceeding to Step 3.\n\n### Step 3: Classify Error Fixability\n\nAfter loading the reference, classify the error:\n\n| Class | Description | Action |\n|-------|-------------|--------|\n| **auto-fixable** | Syntax errors, missing imports, simple type mismatches | Apply fix immediately |\n| **suggest-with-confidence** | Wrong argument types, missing interface properties | Propose fix, apply after brief explanation |\n| **report-only** | Runtime errors, architectural issues, circular dependencies | Describe the problem and root cause; do not auto-fix |\n\n**Auto-fixable examples:** TS1005 Expected semicolon, TS2307 Cannot find module (missing import)\n**Suggest-with-confidence examples:** TS2322 type mismatch, TS2345 argument type mismatch\n**Report-only examples:** Circular dependency, architectural type mismatch requiring refactor\n\n### Step 4: Apply Fix\n\nFor auto-fixable and suggest-with-confidence:\n- Apply the minimal change that resolves the error\n- Do not refactor beyond what the error requires (YAGNI)\n- Follow security-rules.md — do NOT use `any` type as a fix\n\nFor report-only:\n- Describe what needs to change and why\n- Stop — do not modify files\n- Return the diagnosis to the developer\n\n### Step 5: Verify Fix\n\nRun `mk:verify` (or the project's build command directly if verify not available).\n\n### Step 6: Iterate (Max 3 Attempts)\n\nIf the build still fails after applying a fix:\n- Attempt 2: re-classify with updated error output, try different approach\n- Attempt 3: re-classify one final time with a different approach\n\nAfter 3 failed attempts, **escalate to user** with:\n- All 3 error outputs\n- All 3 attempted fixes and why each failed\n- Suspected root cause\n- Suggested next steps (architectural review, dependency update, etc.)\n\n## Attempt Counter\n\nTrack attempts in the session. Reset counter when switching to a different error.\nPer `.claude\u002Fskills\u002Fcook\u002Freferences\u002Ftdd-rules.md` Rule 4: max 3 self-healing attempts, then escalate.\n\n## Reference Files\n\n- `references\u002Ftypescript-errors.md` — TS error codes with fix patterns\n- `references\u002Fpython-errors.md` — Python exception types with fix patterns\n- `references\u002Fgeneral-errors.md` — Framework-agnostic build error patterns\n\n## Security Constraint\n\nNEVER use TypeScript `any` as a fix for type errors. Always use `unknown` + type guards or\nfix the actual type mismatch. See `security-rules.md` — `any` type is a blocked pattern.\n\n## Gotchas\n\n- **Stale `.tsbuildinfo` hides real errors on warm incremental builds** — `tsc --incremental` skips files it thinks are unchanged; a corrupt or out-of-date `.tsbuildinfo` causes TS to report 0 errors while the actual output is broken; delete `.tsbuildinfo` and rerun `tsc --noEmit` before declaring the build clean.\n- **Platform-specific native binaries fail silently after `npm ci` on a different OS** — packages like `esbuild`, `sharp`, `@swc\u002Fcore` ship OS-specific binaries; a `node_modules\u002F` copied from macOS to Linux (or via Docker volume mount) silently uses wrong binaries until a cryptic \"invalid ELF header\" or \"exec format error\" appears at runtime; always run `npm ci` fresh inside the container, never share `node_modules` across platforms.\n- **Peer dependency warnings mask fatal version mismatches** — `npm install` prints peer dep warnings as non-fatal by default; a `eslint@8` peer warning can hide the real problem that `@typescript-eslint\u002Fparser@6` requires `eslint@8` but `9` is installed, causing `TypeError: eslint.linter is not a constructor` at runtime; always resolve peer warnings before treating the build as clean.\n- **Different error output on cold vs warm cache means fixing the wrong error** — a first clean build often surfaces errors that incremental builds skip; fix errors only after a full clean build (`rm -rf dist .tsbuildinfo && tsc`) to ensure you're seeing the complete error set, not just the delta from last run.\n- **Circular dependencies aren't caught by `tsc` but break bundlers at runtime** — TypeScript compiles circular imports without error; Vite\u002Fwebpack may emit a broken bundle where one module resolves to `{}` because the other hadn't initialized yet; run `madge --circular src\u002F` to detect cycles as part of build triage.\n","# Build Fix — Universal Build Error Resolver\n\nDetects language from error output, loads the appropriate reference, classifies the error\nby fixability, applies the fix, and chains into `mk:verify` to confirm the build is green.\n\n## When to Use\n\n- Build command fails (npm run build, tsc, go build, python -m build, cargo build)\n- Type check errors (TypeScript TS\\d{4}, mypy)\n- Compilation errors in any language\n- Triggers: \"build failed\", \"fix build\", \"compilation error\", \"type error\"\n\n## Phase Anchor\n\n**Phase: 3 (Build GREEN)**\n**Handoff:** If `mk:verify` passes → proceed to Phase 4 (Review). If 3 attempts exhausted → escalate to user.\n\n## Process\n\n### Step 1: Capture Error Output\n\nRun the failing build command and capture full output. If error output was passed as input,\nuse that directly.\n\n### Step 2: Detect Language\n\nMatch error patterns in order (first match wins):\n\n| Pattern | Language | Reference |\n|---------|----------|-----------|\n| `error TS\\d{4}:` | TypeScript | `references\u002Ftypescript-errors.md` |\n| `SyntaxError:` or `ModuleNotFoundError:` or `IndentationError:` | Python | `references\u002Fpython-errors.md` |\n| `cannot find package` or `undefined: ` or `syntax error near` (Go) | Go | `references\u002Fgeneral-errors.md` |\n| `error[E\\d{4}]` (Rust) | Rust | `references\u002Fgeneral-errors.md` |\n| Any other pattern | Unknown | `references\u002Fgeneral-errors.md` |\n\nLoad the matched reference file before proceeding to Step 3.\n\n### Step 3: Classify Error Fixability\n\nAfter loading the reference, classify the error:\n\n| Class | Description | Action |\n|-------|-------------|--------|\n| **auto-fixable** | Syntax errors, missing imports, simple type mismatches | Apply fix immediately |\n| **suggest-with-confidence** | Wrong argument types, missing interface properties | Propose fix, apply after brief explanation |\n| **report-only** | Runtime errors, architectural issues, circular dependencies | Describe the problem and root cause; do not auto-fix |\n\n**Auto-fixable examples:** TS1005 Expected semicolon, TS2307 Cannot find module (missing import)\n**Suggest-with-confidence examples:** TS2322 type mismatch, TS2345 argument type mismatch\n**Report-only examples:** Circular dependency, architectural type mismatch requiring refactor\n\n### Step 4: Apply Fix\n\nFor auto-fixable and suggest-with-confidence:\n- Apply the minimal change that resolves the error\n- Do not refactor beyond what the error requires (YAGNI)\n- Follow security-rules.md — do NOT use `any` type as a fix\n\nFor report-only:\n- Describe what needs to change and why\n- Stop — do not modify files\n- Return the diagnosis to the developer\n\n### Step 5: Verify Fix\n\nRun `mk:verify` (or the project's build command directly if verify not available).\n\n### Step 6: Iterate (Max 3 Attempts)\n\nIf the build still fails after applying a fix:\n- Attempt 2: re-classify with updated error output, try different approach\n- Attempt 3: re-classify one final time with a different approach\n\nAfter 3 failed attempts, **escalate to user** with:\n- All 3 error outputs\n- All 3 attempted fixes and why each failed\n- Suspected root cause\n- Suggested next steps (architectural review, dependency update, etc.)\n\n## Attempt Counter\n\nTrack attempts in the session. Reset counter when switching to a different error.\nPer `.claude\u002Fskills\u002Fcook\u002Freferences\u002Ftdd-rules.md` Rule 4: max 3 self-healing attempts, then escalate.\n\n## Reference Files\n\n- `references\u002Ftypescript-errors.md` — TS error codes with fix patterns\n- `references\u002Fpython-errors.md` — Python exception types with fix patterns\n- `references\u002Fgeneral-errors.md` — Framework-agnostic build error patterns\n\n## Security Constraint\n\nNEVER use TypeScript `any` as a fix for type errors. Always use `unknown` + type guards or\nfix the actual type mismatch. See `security-rules.md` — `any` type is a blocked pattern.\n\n## Gotchas\n\n- **Stale `.tsbuildinfo` hides real errors on warm incremental builds** — `tsc --incremental` skips files it thinks are unchanged; a corrupt or out-of-date `.tsbuildinfo` causes TS to report 0 errors while the actual output is broken; delete `.tsbuildinfo` and rerun `tsc --noEmit` before declaring the build clean.\n- **Platform-specific native binaries fail silently after `npm ci` on a different OS** — packages like `esbuild`, `sharp`, `@swc\u002Fcore` ship OS-specific binaries; a `node_modules\u002F` copied from macOS to Linux (or via Docker volume mount) silently uses wrong binaries until a cryptic \"invalid ELF header\" or \"exec format error\" appears at runtime; always run `npm ci` fresh inside the container, never share `node_modules` across platforms.\n- **Peer dependency warnings mask fatal version mismatches** — `npm install` prints peer dep warnings as non-fatal by default; a `eslint@8` peer warning can hide the real problem that `@typescript-eslint\u002Fparser@6` requires `eslint@8` but `9` is installed, causing `TypeError: eslint.linter is not a constructor` at runtime; always resolve peer warnings before treating the build as clean.\n- **Different error output on cold vs warm cache means fixing the wrong error** — a first clean build often surfaces errors that incremental builds skip; fix errors only after a full clean build (`rm -rf dist .tsbuildinfo && tsc`) to ensure you're seeing the complete error set, not just the delta from last run.\n- **Circular dependencies aren't caught by `tsc` but break bundlers at runtime** — TypeScript compiles circular imports without error; Vite\u002Fwebpack may emit a broken bundle where one module resolves to `{}` because the other hadn't initialized yet; run `madge --circular src\u002F` to detect cycles as part of build triage.\n",{"name":5,"owner":38,"source":37,"status":31,"runtime":46,"version":47,"keywords":48,"criticality":55,"description":7,"when_to_use":56,"allowed-tools":57,"argument-hint":61,"user-invocable":62},"claude-code","1.0.0",[49,50,51,52,53,54],"build-fix","compile-error","type-error","build-failed","auto-retry","error-triage","medium","The build or compile step just failed with a type or syntax error.",[33,58,59,60],"Read","Edit","Glob","[error output or file path]",true,"main","c2c69c674e8c62fe9634bfb360b5f9f14c70e1a5",".claude\u002Fskills\u002Fbuild-fix",3,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit","https:\u002F\u002Fdocs.meowkit.dev\u002F","https:\u002F\u002Fgithub.com\u002Fngocsangyem","Keep moving forward","2026-11-15 03:54:21",{"source":8,"skillName":5,"commands":73,"prompt":83,"zipAvailable":62},[74,77,80],{"tool":75,"command":76},"npx","npx skills add ngocsangyem\u002FMeowKit --skill \"mk:build-fix\"",{"tool":78,"command":79},"bunx","bunx skills add ngocsangyem\u002FMeowKit --skill \"mk:build-fix\"",{"tool":81,"command":82},"pnpm","pnpm dlx skills add ngocsangyem\u002FMeowKit --skill \"mk:build-fix\"","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbuild-fix\u002FSKILL.md",[85,91,95],{"path":86,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":89,"sourceHtmlUrl":90},"references\u002Fgeneral-errors.md","REFERENCE","参考文档",4344,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbuild-fix\u002Freferences\u002Fgeneral-errors.md",{"path":92,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":93,"sourceHtmlUrl":94},"references\u002Fpython-errors.md",3637,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbuild-fix\u002Freferences\u002Fpython-errors.md",{"path":96,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":97,"sourceHtmlUrl":98},"references\u002Ftypescript-errors.md",4785,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbuild-fix\u002Freferences\u002Ftypescript-errors.md",[100,108,115,122,129,136],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":107},"01M7DVHF481B4J41T4855KGM50","mk-worktree","Manages git worktrees for parallel agent isolation: creates parallel\u002F{name}-{timestamp} branches, merges with conflict detection. NOT for user feature branches (use git worktree directly).","https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-worktree\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":107},"01M7DVHAWVKDKPB1EA3F1NC4JC","mk-workflow-orchestrator","Auto-invoked 7-phase workflow for complex-feature intent; fasttrack mode for pre-approved specs. NOT for explicit single tasks (mk:cook), green-field builds (mk:autobuild), or simple fixes (mk:fix).","https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-workflow-orchestrator\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":107},"01M7DVH6SYBHWW00TRZXCC56JW","mk-web-to-markdown","Fetch a URL and return clean markdown, for arbitrary external pages (blog, RFC, GitHub issue, vendor doc) not covered by mk:docs-finder. Static-only by default; opt-in JS rendering available.","https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-web-to-markdown\u002FSKILL.md",[],[],{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":107},"01M7DVH3HGW47BX3PEF30JV6EJ","mk-vulnerability-scanner","Vulnerability analysis: OWASP Top 10, current threat landscape, supply chain security, attack surface mapping, risk prioritization. Use for security audits. NOT for STRIDE\u002FCSO infra audits (mk:cso).","https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-vulnerability-scanner\u002FSKILL.md",[],[],{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":107},"01M7DVGZBKMB9WDFH9MFMA99FV","mk-vue","Vue 3 authoring\u002Freview: components, composables, reactivity, Pinia, Pinia Colada, file routing, forms. Composition API + script setup. Auto-activates on .vue files. Deep review: mk:vue-best-practices.","https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-vue\u002FSKILL.md",[],[],{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":107},"01M7DVGSE12AA1M7599HB8HRCT","mk-vue-testing-best-practices","Vue 3 testing best-practices review: Vitest + Vue Test Utils for components, composables, Pinia, Router, async\u002FSuspense, forms, a11y, plus Playwright E2E strategy. Advisory only.","https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-vue-testing-best-practices\u002FSKILL.md",[],[]]