c4-context

Expert C4 Context-level documentation specialist. Creates high-level system context diagrams, documents personas, user journeys, system features, and external dependencies.

31,392 stars
Complexity: easy

About this skill

This skill transforms an AI agent into an expert C4 Context-level documentation specialist. It equips the agent with the knowledge and best practices to generate comprehensive system context diagrams, articulate user personas, map out user journeys, detail core system features, and identify crucial external dependencies. By leveraging this skill, the agent can provide clear guidance, apply relevant architectural best practices, and deliver actionable steps for creating foundational system documentation. It's particularly useful for the initial phases of software projects, when communicating the high-level scope and interactions of a system to stakeholders, or for onboarding new team members to a project's architecture.

Best use case

Designing new software systems; Onboarding new team members to a project's high-level architecture; Communicating system scope to stakeholders; Documenting existing systems for clarity and future planning; Providing architectural guidance at the highest level of abstraction.

Expert C4 Context-level documentation specialist. Creates high-level system context diagrams, documents personas, user journeys, system features, and external dependencies.

Well-structured C4 Context-level documentation, including system context diagrams, clearly defined personas, detailed user journey maps, identified core system features, and a comprehensive list of external dependencies. The agent will also provide best practices and actionable steps for generating this documentation, ensuring architectural clarity and consistency.

Practical example

Example input

Draft a C4 Context-level diagram and supporting documentation for a new e-commerce platform that connects buyers and sellers, integrates with Stripe for payments, and uses an external shipping API. Focus on the core system, its users, and its primary external interactions.

Example output

Based on your request, I will generate the C4 Context-level documentation for your e-commerce platform.

**1. System Context Diagram Outline:**
*   **System:** E-commerce Platform (Container: Web Application)
*   **Users:**
    *   Buyer (Person)
    *   Seller (Person)
    *   Administrator (Person)
*   **External Systems:**
    *   Stripe (External System: Payment Gateway)
    *   Shipping API (External System: Logistics Provider)
    *   Email Service (External System: Notification Provider)
*   **Relationships:**
    *   Buyer uses E-commerce Platform to browse, purchase items.
    *   Seller uses E-commerce Platform to list products, manage orders.
    *   Administrator uses E-commerce Platform to manage users, products, site settings.
    *   E-commerce Platform sends payment requests to Stripe.
    *   Stripe processes payments and notifies E-commerce Platform.
    *   E-commerce Platform sends shipping requests/updates to Shipping API.
    *   Shipping API provides shipping options/tracking to E-commerce Platform.
    *   E-commerce Platform sends various notifications via Email Service.

**2. Personas (High-Level):**
*   **Buyer Persona:** Focuses on discovering products, making secure purchases, and tracking orders.
*   **Seller Persona:** Focuses on listing products, managing inventory, fulfilling orders, and receiving payments.
*   **Administrator Persona:** Focuses on platform oversight, content moderation, and user support.

**3. User Journeys (Context-Level Examples):**
*   **Buyer Journey: Making a Purchase:** (Start: Browses products -> Selects item -> Adds to cart -> Proceeds to checkout -> Enters payment info -> Places order -> (End) Receives confirmation).
*   **Seller Journey: Listing a Product:** (Start: Logs in -> Navigates to 'Add Product' -> Enters product details -> Uploads images -> Sets price/inventory -> (End) Publishes product).

**4. System Features (Context Level):**
*   User Authentication & Authorization
*   Product Listing, Search & Discovery
*   Shopping Cart & Order Management
*   Payment Processing Integration
*   Shipping & Fulfillment Integration
*   User Profile Management
*   Admin Dashboard & Reporting

**5. External Dependencies:**
*   **Stripe:** For secure payment processing and financial transactions.
*   **[Specific Shipping Provider] API (e.g., FedEx, USPS, DHL):** For calculating shipping costs, generating labels, and tracking.
*   **[Specific Email Service] (e.g., SendGrid, Mailgun, AWS SES):** For sending transactional emails (order confirmations, shipping updates, password resets).

**Best Practices Applied:**
*   Adherence to C4 model's System Context level principles, focusing on the software system, users, and external systems.
*   Clear identification of the system's purpose and its primary interactions.
*   Concise, high-level descriptions suitable for non-technical stakeholders.

**Actionable Steps:**
1.  Review this outline and provide any clarifications or additional details.
2.  Specify preferred providers for the Shipping API and Email Service.
3.  Confirm readiness to proceed to the C4 Container-level for a more detailed breakdown of the E-commerce Platform's internal structure.

When to use this skill

  • Working on C4 Context-level: system context tasks or workflows.
  • Needing guidance, best practices, or checklists for C4 Context-level: system context.

When not to use this skill

  • The task is unrelated to C4 Context-level: system context.
  • You need a different domain or tool outside this scope (e.g., detailed code-level diagrams, specific coding tasks).

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/c4-context/SKILL.md --create-dirs "https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/main/plugins/antigravity-awesome-skills-claude/skills/c4-context/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/c4-context/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How c4-context Compares

Feature / Agentc4-contextStandard Approach
Platform SupportClaudeLimited / Varies
Context Awareness High Baseline
Installation ComplexityeasyN/A

Frequently Asked Questions

What does this skill do?

Expert C4 Context-level documentation specialist. Creates high-level system context diagrams, documents personas, user journeys, system features, and external dependencies.

Which AI agents support this skill?

This skill is designed for Claude.

How difficult is it to install?

The installation complexity is rated as easy. You can find the installation instructions above.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# C4 Context Level: System Context

## 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

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]

- **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](https://c4model.com/diagrams/system-context)):

- 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

Related Skills

documentation-generation-doc-generate

31392
from sickn33/antigravity-awesome-skills

You are a documentation expert specializing in creating comprehensive, maintainable documentation from code. Generate API docs, architecture diagrams, user guides, and technical references using AI-powered analysis and industry best practices.

DocumentationClaude

hig-project-context

31392
from sickn33/antigravity-awesome-skills

Create or update a shared Apple design context document that other HIG skills use to tailor guidance.

Design AssistantClaude

filesystem-context

31392
from sickn33/antigravity-awesome-skills

Use for file-based context management, dynamic context discovery, and reducing context window bloat. Offload context to files for just-in-time loading.

Memory & Context ManagementClaude

ddd-context-mapping

31392
from sickn33/antigravity-awesome-skills

Map relationships between bounded contexts and define integration contracts using DDD context mapping patterns.

Developer ToolsClaude

context7-auto-research

31392
from sickn33/antigravity-awesome-skills

Automatically fetch latest library/framework documentation for Claude Code via Context7 API. Use when you need up-to-date documentation for libraries and frameworks or asking about React, Next.js, Prisma, or any other popular library.

Developer ToolsClaude

context-optimization

31392
from sickn33/antigravity-awesome-skills

Context optimization extends the effective capacity of limited context windows through strategic compression, masking, caching, and partitioning. The goal is not to magically increase context windows but to make better use of available capacity.

Agent UtilityClaude

context-management-context-save

31392
from sickn33/antigravity-awesome-skills

Use when working with context management context save

Agent Management & PersonalizationClaude

context-management-context-restore

31392
from sickn33/antigravity-awesome-skills

Use when working with context management context restore

Memory ManagementClaude

context-guardian

31392
from sickn33/antigravity-awesome-skills

Guardiao de contexto que preserva dados criticos antes da compactacao automatica. Snapshots, verificacao de integridade e zero perda de informacao.

Agent Utilities & MonitoringClaudeCursorGemini

context-driven-development

31392
from sickn33/antigravity-awesome-skills

Guide for implementing and maintaining context as a managed artifact alongside code, enabling consistent AI interactions and team alignment through structured project documentation.

Software DevelopmentClaude

context-compression

31392
from sickn33/antigravity-awesome-skills

When agent sessions generate millions of tokens of conversation history, compression becomes mandatory. The naive approach is aggressive compression to minimize tokens per request.

Context ManagementClaude

context-agent

31392
from sickn33/antigravity-awesome-skills

Agente de contexto para continuidade entre sessoes. Salva resumos, decisoes, tarefas pendentes e carrega briefing automatico na sessao seguinte.

Memory ManagementClaudeCursorGemini