Validates Open Horizons architecture Markdown documents for required sections, required diagrams, Mermaid structure, explanation completeness, and repository copy conventions. Use this skill when reviewing or finishing an architecture document, checking {app}_Architecture.md, verifying Mermaid diagrams, or confirming the architecture Definition of Done.
This skill turns the Senior Cloud Architect's Definition of Done into an executable architecture-document check so {app}_Architecture.md deliverables do not ship with missing sections, incomplete diagram explanations, or broken Mermaid structure.
When to invoke
"Validate this architecture document before presenting it."
"Review {app}_Architecture.md for required sections and diagrams."
"Confirm the Mermaid diagrams and diagram explanations are complete."
"Run the architecture document Definition of Done."
Prerequisites and context
Pair this with the deploy-managed architecture workflow: the responsible agent designs and writes {app}_Architecture.md, then runs this gate before presenting.
The validation script is standard-library Python and self-contained; no install is needed.
Criteria
Required content
Required sections are present: Executive Summary, System Context, Component Architecture, Deployment Architecture, Data Flow, Risks and Mitigations.
The five required diagrams are present: System Context, Component, Deployment, Data Flow, Sequence.
Each diagram's section includes the seven explanation parts: Overview, Key Components, Relationships, Design Decisions, NFR Considerations, Trade-offs, Risks and Mitigations.
Mermaid structure
Every Mermaid block is fenced and non-empty.
Every Mermaid block declares a known diagram type such as graph, flowchart, sequenceDiagram, erDiagram, or stateDiagram-v2.
Brackets are balanced.
Diagram types that need edges or messages include them.
Repository copy conventions
No em dashes appear.
"GitHub Copilot" is never abbreviated to bare "Copilot".
No unfilled template placeholders remain: {app}, [Diagram], TODO, or TBD.
Numbers in an architecture document, including NFR targets and costs, are sourced or labeled as assumptions; the gate flags conventions, not factual accuracy, so keep the data integrity rule yourself.
Script workflow
Write or update the architecture document as {app}_Architecture.md.
Fix every reported error, then rerun until it passes.
Record the result at the end of the document as a short "Validation" note.
Override the minimum diagram count only when justified: --min-diagrams 6.
Output template
Return exactly this structure:
# Architecture document validation result
**Status:** passed | failed | blocked
**Document:** <path to architecture document>
**Summary:** <one-sentence compliance summary>
### Details
- Required sections: <pass/fail and missing items>
- Required diagrams: <pass/fail and missing items>
- Diagram explanations: <pass/fail and missing parts>
- Repository copy conventions: <pass/fail and findings>
### Validation evidence
- Command: `python .github/skills/architecture-doc/scripts/validate_arch.py <App_Architecture.md>`
- Exit status: <0 or non-zero>
- Errors: <none or list>
- Warnings: <none or list>
Limits
Do not use this skill for creating cloud diagrams.
Use azure-draw-io-diagram-generator (skill) instead when the deliverable is an editable diagram file or rendered cloud diagram.
Use markdown-writer (skill) instead when the task is generic Markdown writing.
Use agentic-architecture-patterns (skill) instead when designing agent architecture.
The script cannot fully render Mermaid; it uses high-signal structural checks.
Gotchas
If a Mermaid diagram is very complex, simplify it rather than risk a render error.
Do not present a document that fails the gate.
Progressive disclosure and bundled resources
At discovery time, only name and description are loaded. Execute the script only when validating a real architecture document.
scripts/validate_arch.py: architecture Markdown gate for required sections, diagrams, Mermaid structure, and conventions.
Related primitives
Name
Type
Use it when
azure-draw-io-diagram-generator
skill
The task is creating or rendering professional architecture diagrams.
markdown-writer
skill
The task is general Markdown authoring or formatting.
agentic-architecture-patterns
skill
The task is designing agentic architecture decisions.
open-horizons-architect
agent
A persistent architecture role should own the design.
open-horizons-engineer
agent
Broader repository code or document review is needed.
Quality gate
Required sections are present.
The five required diagrams are present.
Mermaid blocks are structurally valid by the script's checks.
Every diagram section includes the seven explanation parts.
Repository copy conventions pass.
The validation command was run and evidence is reported.
Any warnings are reviewed and any errors are fixed.
The response follows ## Output template exactly.
Every bundled resource referenced above exists.
1---2name: cloud-architecture-best-practices-docs3description: Validates Open Horizons architecture Markdown documents for required sections, required diagrams, Mermaid structure, explanation completeness, and repository copy conventions. Use this skill when reviewing or finishing an architecture document, checking {app}_Architecture.md, verifying Mermaid diagrams, or confirming the architecture Definition of Done.4---56<!-- Generated from harness/github-copilot/plugins/open-horizons-platform/skills/cloud-architecture-best-practices-docs/SKILL.md by harness/claude-code/scripts/convert_from_copilot.py. Edit the source, not this file. -->78# Cloud Architecture Best Practices Docs910This skill turns the Senior Cloud Architect's Definition of Done into an executable architecture-document check so `{app}_Architecture.md` deliverables do not ship with missing sections, incomplete diagram explanations, or broken Mermaid structure.1112## When to invoke1314- "Validate this architecture document before presenting it."15- "Review {app}_Architecture.md for required sections and diagrams."16- "Confirm the Mermaid diagrams and diagram explanations are complete."17- "Run the architecture document Definition of Done."1819## Prerequisites and context2021- Pair this with the deploy-managed architecture workflow: the responsible agent designs and writes `{app}_Architecture.md`, then runs this gate before presenting.22- The validation script is standard-library Python and self-contained; no install is needed.2324## Criteria2526### Required content2728- [ ] Required sections are present: Executive Summary, System Context, Component Architecture, Deployment Architecture, Data Flow, Risks and Mitigations.29- [ ] The five required diagrams are present: System Context, Component, Deployment, Data Flow, Sequence.30- [ ] Each diagram's section includes the seven explanation parts: Overview, Key Components, Relationships, Design Decisions, NFR Considerations, Trade-offs, Risks and Mitigations.3132### Mermaid structure3334- [ ] Every Mermaid block is fenced and non-empty.35- [ ] Every Mermaid block declares a known diagram type such as `graph`, `flowchart`, `sequenceDiagram`, `erDiagram`, or `stateDiagram-v2`.36- [ ] Brackets are balanced.37- [ ] Diagram types that need edges or messages include them.3839### Repository copy conventions4041- [ ] No em dashes appear.42- [ ] "GitHub Copilot" is never abbreviated to bare "Copilot".43- [ ] No unfilled template placeholders remain: `{app}`, `[Diagram]`, `TODO`, or `TBD`.44- [ ] Numbers in an architecture document, including NFR targets and costs, are sourced or labeled as assumptions; the gate flags conventions, not factual accuracy, so keep the data integrity rule yourself.4546### Script workflow47481. Write or update the architecture document as `{app}_Architecture.md`.492. Run the gate:5051 ```bash52 python .github/skills/architecture-doc/scripts/validate_arch.py <App_Architecture.md>53 ```54553. Fix every reported error, then rerun until it passes.564. Record the result at the end of the document as a short "Validation" note.575. Override the minimum diagram count only when justified: `--min-diagrams 6`.5859## Output template6061Return exactly this structure:6263```markdown64# Architecture document validation result6566**Status:** passed | failed | blocked67**Document:** <path to architecture document>68**Summary:** <one-sentence compliance summary>6970### Details71- Required sections: <pass/fail and missing items>72- Required diagrams: <pass/fail and missing items>73- Diagram explanations: <pass/fail and missing parts>74- Repository copy conventions: <pass/fail and findings>7576### Validation evidence77- Command: `python .github/skills/architecture-doc/scripts/validate_arch.py <App_Architecture.md>`78- Exit status: <0 or non-zero>79- Errors: <none or list>80- Warnings: <none or list>81```8283## Limits8485- Do not use this skill for creating cloud diagrams.86- Use `azure-draw-io-diagram-generator` (`skill`) instead when the deliverable is an editable diagram file or rendered cloud diagram.87- Use `markdown-writer` (`skill`) instead when the task is generic Markdown writing.88- Use `agentic-architecture-patterns` (`skill`) instead when designing agent architecture.89- The script cannot fully render Mermaid; it uses high-signal structural checks.9091## Gotchas9293- If a Mermaid diagram is very complex, simplify it rather than risk a render error.94- Do not present a document that fails the gate.9596## Progressive disclosure and bundled resources9798At discovery time, only `name` and `description` are loaded. Execute the script only when validating a real architecture document.99100- `scripts/validate_arch.py`: architecture Markdown gate for required sections, diagrams, Mermaid structure, and conventions.101102## Related primitives103104| Name | Type | Use it when |105| --- | --- | --- |106| `azure-draw-io-diagram-generator` | `skill` | The task is creating or rendering professional architecture diagrams. |107| `markdown-writer` | `skill` | The task is general Markdown authoring or formatting. |108| `agentic-architecture-patterns` | `skill` | The task is designing agentic architecture decisions. |109| `open-horizons-architect` | `agent` | A persistent architecture role should own the design. |110| `open-horizons-engineer` | `agent` | Broader repository code or document review is needed. |111112## Quality gate113114- [ ] Required sections are present.115- [ ] The five required diagrams are present.116- [ ] Mermaid blocks are structurally valid by the script's checks.117- [ ] Every diagram section includes the seven explanation parts.118- [ ] Repository copy conventions pass.119- [ ] The validation command was run and evidence is reported.120- [ ] Any warnings are reviewed and any errors are fixed.121- [ ] The response follows `## Output template` exactly.122- [ ] Every bundled resource referenced above exists.
Run npx skillmds@latest add paulasilvatech/cloud-architecture-best-practices-docs in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Validates Open Horizons architecture Markdown documents for required sections, required diagrams, Mermaid structure, explanation completeness, and repository copy conventions. Use this skill when reviewing or finishing an architecture document, checking {app}_Architecture.md, verifying Mermaid diagrams, or confirming the architecture Definition of Done. It is listed under DevOps & Infra on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
paulasilvatech (@paulasilvatech) published this skill. Their other Agent Skills are listed on their SkillMD profile.