C4 Component Level: [Component Name]
Use this skill when
- Working on c4 component level: [component name] tasks or workflows
- Needing guidance, best practices, or checklists for c4 component level: [component name]
Do not use this skill when
- The task is unrelated to c4 component level: [component name]
- 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.
Overview
- Name: [Component name]
- Description: [Short description of component purpose]
- Type: [Component type: Application, Service, Library, etc.]
- Technology: [Primary technologies used]
Purpose
[Detailed description of what this component does and what problems it solves]
Software Features
Code Elements
This component contains the following code-level elements:
- c4-code-file-1.md - [Description]
- c4-code-file-2.md - [Description]
Interfaces
[Interface Name]
- Protocol: [REST/GraphQL/gRPC/Events/etc.]
- Description: [What this interface provides]
- Operations:
operationName(params): ReturnType - [Description]
Dependencies
Components Used
- [Component Name]: [How it's used]
External Systems
- [External System]: [How it's used]
Component Diagram
Use proper Mermaid C4Component syntax. Component diagrams show components within a single container:
C4Component
title Component Diagram for [Container Name]
Container_Boundary(container, "Container Name") {
Component(component1, "Component 1", "Type", "Description")
Component(component2, "Component 2", "Type", "Description")
ComponentDb(component3, "Component 3", "Database", "Description")
}
Container_Ext(externalContainer, "External Container", "Description")
System_Ext(externalSystem, "External System", "Description")
Rel(component1, component2, "Uses")
Rel(component2, component3, "Reads from and writes to")
Rel(component1, externalContainer, "Uses", "API")
Rel(component2, externalSystem, "Uses", "API")
Key Principles (from c4model.com):
- Show components within a single container (zoom into one container)
- Focus on logical components and their responsibilities
- Show component interfaces (what they expose)
- Show how components interact with each other
- Include external dependencies (other containers, external systems)
Master Component Index Template
# C4 Component Level: System Overview
## System Components
### [Component 1]
- **Name**: [Component name]
- **Description**: [Short description]
- **Documentation**: c4-component-name-1.md
### [Component 2]
- **Name**: [Component name]
- **Description**: [Short description]
- **Documentation**: c4-component-name-2.md
## Component Relationships
[Mermaid diagram showing all components and their relationships]
Example Interactions
- "Synthesize all c4-code-*.md files into logical components"
- "Define component boundaries for the authentication and authorization code"
- "Create component-level documentation for the API layer"
- "Identify component interfaces and create component diagrams"
- "Group database access code into components and document their relationships"
Key Distinctions
- vs C4-Code agent: Synthesizes multiple code files into components; Code agent documents individual code elements
- vs C4-Container agent: Focuses on logical grouping; Container agent maps components to deployment units
- vs C4-Context agent: Provides component-level detail; Context agent creates high-level system diagrams
Output Examples
When synthesizing components, provide:
- Clear component boundaries with rationale
- Descriptive component names and purposes
- Comprehensive feature lists for each component
- Complete interface documentation with protocols and operations
- Links to all contained c4-code-*.md files
- Mermaid component diagrams showing relationships
- Master component index with all components
- Consistent documentation format across all components
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-component3description: Expert C4 Component-level documentation specialist. Synthesizes C4 Code-level documentation into Component-level architecture, defining component boundaries, interfaces, and relationships. 4category: Document Processing5source: antigravity6tags: [markdown, api, ai, agent, workflow, template, document, cro]7url: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/c4-component8metadata:9 source: https://skillmd.com/skills/ranbot-ai/c4-component10---111213# C4 Component Level: [Component Name]1415## Use this skill when1617- Working on c4 component level: [component name] tasks or workflows18- Needing guidance, best practices, or checklists for c4 component level: [component name]1920## Do not use this skill when2122- The task is unrelated to c4 component level: [component name]23- You need a different domain or tool outside this scope2425## Instructions2627- Clarify goals, constraints, and required inputs.28- Apply relevant best practices and validate outcomes.29- Provide actionable steps and verification.3031## Overview3233- **Name**: [Component name]34- **Description**: [Short description of component purpose]35- **Type**: [Component type: Application, Service, Library, etc.]36- **Technology**: [Primary technologies used]3738## Purpose3940[Detailed description of what this component does and what problems it solves]4142## Software Features4344- [Feature 1]: [Description]45- [Feature 2]: [Description]46- [Feature 3]: [Description]4748## Code Elements4950This component contains the following code-level elements:5152- c4-code-file-1.md - [Description]53- c4-code-file-2.md - [Description]5455## Interfaces5657### [Interface Name]5859- **Protocol**: [REST/GraphQL/gRPC/Events/etc.]60- **Description**: [What this interface provides]61- **Operations**:62 - `operationName(params): ReturnType` - [Description]6364## Dependencies6566### Components Used6768- [Component Name]: [How it's used]6970### External Systems7172- [External System]: [How it's used]7374## Component Diagram7576Use proper Mermaid C4Component syntax. Component diagrams show components **within a single container**:7778```mermaid79C4Component80 title Component Diagram for [Container Name]8182 Container_Boundary(container, "Container Name") {83 Component(component1, "Component 1", "Type", "Description")84 Component(component2, "Component 2", "Type", "Description")85 ComponentDb(component3, "Component 3", "Database", "Description")86 }87 Container_Ext(externalContainer, "External Container", "Description")88 System_Ext(externalSystem, "External System", "Description")8990 Rel(component1, component2, "Uses")91 Rel(component2, component3, "Reads from and writes to")92 Rel(component1, externalContainer, "Uses", "API")93 Rel(component2, externalSystem, "Uses", "API")94```9596**Key Principles** (from [c4model.com](https://c4model.com/diagrams/component)):9798- Show components **within a single container** (zoom into one container)99- Focus on **logical components** and their responsibilities100- Show **component interfaces** (what they expose)101- Show how components **interact** with each other102- Include **external dependencies** (other containers, external systems)103104## Master Component Index Template105106````markdown107# C4 Component Level: System Overview108109## System Components110111### [Component 1]112- **Name**: [Component name]113- **Description**: [Short description]114- **Documentation**: c4-component-name-1.md115116### [Component 2]117- **Name**: [Component name]118- **Description**: [Short description]119- **Documentation**: c4-component-name-2.md120121## Component Relationships122[Mermaid diagram showing all components and their relationships]123````124125## Example Interactions126127- "Synthesize all c4-code-\*.md files into logical components"128- "Define component boundaries for the authentication and authorization code"129- "Create component-level documentation for the API layer"130- "Identify component interfaces and create component diagrams"131- "Group database access code into components and document their relationships"132133## Key Distinctions134135- **vs C4-Code agent**: Synthesizes multiple code files into components; Code agent documents individual code elements136- **vs C4-Container agent**: Focuses on logical grouping; Container agent maps components to deployment units137- **vs C4-Context agent**: Provides component-level detail; Context agent creates high-level system diagrams138139## Output Examples140141When synthesizing components, provide:142143- Clear component boundaries with rationale144- Descriptive component names and purposes145- Comprehensive feature lists for each component146- Complete interface documentation with protocols and operations147- Links to all contained c4-code-\*.md files148- Mermaid component diagrams showing relationships149- Master component index with all components150- Consistent documentation format across all components151152## Limitations153- Use this skill only when the task clearly matches the scope described above.154- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.155- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.