c4-architecture-documentation
Skill28 starsChanged 10 months agoApache-2.0View on GitHub
Document system architecture using C4 model with context, container, component views and Mermaid diagrams
In this repository41 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- ai-development-governanceSkill
- ai-governanceSkill
- architecture-documentationSkill
- aws-security-architectureSkill
- behavioral-analysisSkill
- business-model-canvasSkill
- code-quality-excellenceSkill
- compliance-frameworksSkill
- contribution-guidelinesSkill
- data-science-for-intelligenceSkill
- documentation-standardsSkill
- electoral-analysisSkill
- european-parliament-apiSkill
- european-political-systemSkill
- gdpr-complianceSkill
- github-actions-workflowsSkill
- github-agentic-workflowsSkill
- incident-responseSkill
- intelligence-analysis-techniquesSkill
- isms-complianceSkill
- legislative-monitoringSkill
- mcp-gateway-configurationSkill
- mcp-gateway-securitySkill
- mcp-server-developmentSkill
- open-source-governanceSkill
- osint-methodologiesSkill
- performance-optimizationSkill
- political-science-analysisSkill
- risk-assessment-frameworksSkill
- secrets-managementSkill
- secure-code-reviewSkill
- secure-development-lifecycleSkill
- security-by-designSkill
- seo-best-practicesSkill
- strategic-communication-analysisSkill
- testing-mcp-toolsSkill
- testing-strategySkill
- threat-modeling-frameworkSkill
- typescript-strict-patternsSkill
- vulnerability-managementSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Document MCP server architecture using C4 model for different abstraction levels with Mermaid diagrams.
- Very specific: line 82
Use graph TB for top-bottom flow diagrams
- Very specific: line 83
Use sequenceDiagram for interaction flows
- Very specific: line 84
Use stateDiagram-v2 for state machines
- Very specific: line 85
Use mindmap for conceptual relationships
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
C4 Architecture Documentation Skill
Purpose
Document MCP server architecture using C4 model for different abstraction levels with Mermaid diagrams.
When to Use
- ✅ Documenting system architecture (ARCHITECTURE.md)
- ✅ Security architecture documentation (SECURITY_ARCHITECTURE.md)
- ✅ Future architecture planning (FUTURE_ARCHITECTURE.md)
- ✅ Architecture decision records
- ✅ Onboarding new developers
Required Documentation Portfolio
Current State
| Document | Purpose |
| ARCHITECTURE.md | Complete C4 models (Context, Container, Component) |
| DATA_MODEL.md | Data structures, entities, relationships |
| FLOWCHART.md | Business process and data flows |
| STATEDIAGRAM.md | System state transitions and lifecycles |
| MINDMAP.md | System conceptual relationships |
| SWOT.md | Strategic analysis and positioning |
| SECURITY_ARCHITECTURE.md | Current security design and controls |
Future State
| Document | Purpose |
| FUTURE_ARCHITECTURE.md | Architectural evolution roadmap |
| FUTURE_DATA_MODEL.md | Enhanced data architecture plans |
| FUTURE_FLOWCHART.md | Improved process workflows |
| FUTURE_STATEDIAGRAM.md | Advanced state management |
| FUTURE_MINDMAP.md | Capability expansion plans |
| FUTURE_SWOT.md | Future strategic opportunities |
| FUTURE_SECURITY_ARCHITECTURE.md | Planned security improvements |
C4 Model Levels
Level 1: System Context
graph TB
User[AI Assistant/Developer] -->|MCP Protocol| Server[European Parliament MCP Server]
Server -->|REST API| EPAPI[European Parliament Open Data API]
Server -->|JSON-LD| EPData[EP Data Portal]Level 2: Container Diagram
graph TB
Client[MCP Client] -->|stdio/SSE| MCPServer[MCP Server - Node.js/TypeScript]
MCPServer -->|HTTP/JSON| EPClient[EP API Client]
EPClient -->|REST| EPAPI[data.europarl.europa.eu]
MCPServer -->|Zod| Schemas[Validation Schemas]Level 3: Component Diagram
graph TB
Tools[MCP Tools] --> Client[EP API Client]
Resources[MCP Resources] --> Client
Prompts[MCP Prompts] --> Client
Client --> Cache[LRU Cache]
Client --> RateLimiter[Rate Limiter]
Client --> Validator[Zod Schemas]Mermaid Diagram Standards
- Use
graph TBfor top-bottom flow diagrams - Use
sequenceDiagramfor interaction flows - Use
stateDiagram-v2for state machines - Use
mindmapfor conceptual relationships - Include legends and descriptions
ISMS Policy References
- Secure Development Policy - Architecture documentation requirements
- Information Security Policy - Security architecture governance
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

