[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EGY6XRV5V9BVNWFJMMV6D8":3,"skill-same:01M7EGY6XRV5V9BVNWFJMMV6D8":49},{"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":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M7EGY6XRV5V9BVNWFJMMV6D8","speckit-c4-validate",null,"Check architecture diagrams for Mermaid syntax, C4 rule and consistency problems without changing files","leejsinclair\u002Fspeckit-grill-specify","leejsinclair","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F707675?v=4","01M6DBMMX08NN71ZYZVVBPERES","Lee Sinclair","01M7EGWB5W5WN2X881JPFNY4KF",0,"MIT","https:\u002F\u002Fgithub.com\u002Fleejsinclair\u002Fspeckit-grill-specify\u002Fblob\u002Fmain\u002F.specify\u002Fextensions\u002Fc4\u002F.specify-dev\u002Fagent-commands\u002Fclaude\u002Fspeckit-c4-validate\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: speckit-c4-validate\ndescription: Check architecture diagrams for Mermaid syntax, C4 rule and consistency problems without changing files\ncompatibility: Requires spec-kit project structure with .specify\u002F directory\nmetadata:\n  author: github-spec-kit\n  source: c4:commands\u002Fspeckit.c4.validate.md\n---\n\n# Validate Architecture Diagrams\n\nCheck the current feature's architecture document and the project-level views\nagainst the C4 conventions and against the documents they are derived from.\n\n**This command is read-only. Do not create or modify any project file.** Report\nfindings and let the user decide what to fix.\n\n## User Input\n\n```text\n$ARGUMENTS\n```\n\nYou **MUST** consider the user input before proceeding (if not empty). It may limit\nthe check to the feature or to the project-level views.\n\n## Configuration\n\nRead `.specify\u002Fextensions\u002Fc4\u002Fc4-config.yml` if it exists. Use these defaults for any\nkey that is missing or when the file is absent:\n\n- `architecture_dir`: `.specify\u002Fextensions\u002Fc4\u002Fdocs\u002Farchitecture`\n- `feature_file`: `architecture.md`\n- `mermaid_cli`: `mmdc`\n\n## Steps\n\n1. **Read the rules.** Read `.specify\u002Fextensions\u002Fc4\u002Ftemplates\u002Fc4-conventions.md` in full.\n\n2. **Locate the documents.** Run the prerequisites script from the repository root\n   and parse `FEATURE_DIR`, `FEATURE_SPEC` and `IMPL_PLAN`:\n   - **Bash**: `.specify\u002Fscripts\u002Fbash\u002Fcheck-prerequisites.sh --json --paths-only`\n   - **PowerShell**: `.specify\u002Fscripts\u002Fpowershell\u002Fcheck-prerequisites.ps1 -Json -PathsOnly`\n\n   The documents to check are `FEATURE_DIR\u002F\u003Cfeature_file>` and `context.md`,\n   `containers.md` and `erd.md` under `architecture_dir`. Check the ones that\n   exist. If none exist, report that there is nothing to validate, name the command\n   that creates each (`\u002Fspeckit-c4-feature`,\n   `\u002Fspeckit-c4-system`), and stop.\n\n3. **Syntax.** For every Mermaid block in those documents:\n   - If the `mermaid_cli` command is available, extract each block to a temporary\n     file outside the repository and run `\u003Cmermaid_cli> -i \u003Cfile> -o \u003Cfile>.svg`. A\n     non-zero exit is a syntax finding; quote the parser message.\n   - Otherwise review the block by hand: it starts with a valid diagram type, every\n     macro and arrow is in the allowed subset from the conventions, brackets and\n     quotes balance, and every alias used in a relationship is declared. State in\n     the report that syntax was reviewed manually, not parsed.\n\n4. **Rendered readability.** When the C4 diagrams were rendered in step 3, measure\n   them with `python3 .specify\u002Fextensions\u002Fc4\u002Fscripts\u002Fpython\u002Fc4_layout.py score \u003Cfile>.svg ...` and inspect the\n   renderings as well as the source. Report an **INFO** finding, quoting the counts,\n   when a relationship crosses an unrelated element or label, labels overlap,\n   relationship lines cross or coincide, or routes are unnecessarily long. Label\n   overlap counts are estimates: confirm every finding in the rendering. Syntax\n   validity alone does not establish readability. If rendering or Python is\n   unavailable, say that layout was not measured or not visually checked. This\n   step only reads and writes temporary files outside the repository.\n\n5. **C4 rules.** Check each C4 diagram against the conventions:\n   - one level per diagram, and one container per component diagram;\n   - every container and component has a technology and a description;\n   - every relationship has a label, and a protocol between containers;\n   - no element without a relationship;\n   - no leftover template placeholders (`[SYSTEM NAME]`, `[Component 1]`) or\n     template example content.\n\n6. **Consistency across views.**\n   - People and external systems in `containers.md` match `context.md`.\n   - Every container boundary in a feature component diagram is a container in\n     `containers.md`, or is listed as `Add` in the feature's Architecture Impact\n     table.\n   - An element has the same alias, label and technology everywhere it appears.\n   - Every database container has a section in `erd.md`.\n\n7. **Consistency with the feature documents.**\n   - Every sequence participant is an element in a C4 view.\n   - Every user story in `FEATURE_SPEC` has at least one sequence diagram, and each\n     diagram names the story it covers.\n   - Sequence message labels correspond to operations in `contracts\u002F`.\n   - The feature ER diagram contains every entity in `data-model.md`, with matching\n     attributes and relationships, and nothing that `data-model.md` lacks.\n   - Every `FK` attribute has a relationship line and the reverse.\n   - Technologies match `IMPL_PLAN` Technical Context.\n   - The Architecture Impact table accounts for every difference between the\n     feature diagrams and the project-level views.\n\n8. **Links.** `FEATURE_SPEC` and `IMPL_PLAN` link to the architecture documents, the\n   feature architecture document links back to them, and every relative link\n   resolves to a file that exists.\n\n## Report\n\nOutput a findings table, most severe first:\n\n| ID | Severity | Document | Diagram or section | Finding | Suggested fix |\n|----|----------|----------|--------------------|---------|---------------|\n\nSeverity levels:\n\n- **ERROR**: the diagram will not render, or it contradicts the spec, plan, data\n  model or contracts.\n- **WARNING**: a C4 convention is broken or two views disagree.\n- **INFO**: readability or completeness suggestion.\n\nFollow the table with the count per severity, the documents checked, and whether\nsyntax was parsed with the Mermaid CLI or reviewed manually, and whether layout was\nmeasured. If there are no findings, say\nso plainly. If there are findings, offer to fix them with\n`\u002Fspeckit-c4-feature` or `\u002Fspeckit-c4-system`; do not apply\nfixes from this command.","# Validate Architecture Diagrams\n\nCheck the current feature's architecture document and the project-level views\nagainst the C4 conventions and against the documents they are derived from.\n\n**This command is read-only. Do not create or modify any project file.** Report\nfindings and let the user decide what to fix.\n\n## User Input\n\n```text\n$ARGUMENTS\n```\n\nYou **MUST** consider the user input before proceeding (if not empty). It may limit\nthe check to the feature or to the project-level views.\n\n## Configuration\n\nRead `.specify\u002Fextensions\u002Fc4\u002Fc4-config.yml` if it exists. Use these defaults for any\nkey that is missing or when the file is absent:\n\n- `architecture_dir`: `.specify\u002Fextensions\u002Fc4\u002Fdocs\u002Farchitecture`\n- `feature_file`: `architecture.md`\n- `mermaid_cli`: `mmdc`\n\n## Steps\n\n1. **Read the rules.** Read `.specify\u002Fextensions\u002Fc4\u002Ftemplates\u002Fc4-conventions.md` in full.\n\n2. **Locate the documents.** Run the prerequisites script from the repository root\n   and parse `FEATURE_DIR`, `FEATURE_SPEC` and `IMPL_PLAN`:\n   - **Bash**: `.specify\u002Fscripts\u002Fbash\u002Fcheck-prerequisites.sh --json --paths-only`\n   - **PowerShell**: `.specify\u002Fscripts\u002Fpowershell\u002Fcheck-prerequisites.ps1 -Json -PathsOnly`\n\n   The documents to check are `FEATURE_DIR\u002F\u003Cfeature_file>` and `context.md`,\n   `containers.md` and `erd.md` under `architecture_dir`. Check the ones that\n   exist. If none exist, report that there is nothing to validate, name the command\n   that creates each (`\u002Fspeckit-c4-feature`,\n   `\u002Fspeckit-c4-system`), and stop.\n\n3. **Syntax.** For every Mermaid block in those documents:\n   - If the `mermaid_cli` command is available, extract each block to a temporary\n     file outside the repository and run `\u003Cmermaid_cli> -i \u003Cfile> -o \u003Cfile>.svg`. A\n     non-zero exit is a syntax finding; quote the parser message.\n   - Otherwise review the block by hand: it starts with a valid diagram type, every\n     macro and arrow is in the allowed subset from the conventions, brackets and\n     quotes balance, and every alias used in a relationship is declared. State in\n     the report that syntax was reviewed manually, not parsed.\n\n4. **Rendered readability.** When the C4 diagrams were rendered in step 3, measure\n   them with `python3 .specify\u002Fextensions\u002Fc4\u002Fscripts\u002Fpython\u002Fc4_layout.py score \u003Cfile>.svg ...` and inspect the\n   renderings as well as the source. Report an **INFO** finding, quoting the counts,\n   when a relationship crosses an unrelated element or label, labels overlap,\n   relationship lines cross or coincide, or routes are unnecessarily long. Label\n   overlap counts are estimates: confirm every finding in the rendering. Syntax\n   validity alone does not establish readability. If rendering or Python is\n   unavailable, say that layout was not measured or not visually checked. This\n   step only reads and writes temporary files outside the repository.\n\n5. **C4 rules.** Check each C4 diagram against the conventions:\n   - one level per diagram, and one container per component diagram;\n   - every container and component has a technology and a description;\n   - every relationship has a label, and a protocol between containers;\n   - no element without a relationship;\n   - no leftover template placeholders (`[SYSTEM NAME]`, `[Component 1]`) or\n     template example content.\n\n6. **Consistency across views.**\n   - People and external systems in `containers.md` match `context.md`.\n   - Every container boundary in a feature component diagram is a container in\n     `containers.md`, or is listed as `Add` in the feature's Architecture Impact\n     table.\n   - An element has the same alias, label and technology everywhere it appears.\n   - Every database container has a section in `erd.md`.\n\n7. **Consistency with the feature documents.**\n   - Every sequence participant is an element in a C4 view.\n   - Every user story in `FEATURE_SPEC` has at least one sequence diagram, and each\n     diagram names the story it covers.\n   - Sequence message labels correspond to operations in `contracts\u002F`.\n   - The feature ER diagram contains every entity in `data-model.md`, with matching\n     attributes and relationships, and nothing that `data-model.md` lacks.\n   - Every `FK` attribute has a relationship line and the reverse.\n   - Technologies match `IMPL_PLAN` Technical Context.\n   - The Architecture Impact table accounts for every difference between the\n     feature diagrams and the project-level views.\n\n8. **Links.** `FEATURE_SPEC` and `IMPL_PLAN` link to the architecture documents, the\n   feature architecture document links back to them, and every relative link\n   resolves to a file that exists.\n\n## Report\n\nOutput a findings table, most severe first:\n\n| ID | Severity | Document | Diagram or section | Finding | Suggested fix |\n|----|----------|----------|--------------------|---------|---------------|\n\nSeverity levels:\n\n- **ERROR**: the diagram will not render, or it contradicts the spec, plan, data\n  model or contracts.\n- **WARNING**: a C4 convention is broken or two views disagree.\n- **INFO**: readability or completeness suggestion.\n\nFollow the table with the count per severity, the documents checked, and whether\nsyntax was parsed with the Mermaid CLI or reviewed manually, and whether layout was\nmeasured. If there are no findings, say\nso plainly. If there are findings, offer to fix them with\n`\u002Fspeckit-c4-feature` or `\u002Fspeckit-c4-system`; do not apply\nfixes from this command.",{"name":5,"metadata":24,"description":7,"compatibility":27},{"author":25,"source":26},"github-spec-kit","c4:commands\u002Fspeckit.c4.validate.md","Requires spec-kit project structure with .specify\u002F directory","main","4c0d3d4835e0f1b888d86c883ee85fd22dd8682b",".specify\u002Fextensions\u002Fc4\u002F.specify-dev\u002Fagent-commands\u002Fclaude\u002Fspeckit-c4-validate","https:\u002F\u002Fgithub.com\u002Fleejsinclair\u002Fspeckit-grill-specify","https:\u002F\u002Fgithub.com\u002Fleejsinclair","http:\u002F\u002Fmetatheory.co","2026-10-11 15:59:39",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add leejsinclair\u002Fspeckit-grill-specify --skill speckit-c4-validate",{"tool":41,"command":42},"bunx","bunx skills add leejsinclair\u002Fspeckit-grill-specify --skill speckit-c4-validate",{"tool":44,"command":45},"pnpm","pnpm dlx skills add leejsinclair\u002Fspeckit-grill-specify --skill speckit-c4-validate","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fleejsinclair\u002Fspeckit-grill-specify\u002Fblob\u002Fmain\u002F.specify\u002Fextensions\u002Fc4\u002F.specify-dev\u002Fagent-commands\u002Fclaude\u002Fspeckit-c4-validate\u002FSKILL.md",true,[],[50,57,64,71,76,83],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M7EGY90MMNNJSQHVGX5C1N3A","ship","Run this repo's checks, then commit and push to the branch the user names","https:\u002F\u002Fgithub.com\u002Fleejsinclair\u002Fspeckit-grill-specify\u002Fblob\u002Fmain\u002F.specify\u002Fpresets\u002Fc4-model\u002F.claude\u002Fskills\u002Fship\u002FSKILL.md",[],[],{"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":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7EGY4WF61ZWYG76XD8TZQ2K","speckit-c4-system","Create or update the project-level C4 context view, container view and ER diagram","https:\u002F\u002Fgithub.com\u002Fleejsinclair\u002Fspeckit-grill-specify\u002Fblob\u002Fmain\u002F.specify\u002Fextensions\u002Fc4\u002F.specify-dev\u002Fagent-commands\u002Fclaude\u002Fspeckit-c4-system\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7EGY2QCP2VNAC8P1CT4SA81","speckit-c4-feature","Generate a feature's C4 component diagrams, sequence diagrams and ER diagram in architecture.md","https:\u002F\u002Fgithub.com\u002Fleejsinclair\u002Fspeckit-grill-specify\u002Fblob\u002Fmain\u002F.specify\u002Fextensions\u002Fc4\u002F.specify-dev\u002Fagent-commands\u002Fclaude\u002Fspeckit-c4-feature\u002FSKILL.md",[],[],{"skillNo":72,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7EGY1FB7EA06CP7FD3FF71X","https:\u002F\u002Fgithub.com\u002Fleejsinclair\u002Fspeckit-grill-specify\u002Fblob\u002Fmain\u002F.specify\u002Fextensions\u002Fc4\u002F.claude\u002Fskills\u002Fship\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7EGXZ00WQ3SGE5FVJJWZ0HJ","speckit-taskstoissues","Convert existing tasks into actionable, dependency-ordered GitHub issues for the feature based on available design artifacts.","https:\u002F\u002Fgithub.com\u002Fleejsinclair\u002Fspeckit-grill-specify\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fspeckit-taskstoissues\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7EGXVWSXW6ZK2TBSYRZ0QW9","speckit-tasks","Generate an actionable, dependency-ordered tasks.md for the feature based on available design artifacts, with every task labelled against the Verification Plan and test tasks ordered first.","https:\u002F\u002Fgithub.com\u002Fleejsinclair\u002Fspeckit-grill-specify\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fspeckit-tasks\u002FSKILL.md",[],[]]