src/autoskillit/skills_extended/arch-lens-c4-container/SKILL.md
Create C4 Container architecture diagram showing static structure, building blocks, and technology choices. Anatomical lens answering "How is it built?"
npx skillsauth add talont-org/autoskillit arch-lens-c4-containerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Cognitive Mode: Anatomical Primary Question: "How is it built?" Focus: Static Structure, Containers, Technology Choices, External Integrations
/autoskillit:arch-lens-c4-container or /autoskillit:make-arch-diag c4NEVER:
run_in_background: true is prohibited)ALWAYS:
/autoskillit:mermaid skill using the Skill tool - this is MANDATORYtemp/arch-lens-c4-container/...
save path to absolute by prepending the full CWD:
diagram_path = /absolute/cwd/temp/arch-lens-c4-container/{filename}.md
This token is MANDATORY — the pipeline cannot proceed without it./autoskillit:arch-lens-c4-container [context_path]
If a context_path positional argument is present:
context_pathIf no context_path is provided, skip this step and explore the full CWD in Step 1.
Spawn Explore subagents to investigate:
Application Layer
Service/Business Logic Layer
Package/Library Layer
Data Storage Layer
External Integrations
For each container discovered, document:
Identify connections between containers:
CRITICAL - Analyze Read/Write Direction: For EVERY component and connection, determine:
Label connections with direction:
--> with "reads" or "queries" for read operations--> with "writes" or "saves" for write operations<--> for bidirectionalDo NOT place write-only artifacts under "state tracking" or "source of truth" categories.
Use the mermaid skill conventions to create a diagram with:
Direction: TB (top-to-bottom) for hierarchical container layout
Subgraphs for Layers:
Node Styling:
cli class: CLI, user interfaces, entry pointsphase class: Services, core processinghandler class: Packages, shared utilitiesstateNode class: Databases, storageintegration class: External APIs, third-party servicesConnections:
Write the diagram to: {{AUTOSKILLIT_TEMP}}/arch-lens-c4-container/arch_diag_c4_container_{YYYY-MM-DD_HHMMSS}.md (relative to the current working directory)
After writing the diagram file, emit a structured output line:
IMPORTANT: Emit the structured output tokens as literal plain text with no markdown formatting on the token names. Do not wrap token names in
**bold**,*italic*, or any other markdown. The adjudicator performs a regex match on the exact token name — decorators cause match failure.
diagram_path = {absolute_path_to_diagram_file}
# C4 Container Diagram: {Project Name}
**Lens:** C4 Container (Anatomical)
**Question:** How is it built?
**Date:** {YYYY-MM-DD}
**Scope:** {What was analyzed}
## Container Overview
| Container | Technology | Responsibility |
|-----------|------------|----------------|
| {name} | {tech} | {responsibility} |
## Architecture Diagram
```mermaid
%%{init: {'flowchart': {'nodeSpacing': 50, 'rankSpacing': 60, 'curve': 'basis'}}}%%
graph TB
%% CLASS DEFINITIONS %%
classDef cli fill:#1a237e,stroke:#7986cb,stroke-width:2px,color:#fff;
classDef stateNode fill:#004d40,stroke:#4db6ac,stroke-width:2px,color:#fff;
classDef handler fill:#e65100,stroke:#ffb74d,stroke-width:2px,color:#fff;
classDef phase fill:#6a1b9a,stroke:#ba68c8,stroke-width:2px,color:#fff;
classDef output fill:#00695c,stroke:#4db6ac,stroke-width:2px,color:#fff;
classDef integration fill:#c62828,stroke:#ef9a9a,stroke-width:2px,color:#fff;
%% USER %%
USER(["User<br/>━━━━━━━━━━<br/>Role description"])
subgraph Apps ["Application Layer"]
direction TB
APP1["Container Name<br/>━━━━━━━━━━<br/>Technology<br/>Responsibility"]
end
subgraph Services ["Service Layer"]
direction TB
SVC1["Container Name<br/>━━━━━━━━━━<br/>Technology<br/>Responsibility"]
end
subgraph Packages ["Shared Packages"]
direction TB
PKG1["Package Name<br/>━━━━━━━━━━<br/>Technology<br/>Responsibility"]
end
subgraph Storage ["Data Storage"]
direction TB
DB1[("Database<br/>━━━━━━━━━━<br/>Technology<br/>Purpose")]
end
subgraph External ["External Systems"]
direction TB
EXT1["External Service<br/>━━━━━━━━━━<br/>Protocol<br/>Purpose"]
end
%% CONNECTIONS %%
USER --> APP1
APP1 --> SVC1
SVC1 --> PKG1
SVC1 --> DB1
SVC1 --> EXT1
%% CLASS ASSIGNMENTS %%
class USER cli;
class APP1 cli;
class SVC1 phase;
class PKG1 handler;
class DB1 stateNode;
class EXT1 integration;
Color Legend: | Color | Category | Description | |-------|----------|-------------| | Dark Blue | CLI/Apps | User-facing applications and entry points | | Purple | Services | Core business logic and services | | Orange | Packages | Shared utilities and libraries | | Teal | Storage | Database persistence layers | | Red | External | External integrations and APIs |
| Container | Responsibility | Technology | |-----------|---------------|------------| | {container} | {what it does} | {tech stack} |
---
## Pre-Diagram Checklist
Before creating the diagram, verify:
- [ ] LOADED `/autoskillit:mermaid` skill using the Skill tool
- [ ] Using ONLY classDef styles from the mermaid skill (no invented colors)
- [ ] Diagram will include a color legend table
---
## Related Skills
- `/autoskillit:make-arch-diag` - Parent skill for lens selection
- `/autoskillit:mermaid` - MUST BE LOADED before creating diagram
- `/autoskillit:arch-lens-module-dependency` - For detailed coupling analysis
- `/autoskillit:arch-lens-deployment` - For physical deployment topology
development
Generate YAML recipes for .autoskillit/recipes/. Use when user says "make script skill", "generate script", "script a workflow", "write a script", "create a script", "new recipe", "write a pipeline", or when loaded by other skills for script formatting.
data-ai
Create Uncertainty Representation visualization planning spec showing error bar definitions, distribution-aware alternatives, and multi-seed variance protocols. Statistical lens answering "How is uncertainty honestly represented?"
data-ai
Create Temporal Dynamics visualization planning spec showing axis scaling (linear vs log), smoothing disclosure, epoch/step alignment, run aggregation (mean + variance bands), early-stopping markers, and wall-clock vs step-count x-axis. Temporal lens answering "Are training dynamics shown clearly and honestly?"
data-ai
Create Narrative Story Arc visualization planning spec showing visual consistency across the report (same color = same model everywhere), logical figure progression, redundant figure detection, and narrative dependency between figures. Narrative lens answering "Do the figures tell a coherent story across the report?"