agentsclimarketplace

C4 level1 context

Skill kinhluan/skills/.agent-skills/c4-level1-context

πŸš€ Professional Multi-Agent Skills

Install
npx -y skills add kinhluan/skills --skill c4-level1-context

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Specialized in System Context diagrams (Level 1) with User Journey integration. Use this skill when the user requests high-level architecture, business value mapping, identifying system scope, or describing interactions between stakeholders and external systems.

SKILL.md

9.9 KB, as published. Nobody here has run it

C4 Level 1: System Context & User Journeys

Level 1 focuses on the Big Picture. It bridges the gap between Business Value and Technology by mapping User Journeys to System Scope.

"A System Context diagram can be a useful starting point for diagramming and documenting a software system, allowing you to step back and see the big picture." β€” Simon Brown


🎯 Stakeholder Focus

StakeholderWhat they need from L1Questions they ask
ExecutivesValue delivery, cost, risk"What does this system do? Who uses it?"
Product ManagersFeature scope, external dependencies"What third-party systems do we depend on?"
DevelopersHigh-level context, data flow"Where does user data come from? Where does it go?"
Security AuditorsTrust boundaries, data exposure"What sensitive data leaves our system?"

🚢 User Journey Integration

Instead of a static diagram, frame Level 1 around a Primary User Journey:

The Journey Mapping Method

Step 1: Identify the Primary Actor
        ↓
Step 2: Define their Goal (the "Job-to-be-Done")
        ↓
Step 3: Trace the Happy Path across systems
        ↓
Step 4: Label interactions with Action Verbs
        ↓
Step 5: Identify external systems touched

Example: E-Commerce "Buy Product" Journey

[Customer] ──"Searches for"──▢ [Product Catalog System]
     β”‚
     β”œβ”€β”€"Adds to cart"──▢ [Shopping Cart System]
     β”‚
     β”œβ”€β”€"Checks out via"──▢ [Order System]
     β”‚         β”‚
     β”‚         β”œβ”€β”€"Requests payment from"──▢ [Payment Gateway]
     β”‚         β”‚
     β”‚         └──"Notifies"──▢ [Notification Service]
     β”‚                   β”‚
     β”‚                   └──"Sends email via"──▢ [Email Provider]
     β”‚
     └──"Tracks order via"──▢ [Logistics System]

Action Verb Rule: Every arrow must answer "What does the actor DO?" not "What is the connection?"

❌ Badβœ… Good
"Uses""Browses products via"
"Connects to""Submits payment to"
"Sends data""Publishes order event to"

πŸ—οΈ L1 Diagram Structure

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    SYSTEM CONTEXT                            β”‚
β”‚                                                              β”‚
β”‚   [Person: Actor]                                            β”‚
β”‚        β”‚                                                     β”‚
β”‚        β”‚ "Action verb describing interaction"                β”‚
β”‚        β–Ό                                                     β”‚
β”‚   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                    β”‚
β”‚   β”‚  [Software System: YOUR SYSTEM]    β”‚                    β”‚
β”‚   β”‚  "One-sentence description of       β”‚                    β”‚
β”‚   β”‚   what value it provides"           β”‚                    β”‚
β”‚   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                    β”‚
β”‚        β”‚                                                     β”‚
β”‚        β”‚ "Action verb"                                       β”‚
β”‚        β–Ό                                                     β”‚
β”‚   [System_Ext: External System]                              β”‚
β”‚   "What it does for your system"                             β”‚
β”‚                                                              β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ“ Mermaid Templates

Template A: Simple B2C System

C4Context
    title System Context Diagram for E-Commerce Platform

    Person(customer, "Customer", "Registered user who browses and purchases products.")

    System(ecommerce, "E-Commerce Platform", "Allows customers to browse products, manage carts, and place orders.")

    System_Ext(payment, "Payment Gateway", "Processes credit card and digital wallet payments.")
    System_Ext(email, "Email Service", "Sends transactional emails (order confirmations, shipping updates).")
    System_Ext(analytics, "Analytics Platform", "Tracks user behavior and generates reports.")

    Rel(customer, ecommerce, "Browses products, places orders", "HTTPS/Web")
    Rel(ecommerce, payment, "Processes payments", "REST API/HTTPS")
    Rel(ecommerce, email, "Sends notifications", "REST API/HTTPS")
    Rel(ecommerce, analytics, "Reports events", "HTTPS/JSON")

Template B: B2B Platform with Multiple Actors

C4Context
    title System Context Diagram for SaaS HR Platform

    Person(hr_manager, "HR Manager", "Manages employee onboarding and offboarding.")
    Person(employee, "Employee", "Views payslips, requests time off.")
    Person(payroll_admin, "Payroll Admin", "Processes monthly payroll.")

    System(hr_platform, "HR Platform", "Manages employee data, payroll, and time tracking.")

    System_Ext(bank, "Bank API", "Executes salary transfers.")
    System_Ext(tax_authority, "Tax Authority", "Reports payroll taxes.")
    System_Ext(identity_provider, "Identity Provider", "Handles SSO authentication.")

    Rel(hr_manager, hr_platform, "Manages employees", "HTTPS/Web")
    Rel(employee, hr_platform, "Views personal data", "HTTPS/Web")
    Rel(payroll_admin, hr_platform, "Runs payroll", "HTTPS/Web")
    Rel(hr_platform, bank, "Transfers salaries", "REST API/HTTPS")
    Rel(hr_platform, tax_authority, "Reports taxes", "REST API/HTTPS")
    Rel(hr_platform, identity_provider, "Authenticates users", "SAML/OAuth")

Template C: Internal System (No External Users)

C4Context
    title System Context Diagram for Data Pipeline

    Person(data_engineer, "Data Engineer", "Monitors and maintains the pipeline.")

    System(pipeline, "ETL Pipeline", "Extracts data from sources, transforms, and loads to warehouse.")

    System_Ext(crm, "CRM System", "Source of customer data.")
    System_Ext(warehouse, "Data Warehouse", "Destination for processed data.")
    System_Ext(monitoring, "Monitoring System", "Alerts on pipeline failures.")

    Rel(data_engineer, pipeline, "Monitors and configures", "Internal Tool")
    Rel(crm, pipeline, "Pushes data to", "Webhooks/HTTPS")
    Rel(pipeline, warehouse, "Loads transformed data to", "SQL/TCP")
    Rel(pipeline, monitoring, "Reports health metrics to", "Metrics API")

🎀 Stakeholder Interview Questions

Before drawing L1, ask these questions:

For Business Stakeholders

  1. "Who are the primary users of this system?" (Persons)
  2. "What is the one thing they come here to do?" (Primary journey)
  3. "What other systems does ours need to talk to?" (External systems)
  4. "What data enters our system? What data leaves?" (Data flow)
  5. "What would happen if [external system] went down?" (Criticality)

For Technical Stakeholders

  1. "What authentication/identity system do users come from?" (Identity provider)
  2. "Where do we send notifications/emails?" (Communication)
  3. "What third-party APIs do we call?" (External dependencies)
  4. "Is there a data warehouse or analytics platform?" (Data consumers)
  5. "Are there regulatory/reporting requirements?" (Compliance systems)

🚫 Anti-Patterns to Guard (Level 1)

Anti-PatternSymptomFix
Tech Leakage"React", "PostgreSQL", "Kafka" appear in diagramRemove all technology names. Use "Product Catalog" not "PostgreSQL"
Container Confusion"Web App", "API", "Database" boxes appearThose are L2. L1 only has the system boundary
Diagram Bloat>15 elementsSplit into multiple views: "Customer Journey", "Admin Journey"
Passive ArrowsLabels like "uses", "connects to"Use active verbs: "places order via", "receives invoice from"
Missing DescriptionsBoxes with only namesEvery element needs a one-sentence description
Orphan SystemsExternal systems with no relationshipEither connect them or remove them

βœ… Level 1 Success Criteria

  • Is it clear who the primary user is?
  • Does it answer "What value does this system provide?"
  • Are all external systems (third-party) identified?
  • Are relationships labeled with action verbs?
  • Does a non-technical person understand the whole diagram in 30 seconds?
  • STRICT: Is it free from all technical/implementation details?
  • STRICT: Does it have ≀15 elements?

πŸ”„ From L1 to L2

When you're ready to zoom in, use these signals:

L1 SignalL2 Action
"Our system does X, Y, and Z"Split into 3 containers (one per capability)
"We have a web app and mobile app"Two containers: Web App + Mobile App
"Data is stored in..."Database container
"Background jobs process..."Worker/Job processor container
"We use [external service] for..."Keep as System_Ext in L2, add protocol

Next: Use c4-level2-container to decompose your system into deployable units.


πŸ“š References

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.