C4 context

From FrancoStino/opencode-skills-collection · View interactive version

C4 context is an AI agent skill from the GitHub repository FrancoStino/opencode-skills-collection. Expert C4 Context-level documentation specialist. Creates high-level system context diagrams, documents personas, user journeys, system features, and external dependencies.

How to use this skill

Skill file

C4 Context Level: System Context

Use this skill when

Do not use this skill when

Instructions

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]

System Features

[Feature Name]

User Journeys

[Feature Name] - [Persona Name] Journey

  1. [Step 1]: [Description]
  2. [Step 2]: [Description]
  3. [Step 3]: [Description]

...

[External System] Integration Journey

  1. [Step 1]: [Description]
  2. [Step 2]: [Description]

...

External Systems and Dependencies

[External System Name]

System Context Diagram

[Mermaid diagram showing system, users, and external systems]

Related 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:

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")

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.