xiaohongshu
xiaohongshu
c3-container-design
Use when changes affect component organization, technology stack, or cross-container communication - triggered by new components, pattern changes, or needing to map external interfaces to internal components
Full skill instructions
STOP - Before ANY container-level work, execute:
# Load parent Context (REQUIRED - containers inherit from here) cat .c3/README.md 2>/dev/null || echo "NO_CONTEXT" # Load current container (if exists) cat .c3/c3-{N}-*/README.md 2>/dev/null || echo "NO_CONTAINER_DOC" # Load settings cat .c3/settings.yaml 2>/dev/null || echo "NO_SETTINGS"
Based on output:
⚠️ DO NOT read ADRs unless user specifically asks:
Why this gate exists: Containers INHERIT from Context. Proposing changes without understanding inherited constraints causes conflicts.
Self-check before proceeding:
The Container level is the architectural command center of C3:
Position: MIDDLE (c3-{N}) | Parent: Context (c3-0) | Children: Components (c3-{N}NN)
📁 File Location: Container is .c3/c3-{N}-{slug}/README.md - a folder with README inside.
Announce: "I'm using the c3-container-design skill to explore Container-level impact."
Upper layer defines WHAT. Lower layer implements HOW.
At Container level:
Integrity rules:
| Archetype | Relationship | Typical Components |
|---|---|---|
| Service | Creates/processes | Handlers, Services, Adapters |
| Data | Stores/structures | Schema, Indexes, Migrations |
| Boundary | Interface to external | Contract, Client, Fallback |
| Platform | Operates on containers | CI/CD, Deployment, Networking |
| Include (Container Level) | Exclude (Push Up/Down) |
|---|---|
| Component responsibilities | WHY container exists (Context) |
| Component relationships | HOW components work internally (Component) |
| Data flows between components | Code references |
| Business flows | File paths |
| Inner patterns |
Litmus test: "Is this about WHAT components do and HOW they relate to each other?"
From loaded Context, extract for this container:
| Direction | Action |
|---|---|
| Upstream | New protocol/boundary violation → Escalate to c3-context-design |
| Isolated | Stack/pattern/API/org change → Document here |
| Adjacent | Component-to-component impact → Coordinate |
| Downstream | New/changed components → Delegate to c3-component-design |
By archetype:
See container-template.md for complete structure with frontmatter, diagrams, and examples.
Required sections:
Container level REQUIRES two diagrams:
Use Mermaid only - no ASCII art.
Rule: Output MUST match template structure exactly.
Required sections (in order):
🚩 Red Flags:
Rule: Container docs MUST have both External and Internal diagrams.
# Verify both diagrams exist
grep -c '```mermaid' .c3/c3-{N}-*/README.md # Should be >= 2
Before claiming completion, execute:
# Verify container doc exists in correct location
ls .c3/c3-*-*/README.md
# Verify frontmatter
grep -E "^id:|^type:|^parent:" .c3/c3-{N}-*/README.md
# Verify BOTH mermaid diagrams exist
mermaid_count=$(grep -c '```mermaid' .c3/c3-{N}-*/README.md)
echo "Mermaid diagrams: $mermaid_count (need >= 2)"
At the end of container work, output a reading chain for components and related containers.
Format:
## 📚 To Go Deeper
This container (c3-N) contains:
**Components to explore:**
├─ c3-N01-{slug} - [responsibility, why it matters]
├─ c3-N02-{slug} - [responsibility, why it matters]
└─ ...
**Parent (inherited constraints):**
└─ c3-0 (Context) - [what this container inherits]
**Sibling containers (if coordination needed):**
└─ c3-M-{slug} - [why coordination matters]
*Reading chain generated from components listed in this Container.*
Rules:
flowchart TD
A[Analyze Change] --> B{New protocol or<br/>boundary violation?}
B -->|yes| C[Escalate to<br/>c3-context-design]
B -->|no| D{Component org<br/>change?}
D -->|yes| E[Delegate to<br/>c3-component-design]
D -->|no| F[Document at<br/>Container level]
| Excuse | Reality |
|---|---|
| "One diagram is enough" | External + Internal are BOTH required. Different purposes. |
| "I'll add diagrams later" | Diagrams drive understanding. Add during exploration, not after. |
| "Template too rigid" | Template is minimum. Add sections if needed, but don't skip required ones. |
| "This container is simple" | Simple containers still need both diagrams. Just smaller diagrams. |
| "Inherited section is obvious" | Make inheritance explicit. What's obvious to you isn't to readers. |
| "Layering doesn't apply here" | All containers have Foundation → Business layering. Show it. |
| Mistake | Fix |
|---|---|
| Missing External Relationships diagram | REQUIRED. Maps Context interfaces to owning components. |
| Missing Internal Structure diagram | REQUIRED. Shows Foundation → Business layering. |
| Not mapping interfaces to components | Add table: External Interface | Owning Component | Protocol |
| Duplicating Context content | Reference Context, don't repeat. Show component ownership. |
| Skipping layering rules | Always include Foundation/Business rules table. |
references/core-principle.md - The C3 principledefaults.md - Container layer rulesreferences/container-archetypes.md - Container typesreferences/diagram-decision-framework.md - When to use which diagramxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience