[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M758NKJPDCJ9CJTZGRCHPT7M":3,"skill-same:01M758NKJPDCJ9CJTZGRCHPT7M":66},{"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":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M758NKJPDCJ9CJTZGRCHPT7M","complexity-detection",null,"Classify a task or feature as quick, standard, or thorough so the rest of\nthe pipeline (budget sizing, model routing, review depth) can right-size\nitself. Used by \u002Fck:sketch to default the kit's complexity, by \u002Fck:map to\nassign task depth, and by \u002Fck:make for per-task budgets. Also invoked by\nthe ck:complexity agent with the haiku model. Trigger phrases:\n\"how complex\", \"what depth\", \"pick a depth\", \"classify this task\".","davidcoachdev\u002Fdcfiles","davidcoachdev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F69812733?v=4","01M758C4BR16TAV1N47W319E9V","David H. Caycedo Blum.","01M758C4CCZA2ZYGA0BGMXCDRH",1,"MIT","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fcomplexity-detection\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: complexity-detection\ndescription: |\n  Classify a task or feature as quick, standard, or thorough so the rest of\n  the pipeline (budget sizing, model routing, review depth) can right-size\n  itself. Used by \u002Fck:sketch to default the kit's complexity, by \u002Fck:map to\n  assign task depth, and by \u002Fck:make for per-task budgets. Also invoked by\n  the ck:complexity agent with the haiku model. Trigger phrases:\n  \"how complex\", \"what depth\", \"pick a depth\", \"classify this task\".\n---\n\n# Complexity Detection\n\nA deterministic scoring rubric. Five axes, 0–4 each, summed to 0–20.\n\n## Axes\n\n| Axis                  | 0                | 1                 | 2                 | 3                    | 4                   |\n|-----------------------|------------------|-------------------|-------------------|----------------------|---------------------|\n| **Files touched**     | 0–2              | 3–5               | 6–10              | 11–20                | 20+                 |\n| **Type**              | chore \u002F format   | refactor          | feature           | cross-cutting        | architectural       |\n| **Judgment required** | mechanical       | low-ambiguity     | medium            | high                 | critical (sec\u002Fprod) |\n| **Cross-component**   | single module    | two modules       | three modules     | many within one repo | multi-repo          |\n| **Novelty**           | known pattern    | rare pattern      | novel             | research needed      | unknown unknowns    |\n\nTotal score maps to:\n\n| Score  | Depth      |\n|--------|------------|\n| 0 – 6  | quick      |\n| 7 – 13 | standard   |\n| 14+    | thorough   |\n\n## Override signals\n\nUpgrade one step regardless of score when any of these are true:\n\n- Security-sensitive: authentication, authorization, crypto, secrets, PII.\n- Data migration that is not reversible.\n- Public API shape change (breaking).\n- Performance-critical hot path with an existing SLA.\n\nDowngrade one step only when **all** of these are true:\n\n- Zero new dependencies.\n- Existing tests cover the change.\n- No user-visible behaviour change.\n- Single file, single function.\n\n## Per-depth defaults\n\n| Depth    | Token budget | Model tier | Review    | Tests                       |\n|----------|--------------|------------|-----------|-----------------------------|\n| quick    | 8 000        | haiku      | optional  | smoke                       |\n| standard | 20 000       | sonnet     | required  | unit + integration          |\n| thorough | 45 000       | sonnet\u002Fopus| mandatory | unit + integration + E2E    |\n\nThese defaults are recorded in `.cavekit\u002Fconfig.json` under `task_budgets`\nand consumed by the `cavekit-router.cjs` model router.\n\n## How agents score\n\nThe `ck:complexity` subagent (haiku) receives a task description and returns\na JSON blob:\n\n```json\n{\n  \"score\": 11,\n  \"depth\": \"standard\",\n  \"axes\": {\n    \"files\": 2, \"type\": 2, \"judgment\": 2, \"cross_component\": 2, \"novelty\": 3\n  },\n  \"overrides_applied\": []\n}\n```\n\n`\u002Fck:map` calls this agent per task to set `depth` in the task registry. If\nthe agent produces a score in the \"thorough\" band with a novelty of 4 and a\nsecurity override, it may return `needs_research: true`, which `\u002Fck:map` must\ntranslate into an upstream `ck:researcher` task dependency before the work\nitself.\n\n## Integration points\n\n- `\u002Fck:sketch` — runs complexity scoring on the whole domain to set the kit's\n  `complexity:` frontmatter.\n- `\u002Fck:map` — runs it per task to assign `depth`.\n- `\u002Fck:make` — reads `depth` to size the task budget and pick the review\n  intensity.\n- `ck:complexity` agent — pure-haiku worker; does nothing else.\n\n## Anti-patterns\n\n- Using one depth for every task in a kit \"for consistency.\" Cost up, signal\n  down.\n- Padding depth to \"be safe\" — if the budget is oversized, the model wastes\n  tokens exploring. Right-size, then raise only when verification fails.\n- Ignoring overrides — scoring a login flow as \"quick\" because it touches one\n  file. Security overrides exist for exactly this reason.\n","# Complexity Detection\n\nA deterministic scoring rubric. Five axes, 0–4 each, summed to 0–20.\n\n## Axes\n\n| Axis                  | 0                | 1                 | 2                 | 3                    | 4                   |\n|-----------------------|------------------|-------------------|-------------------|----------------------|---------------------|\n| **Files touched**     | 0–2              | 3–5               | 6–10              | 11–20                | 20+                 |\n| **Type**              | chore \u002F format   | refactor          | feature           | cross-cutting        | architectural       |\n| **Judgment required** | mechanical       | low-ambiguity     | medium            | high                 | critical (sec\u002Fprod) |\n| **Cross-component**   | single module    | two modules       | three modules     | many within one repo | multi-repo          |\n| **Novelty**           | known pattern    | rare pattern      | novel             | research needed      | unknown unknowns    |\n\nTotal score maps to:\n\n| Score  | Depth      |\n|--------|------------|\n| 0 – 6  | quick      |\n| 7 – 13 | standard   |\n| 14+    | thorough   |\n\n## Override signals\n\nUpgrade one step regardless of score when any of these are true:\n\n- Security-sensitive: authentication, authorization, crypto, secrets, PII.\n- Data migration that is not reversible.\n- Public API shape change (breaking).\n- Performance-critical hot path with an existing SLA.\n\nDowngrade one step only when **all** of these are true:\n\n- Zero new dependencies.\n- Existing tests cover the change.\n- No user-visible behaviour change.\n- Single file, single function.\n\n## Per-depth defaults\n\n| Depth    | Token budget | Model tier | Review    | Tests                       |\n|----------|--------------|------------|-----------|-----------------------------|\n| quick    | 8 000        | haiku      | optional  | smoke                       |\n| standard | 20 000       | sonnet     | required  | unit + integration          |\n| thorough | 45 000       | sonnet\u002Fopus| mandatory | unit + integration + E2E    |\n\nThese defaults are recorded in `.cavekit\u002Fconfig.json` under `task_budgets`\nand consumed by the `cavekit-router.cjs` model router.\n\n## How agents score\n\nThe `ck:complexity` subagent (haiku) receives a task description and returns\na JSON blob:\n\n```json\n{\n  \"score\": 11,\n  \"depth\": \"standard\",\n  \"axes\": {\n    \"files\": 2, \"type\": 2, \"judgment\": 2, \"cross_component\": 2, \"novelty\": 3\n  },\n  \"overrides_applied\": []\n}\n```\n\n`\u002Fck:map` calls this agent per task to set `depth` in the task registry. If\nthe agent produces a score in the \"thorough\" band with a novelty of 4 and a\nsecurity override, it may return `needs_research: true`, which `\u002Fck:map` must\ntranslate into an upstream `ck:researcher` task dependency before the work\nitself.\n\n## Integration points\n\n- `\u002Fck:sketch` — runs complexity scoring on the whole domain to set the kit's\n  `complexity:` frontmatter.\n- `\u002Fck:map` — runs it per task to assign `depth`.\n- `\u002Fck:make` — reads `depth` to size the task budget and pick the review\n  intensity.\n- `ck:complexity` agent — pure-haiku worker; does nothing else.\n\n## Anti-patterns\n\n- Using one depth for every task in a kit \"for consistency.\" Cost up, signal\n  down.\n- Padding depth to \"be safe\" — if the budget is oversized, the model wastes\n  tokens exploring. Right-size, then raise only when verification fails.\n- Ignoring overrides — scoring a login flow as \"quick\" because it touches one\n  file. Security overrides exist for exactly this reason.\n",{"name":5,"description":7},"main","5dc86f90a5cbe45db3acd917825461b3ed6937fb","config\u002F.config\u002Fopencode\u002Fskills\u002Fcomplexity-detection",0,"https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev","🌐 Apasionado por crear soluciones web escalables y eficientes. \r\n🧑‍🏫 Coach Dev.\r\n💻 Frontend Dev. \r\n🎚️Backend Dev.\r\n📊 Agile\u002FScrum.\r\n🚀100% remoto.","2026-08-26 07:28:05",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add davidcoachdev\u002Fdcfiles --skill complexity-detection",{"tool":38,"command":39},"bunx","bunx skills add davidcoachdev\u002Fdcfiles --skill complexity-detection",{"tool":41,"command":42},"pnpm","pnpm dlx skills add davidcoachdev\u002Fdcfiles --skill complexity-detection","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fcomplexity-detection\u002FSKILL.md",true,[46,52,58,62],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"assets\u002F01-template.md","ASSET","资产文件",36,"https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fcomplexity-detection\u002Fassets\u002F01-template.md",{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"README.md","REFERENCE","参考文档",431,"https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fcomplexity-detection\u002FREADME.md",{"path":59,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002F01-overview.md",32,"https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fcomplexity-detection\u002Freferences\u002F01-overview.md",{"path":63,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002F02-usage.md",24,"https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fcomplexity-detection\u002Freferences\u002F02-usage.md",[67,75,82,89,96,103],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":71,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7740FETMZY1VTYAEFY1TWY7","zustand-5","Zustand 5 state management patterns. Trigger: When managing React state with Zustand.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fzustand-5\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":71,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M773ZZM9V68SA1AKP4WF4J29","zod-4","Zod 4 schema validation patterns. Trigger: When using Zod for validation - breaking changes from v3.","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fzod-4\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":71,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M773ZJFR90CQAY0N9QR40QVP","x-bookmark-quote-posts","Workflow para revisar bookmarks de X\u002FTwitter y convertirlos en drafts de quote posts. Accede a la sección de bookmarks vía browser headless, extrae posts recientes, y genera drafts con voz personal del usuario. No publica ni muta X — solo genera contenido para revisión. Trigger: X bookmarks, Twitter bookmarks, quote posts, bookmark automation, crear quote posts, revisar bookmarks, growth content X.","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fx-bookmark-quote-posts\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M773Z2RGV3786FV310SDB0YD","writing-skills","Use when creating new skills, editing existing skills, or verifying skills work before deployment","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M773YJH3KDSW467CSS63CSRJ","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":71,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M773Y3S3H2CPRK5S8YFHWB5C","work-unit-commits","Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fwork-unit-commits\u002FSKILL.md",[],[]]