agentleFS
Hack23Hack23/European-Parliament-MCP-Server/.github/skills/c4-architecture-documentation/SKILL.md

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

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
  1. Distinctive:

    Document MCP server architecture using C4 model for different abstraction levels with Mermaid diagrams.

    line 11
  2. Very specific:

    Use graph TB for top-bottom flow diagrams

    line 82
  3. Very specific:

    Use sequenceDiagram for interaction flows

    line 83
  4. Very specific:

    Use stateDiagram-v2 for state machines

    line 84
  5. Very specific:

    Use mindmap for conceptual relationships

    line 85

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

DocumentPurpose
ARCHITECTURE.mdComplete C4 models (Context, Container, Component)
DATA_MODEL.mdData structures, entities, relationships
FLOWCHART.mdBusiness process and data flows
STATEDIAGRAM.mdSystem state transitions and lifecycles
MINDMAP.mdSystem conceptual relationships
SWOT.mdStrategic analysis and positioning
SECURITY_ARCHITECTURE.mdCurrent security design and controls

Future State

DocumentPurpose
FUTURE_ARCHITECTURE.mdArchitectural evolution roadmap
FUTURE_DATA_MODEL.mdEnhanced data architecture plans
FUTURE_FLOWCHART.mdImproved process workflows
FUTURE_STATEDIAGRAM.mdAdvanced state management
FUTURE_MINDMAP.mdCapability expansion plans
FUTURE_SWOT.mdFuture strategic opportunities
FUTURE_SECURITY_ARCHITECTURE.mdPlanned 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 TB for top-bottom flow diagrams
  • Use sequenceDiagram for interaction flows
  • Use stateDiagram-v2 for state machines
  • Use mindmap for conceptual relationships
  • Include legends and descriptions

ISMS Policy References

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.