[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M758K8B2MG80SM085KFP4MSJ":3,"skill-same:01M758K8B2MG80SM085KFP4MSJ":56},{"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":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M758K8B2MG80SM085KFP4MSJ","c4-architecture",null,"Generate C4 model architecture diagrams (System Context -> Container -> Component -> Code) as Mermaid, derived from codebase analysis with our own tools (read, astGrep, grep) — no external packages or cloud. Ports the C4 idea from deepwiki-rs \u002F Litho but implemented originally on our stack. Validates every diagram with the mermaid-fixer skill and stores results via context-mode_ctx_index. Trigger: \"generate C4\", \"C4 diagram\", \"system context diagram\", \"container diagram\", \"document architecture with C4\", \"adapt deepwiki c4\", when onboarding to a codebase or writing architecture docs.","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\u002Fc4-architecture\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: c4-architecture\ndescription: >\n  Generate C4 model architecture diagrams (System Context -> Container ->\n  Component -> Code) as Mermaid, derived from codebase analysis with our own\n  tools (read, astGrep, grep) — no external packages or cloud. Ports the C4\n  idea from deepwiki-rs \u002F Litho but implemented originally on our stack.\n  Validates every diagram with the mermaid-fixer skill and stores results via\n  context-mode_ctx_index. Trigger: \"generate C4\", \"C4 diagram\", \"system context\n  diagram\", \"container diagram\", \"document architecture with C4\", \"adapt deepwiki\n  c4\", when onboarding to a codebase or writing architecture docs.\nlicense: MIT\nmetadata:\n  author: adapted-from-deepwiki-rs\n  version: \"1.0\"\n---\n\n# C4 Architecture (original, local-first)\n\nProduce a **C4 model** of any codebase in four levels of detail. The diagrams are\ngenerated by *analyzing the repo ourselves* (README, entry points, dependency\nmanifests, `astGrep` for module boundaries) and emitted as Mermaid — never by\ninstalling a third-party tool. Every diagram is validated with `mermaid-fixer`\nand indexed with `context-mode` for later retrieval.\n\n## The four levels\n\n| Level | Diagram | Answers | Mermaid type |\n|-------|---------|---------|--------------|\n| 1 | **System Context** | Who\u002Fwhat interacts with the system at the boundary? | `C4Context` |\n| 2 | **Container** | What deployable units (apps, services, DBs, queues) make it up? | `C4Container` |\n| 3 | **Component** | What modules\u002Fcomponents live inside the main container? | `C4Component` |\n| 4 | **Code** | Key classes\u002Finterfaces of the most important component? | `classDiagram`* |\n\n\\* Mermaid has no `C4Code` primitive; level 4 uses a `classDiagram`\n(relationships = associations\u002Fdependencies).\n\n## How to derive each level from the code (our tools only)\n\n### Level 1 — System Context\n- Read `README.md`, top-level dirs, and config for external signals:\n  CORS origins, OAuth providers, `API_URL` env vars, webhook endpoints.\n- Each external **actor** (user role, other system) becomes a `Person` \u002F `System_Ext`.\n- The system under study is one `System`\u002F`System_Boundary`.\n\n### Level 2 — Container\n- Scan dependency manifests & infra for deployable units:\n  - `package.json` \u002F `Cargo.toml` \u002F `pom.xml` \u002F `requirements.txt` → language\u002Fruntime\n  - `Dockerfile`, `docker-compose.yml`, `Procfile` → services\n  - DB drivers, Redis, message brokers in deps → `ContainerDb` \u002F `ContainerQueue`\n- Each unit = a `Container` inside a `System_Boundary` or `Container_Boundary`.\n\n### Level 3 — Component\n- For the main container, `astGrep`\u002Fread to find module boundaries:\n  `src\u002F**\u002F`, exported modules, route handlers, `controller`\u002F`service`\u002F`repository` dirs.\n- Each cohesive module = a `Component` inside a `Container_Boundary`.\n\n### Level 4 — Code\n- Pick the **single most important** component from level 3.\n- `astGrep` for class\u002Finterface\u002Fstruct\u002Ftype definitions and their relationships.\n- Emit a `classDiagram` (do not try to diagram the whole codebase — one component only).\n\n## Mermaid C4 syntax\n\nSee `assets\u002Fc4-templates.md` for copy-paste scaffolds of all four levels.\nMinimal examples:\n\n```mermaid\nC4Context\n    title System Context — \u003Csystem>\n    Person(user, \"User\", \"Primary operator\")\n    System(sys, \"\u003Csystem>\", \"What it does\")\n    System_Ext(ext, \"External API\", \"Upstream dependency\")\n    Rel(user, sys, \"Uses\")\n    Rel(sys, ext, \"Calls\", \"HTTPS\")\n```\n\n```mermaid\nC4Container\n    title Container — \u003Csystem>\n    Person(user, \"User\")\n    Container_Boundary(b, \"\u003Csystem>\") {\n        Container(web, \"Web App\", \"TypeScript\u002FNext\", \"UI + API gateway\")\n        ContainerDb(db, \"Database\", \"Postgres\", \"Persistence\")\n    }\n    Rel(user, web, \"Uses\", \"HTTPS\")\n    Rel(web, db, \"Reads\u002FWrites\", \"SQL\")\n```\n\n## Workflow (the gate)\n\n1. **Analyze** the repo per the level-1..4 signals above. Do NOT dump the whole\n   tree into context — use `context-architecture` scaling (README + entry +\n   targeted `astGrep`).\n2. **Generate** one `.mmd` per level under `.c4\u002F`:\n   `.c4\u002Fcontext.mmd`, `.c4\u002Fcontainer.mmd`, `.c4\u002Fcomponent.mmd`, `.c4\u002Fcode.mmd`.\n3. **Validate** — run the `mermaid-fixer` skill's validator:\n   ```bash\n   node \u003Cmermaid-fixer-skill-dir>\u002Fassets\u002Fvalidate-mermaid.mjs .c4\u002F*.mmd\n   ```\n   Fix every reported error and re-run until exit code `0`.\n4. **Index** for retrieval (feeds `context-architecture` S1 tier):\n   ```js\n   context-mode_ctx_index(path: \".c4\u002Fcontext.mmd\", source: \"architecture\")\n   ```\n   Tag all four with `source: \"architecture\"` so\n   `ctx_search(queries:[...], source:\"architecture\")` surfaces them to agents.\n5. **Wrap** (optional): write `.c4\u002FREADME.md` linking the four levels, then point\n   `cavekit-docgen`'s `architecture.md` at it.\n\n## Integration\n\n| Skill | Relationship |\n|-------|--------------|\n| `mermaid-fixer` | Mandatory validation gate (step 3). |\n| `context-architecture` | C4 diagrams populate the S1 (ARCHITECTURE) tier. |\n| `cavekit-docgen` | `architecture.md` references the generated C4 set. |\n| `doc-knowledge-base` | For externally-sourced architecture docs, tag `source:\"architecture\"`. |\n\n## Principles\n- **Local-first**: no `npm install`, no cloud. Pure analysis + Mermaid.\n- **Progressive disclosure**: level 1 is always safe to show; deeper levels only\n  when the reader needs them.\n- **Valid or not shipped**: a diagram that fails `mermaid-fixer` is a broken\n  diagram — never commit it.\n","# C4 Architecture (original, local-first)\n\nProduce a **C4 model** of any codebase in four levels of detail. The diagrams are\ngenerated by *analyzing the repo ourselves* (README, entry points, dependency\nmanifests, `astGrep` for module boundaries) and emitted as Mermaid — never by\ninstalling a third-party tool. Every diagram is validated with `mermaid-fixer`\nand indexed with `context-mode` for later retrieval.\n\n## The four levels\n\n| Level | Diagram | Answers | Mermaid type |\n|-------|---------|---------|--------------|\n| 1 | **System Context** | Who\u002Fwhat interacts with the system at the boundary? | `C4Context` |\n| 2 | **Container** | What deployable units (apps, services, DBs, queues) make it up? | `C4Container` |\n| 3 | **Component** | What modules\u002Fcomponents live inside the main container? | `C4Component` |\n| 4 | **Code** | Key classes\u002Finterfaces of the most important component? | `classDiagram`* |\n\n\\* Mermaid has no `C4Code` primitive; level 4 uses a `classDiagram`\n(relationships = associations\u002Fdependencies).\n\n## How to derive each level from the code (our tools only)\n\n### Level 1 — System Context\n- Read `README.md`, top-level dirs, and config for external signals:\n  CORS origins, OAuth providers, `API_URL` env vars, webhook endpoints.\n- Each external **actor** (user role, other system) becomes a `Person` \u002F `System_Ext`.\n- The system under study is one `System`\u002F`System_Boundary`.\n\n### Level 2 — Container\n- Scan dependency manifests & infra for deployable units:\n  - `package.json` \u002F `Cargo.toml` \u002F `pom.xml` \u002F `requirements.txt` → language\u002Fruntime\n  - `Dockerfile`, `docker-compose.yml`, `Procfile` → services\n  - DB drivers, Redis, message brokers in deps → `ContainerDb` \u002F `ContainerQueue`\n- Each unit = a `Container` inside a `System_Boundary` or `Container_Boundary`.\n\n### Level 3 — Component\n- For the main container, `astGrep`\u002Fread to find module boundaries:\n  `src\u002F**\u002F`, exported modules, route handlers, `controller`\u002F`service`\u002F`repository` dirs.\n- Each cohesive module = a `Component` inside a `Container_Boundary`.\n\n### Level 4 — Code\n- Pick the **single most important** component from level 3.\n- `astGrep` for class\u002Finterface\u002Fstruct\u002Ftype definitions and their relationships.\n- Emit a `classDiagram` (do not try to diagram the whole codebase — one component only).\n\n## Mermaid C4 syntax\n\nSee `assets\u002Fc4-templates.md` for copy-paste scaffolds of all four levels.\nMinimal examples:\n\n```mermaid\nC4Context\n    title System Context — \u003Csystem>\n    Person(user, \"User\", \"Primary operator\")\n    System(sys, \"\u003Csystem>\", \"What it does\")\n    System_Ext(ext, \"External API\", \"Upstream dependency\")\n    Rel(user, sys, \"Uses\")\n    Rel(sys, ext, \"Calls\", \"HTTPS\")\n```\n\n```mermaid\nC4Container\n    title Container — \u003Csystem>\n    Person(user, \"User\")\n    Container_Boundary(b, \"\u003Csystem>\") {\n        Container(web, \"Web App\", \"TypeScript\u002FNext\", \"UI + API gateway\")\n        ContainerDb(db, \"Database\", \"Postgres\", \"Persistence\")\n    }\n    Rel(user, web, \"Uses\", \"HTTPS\")\n    Rel(web, db, \"Reads\u002FWrites\", \"SQL\")\n```\n\n## Workflow (the gate)\n\n1. **Analyze** the repo per the level-1..4 signals above. Do NOT dump the whole\n   tree into context — use `context-architecture` scaling (README + entry +\n   targeted `astGrep`).\n2. **Generate** one `.mmd` per level under `.c4\u002F`:\n   `.c4\u002Fcontext.mmd`, `.c4\u002Fcontainer.mmd`, `.c4\u002Fcomponent.mmd`, `.c4\u002Fcode.mmd`.\n3. **Validate** — run the `mermaid-fixer` skill's validator:\n   ```bash\n   node \u003Cmermaid-fixer-skill-dir>\u002Fassets\u002Fvalidate-mermaid.mjs .c4\u002F*.mmd\n   ```\n   Fix every reported error and re-run until exit code `0`.\n4. **Index** for retrieval (feeds `context-architecture` S1 tier):\n   ```js\n   context-mode_ctx_index(path: \".c4\u002Fcontext.mmd\", source: \"architecture\")\n   ```\n   Tag all four with `source: \"architecture\"` so\n   `ctx_search(queries:[...], source:\"architecture\")` surfaces them to agents.\n5. **Wrap** (optional): write `.c4\u002FREADME.md` linking the four levels, then point\n   `cavekit-docgen`'s `architecture.md` at it.\n\n## Integration\n\n| Skill | Relationship |\n|-------|--------------|\n| `mermaid-fixer` | Mandatory validation gate (step 3). |\n| `context-architecture` | C4 diagrams populate the S1 (ARCHITECTURE) tier. |\n| `cavekit-docgen` | `architecture.md` references the generated C4 set. |\n| `doc-knowledge-base` | For externally-sourced architecture docs, tag `source:\"architecture\"`. |\n\n## Principles\n- **Local-first**: no `npm install`, no cloud. Pure analysis + Mermaid.\n- **Progressive disclosure**: level 1 is always safe to show; deeper levels only\n  when the reader needs them.\n- **Valid or not shipped**: a diagram that fails `mermaid-fixer` is a broken\n  diagram — never commit it.\n",{"name":5,"license":15,"metadata":24,"description":27},{"author":25,"version":26},"adapted-from-deepwiki-rs","1.0","Generate C4 model architecture diagrams (System Context -> Container -> Component -> Code) as Mermaid, derived from codebase analysis with our own tools (read, astGrep, grep) — no external packages or cloud. Ports the C4 idea from deepwiki-rs \u002F Litho but implemented originally on our stack. Validates every diagram with the mermaid-fixer skill and stores results via context-mode_ctx_index. Trigger: \"generate C4\", \"C4 diagram\", \"system context diagram\", \"container diagram\", \"document architecture with C4\", \"adapt deepwiki c4\", when onboarding to a codebase or writing architecture docs.\n","main","5dc86f90a5cbe45db3acd917825461b3ed6937fb","config\u002F.config\u002Fopencode\u002Fskills\u002Fc4-architecture",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":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add davidcoachdev\u002Fdcfiles --skill c4-architecture",{"tool":42,"command":43},"bunx","bunx skills add davidcoachdev\u002Fdcfiles --skill c4-architecture",{"tool":45,"command":46},"pnpm","pnpm dlx skills add davidcoachdev\u002Fdcfiles --skill c4-architecture","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fc4-architecture\u002FSKILL.md",true,[50],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"assets\u002Fc4-templates.md","ASSET","资产文件",3028,"https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fc4-architecture\u002Fassets\u002Fc4-templates.md",[57,65,72,79,86,93],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":61,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"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":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":61,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"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":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":61,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"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":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"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":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"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":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":61,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"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",[],[]]