C4 Context Level: System Context
Selective Reading Rule
Start with:
references/senior-master-standard.md
references/usage-routing.md
references/quality-checklist.md
Then load only the inherited docs, scripts, assets, or examples that match the user's actual task.
Use this skill when
- Working on c4 context level: system context tasks or workflows
- Needing guidance, best practices, or checklists for c4 context level: system context
Do not use this skill when
- The task is unrelated to c4 context level: system context
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open
resources/implementation-playbook.md.
System Overview
Short Description
[One-sentence description of what the system does]
Long Description
[Detailed description of the system's purpose, capabilities, and the problems it solves]
Personas
[Persona Name]
- Type: [Human User / Programmatic User / External System]
- Description: [Who this persona is and what they need]
- Goals: [What this persona wants to achieve]
- Key Features Used: [List of features this persona uses]
System Features
[Feature Name]
- Description: [What this feature does]
- Users: [Which personas use this feature]
- User Journey: [Link to user journey map]
User Journeys
[Feature Name] - [Persona Name] Journey
- ...
[External System] Integration Journey
- ...
External Systems and Dependencies
[External System Name]
- Type: [Database, API, Service, Message Queue, etc.]
- Description: [What this external system provides]
- Integration Type: [API, Events, File Transfer, etc.]
- Purpose: [Why the system depends on this]
System Context Diagram
[Mermaid diagram showing system, users, and external systems]
Related Documentation
- Container Documentation
- Component Documentation
## Context Diagram Template
According to the [C4 model](https://c4model.com/diagrams/system-context), a System Context diagram shows the system as a box in the center, surrounded by its users and the other systems that it interacts with. The focus is on **people (actors, roles, personas) and software systems** rather than technologies, protocols, and other low-level details.
Use proper Mermaid C4 syntax:
```mermaid
C4Context
title System Context Diagram
Person(user, "User", "Uses the system to accomplish their goals")
System(system, "System Name", "Provides features X, Y, and Z")
System_Ext(external1, "External System 1", "Provides service A")
System_Ext(external2, "External System 2", "Provides service B")
SystemDb(externalDb, "External Database", "Stores data")
Rel(user, system, "Uses")
Rel(system, external1, "Uses", "API")
Rel(system, external2, "Sends events to")
Rel(system, externalDb, "Reads from and writes to")
Key Principles (from c4model.com):
- Focus on people and software systems, not technologies
- Show the system boundary clearly
- Include all users (human and programmatic)
- Include all external systems the system interacts with
- Keep it stakeholder-friendly - understandable by non-technical audiences
- Avoid showing technologies, protocols, or low-level details
Example Interactions
- "Create C4 Context-level documentation for the system"
- "Identify all personas and create user journey maps for key features"
- "Document external systems and create a system context diagram"
- "Analyze system documentation and create comprehensive context documentation"
- "Map user journeys for all key features including programmatic users"
Key Distinctions
- vs C4-Container agent: Provides high-level system view; Container agent focuses on deployment architecture
- vs C4-Component agent: Focuses on system context; Component agent focuses on logical component structure
- vs C4-Code agent: Provides stakeholder-friendly overview; Code agent provides technical code details
Output Examples
When creating context documentation, provide:
- Clear system descriptions (short and long)
- Comprehensive persona documentation (human and programmatic)
- Complete feature lists with descriptions
- Detailed user journey maps for all key features
- Complete external system and dependency documentation
- Mermaid context diagram showing system, users, and external systems
- Links to container and component documentation
- Stakeholder-friendly documentation understandable by non-technical audiences
- Consistent documentation format
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
1---2name: c4-context3description: ALWAYS use this when the request matches C4 Context: Expert C4 Context-level documentation specialist.4---56# C4 Context Level: System Context78## Selective Reading Rule910Start with:1112- `references/senior-master-standard.md`13- `references/usage-routing.md`14- `references/quality-checklist.md`1516Then load only the inherited docs, scripts, assets, or examples that match the user's actual task.1718## Use this skill when1920- Working on c4 context level: system context tasks or workflows21- Needing guidance, best practices, or checklists for c4 context level: system context2223## Do not use this skill when2425- The task is unrelated to c4 context level: system context26- You need a different domain or tool outside this scope2728## Instructions2930- Clarify goals, constraints, and required inputs.31- Apply relevant best practices and validate outcomes.32- Provide actionable steps and verification.33- If detailed examples are required, open `resources/implementation-playbook.md`.3435## System Overview3637### Short Description3839[One-sentence description of what the system does]4041### Long Description4243[Detailed description of the system's purpose, capabilities, and the problems it solves]4445## Personas4647### [Persona Name]4849- **Type**: [Human User / Programmatic User / External System]50- **Description**: [Who this persona is and what they need]51- **Goals**: [What this persona wants to achieve]52- **Key Features Used**: [List of features this persona uses]5354## System Features5556### [Feature Name]5758- **Description**: [What this feature does]59- **Users**: [Which personas use this feature]60- **User Journey**: [Link to user journey map]6162## User Journeys6364### [Feature Name] - [Persona Name] Journey65661. [Step 1]: [Description]672. [Step 2]: [Description]683. [Step 3]: [Description]69 ...7071### [External System] Integration Journey72731. [Step 1]: [Description]742. [Step 2]: [Description]75 ...7677## External Systems and Dependencies7879### [External System Name]8081- **Type**: [Database, API, Service, Message Queue, etc.]82- **Description**: [What this external system provides]83- **Integration Type**: [API, Events, File Transfer, etc.]84- **Purpose**: [Why the system depends on this]8586## System Context Diagram8788[Mermaid diagram showing system, users, and external systems]8990## Related Documentation9192- Container Documentation93- Component Documentation94```9596## Context Diagram Template9798According to the [C4 model](https://c4model.com/diagrams/system-context), a System Context diagram shows the system as a box in the center, surrounded by its users and the other systems that it interacts with. The focus is on **people (actors, roles, personas) and software systems** rather than technologies, protocols, and other low-level details.99100Use proper Mermaid C4 syntax:101102```mermaid103C4Context104 title System Context Diagram105106 Person(user, "User", "Uses the system to accomplish their goals")107 System(system, "System Name", "Provides features X, Y, and Z")108 System_Ext(external1, "External System 1", "Provides service A")109 System_Ext(external2, "External System 2", "Provides service B")110 SystemDb(externalDb, "External Database", "Stores data")111112 Rel(user, system, "Uses")113 Rel(system, external1, "Uses", "API")114 Rel(system, external2, "Sends events to")115 Rel(system, externalDb, "Reads from and writes to")116```117118**Key Principles** (from [c4model.com](https://c4model.com/diagrams/system-context)):119120- Focus on **people and software systems**, not technologies121- Show the **system boundary** clearly122- Include all **users** (human and programmatic)123- Include all **external systems** the system interacts with124- Keep it **stakeholder-friendly** - understandable by non-technical audiences125- Avoid showing technologies, protocols, or low-level details126127## Example Interactions128129- "Create C4 Context-level documentation for the system"130- "Identify all personas and create user journey maps for key features"131- "Document external systems and create a system context diagram"132- "Analyze system documentation and create comprehensive context documentation"133- "Map user journeys for all key features including programmatic users"134135## Key Distinctions136137- **vs C4-Container agent**: Provides high-level system view; Container agent focuses on deployment architecture138- **vs C4-Component agent**: Focuses on system context; Component agent focuses on logical component structure139- **vs C4-Code agent**: Provides stakeholder-friendly overview; Code agent provides technical code details140141## Output Examples142143When creating context documentation, provide:144145- Clear system descriptions (short and long)146- Comprehensive persona documentation (human and programmatic)147- Complete feature lists with descriptions148- Detailed user journey maps for all key features149- Complete external system and dependency documentation150- Mermaid context diagram showing system, users, and external systems151- Links to container and component documentation152- Stakeholder-friendly documentation understandable by non-technical audiences153- Consistent documentation format154155## Limitations156- Use this skill only when the task clearly matches the scope described above.157- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.158- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.