[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JHTT2ZZ76ZF0GKHV1B7QZQ":3,"skill-same:01M6JHTT2ZZ76ZF0GKHV1B7QZQ":84},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M6JHTT2ZZ76ZF0GKHV1B7QZQ","c4-architecture",null,"Generate architecture documentation using C4 model Mermaid diagrams. Use when asked to create architecture diagrams, document system architecture, visualize software structure, create C4 diagrams, or generate context\u002Fcontainer\u002Fcomponent\u002Fdeployment diagrams. Triggers include \"architecture diagram\", \"C4 diagram\", \"system context\", \"container diagram\", \"component diagram\", \"deployment diagram\", \"document architecture\", \"visualize architecture\".","transaurus\u002Fstaging-davila7-claude-code-templates","transaurus","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F210882017?v=4","01M6JH1R6ZCRXGJCTDP5ZKZBE6","Page Turner Agent","01M6JH1RBBR2P6Y0XWDGM4B0G7",0,"MIT","https:\u002F\u002Fgithub.com\u002Ftransaurus\u002Fstaging-davila7-claude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Fc4-architecture\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"architecture","c4 architecture","create","generate architecture","software","structure","diagrams","context","model","system","c4 diagrams","generate","visualize","deployment","architecture diagram","architecture diagrams","mermaid","diagram","documentation","component","2026-11-10 10:12:30",false,"---\nname: c4-architecture\ndescription: Generate architecture documentation using C4 model Mermaid diagrams. Use when asked to create architecture diagrams, document system architecture, visualize software structure, create C4 diagrams, or generate context\u002Fcontainer\u002Fcomponent\u002Fdeployment diagrams. Triggers include \"architecture diagram\", \"C4 diagram\", \"system context\", \"container diagram\", \"component diagram\", \"deployment diagram\", \"document architecture\", \"visualize architecture\".\n---\n\n# C4 Architecture Documentation\n\nGenerate software architecture documentation using C4 model diagrams in Mermaid syntax.\n\n## Workflow\n\n1. **Understand scope** - Determine which C4 level(s) are needed based on audience\n2. **Analyze codebase** - Explore the system to identify components, containers, and relationships\n3. **Generate diagrams** - Create Mermaid C4 diagrams at appropriate abstraction levels\n4. **Document** - Write diagrams to markdown files with explanatory context\n\n## C4 Diagram Levels\n\nSelect the appropriate level based on the documentation need:\n\n| Level | Diagram Type | Audience | Shows | When to Create |\n|-------|-------------|----------|-------|----------------|\n| 1 | **C4Context** | Everyone | System + external actors | Always (required) |\n| 2 | **C4Container** | Technical | Apps, databases, services | Always (required) |\n| 3 | **C4Component** | Developers | Internal components | Only if adds value |\n| 4 | **C4Deployment** | DevOps | Infrastructure nodes | For production systems |\n| - | **C4Dynamic** | Technical | Request flows (numbered) | For complex workflows |\n\n**Key Insight:** \"Context + Container diagrams are sufficient for most software development teams.\" Only create Component\u002FCode diagrams when they genuinely add value.\n\n## Quick Start Examples\n\n### System Context (Level 1)\n```mermaid\nC4Context\n  title System Context - Workout Tracker\n\n  Person(user, \"User\", \"Tracks workouts and exercises\")\n  System(app, \"Workout Tracker\", \"Vue PWA for tracking strength and CrossFit workouts\")\n  System_Ext(browser, \"Web Browser\", \"Stores data in IndexedDB\")\n\n  Rel(user, app, \"Uses\")\n  Rel(app, browser, \"Persists data to\", \"IndexedDB\")\n```\n\n### Container Diagram (Level 2)\n```mermaid\nC4Container\n  title Container Diagram - Workout Tracker\n\n  Person(user, \"User\", \"Tracks workouts\")\n\n  Container_Boundary(app, \"Workout Tracker PWA\") {\n    Container(spa, \"SPA\", \"Vue 3, TypeScript\", \"Single-page application\")\n    Container(pinia, \"State Management\", \"Pinia\", \"Manages application state\")\n    ContainerDb(indexeddb, \"IndexedDB\", \"Dexie\", \"Local workout storage\")\n  }\n\n  Rel(user, spa, \"Uses\")\n  Rel(spa, pinia, \"Reads\u002Fwrites state\")\n  Rel(pinia, indexeddb, \"Persists\", \"Dexie ORM\")\n```\n\n### Component Diagram (Level 3)\n```mermaid\nC4Component\n  title Component Diagram - Workout Feature\n\n  Container(views, \"Views\", \"Vue Router pages\")\n\n  Container_Boundary(workout, \"Workout Feature\") {\n    Component(useWorkout, \"useWorkout\", \"Composable\", \"Workout execution state\")\n    Component(useTimer, \"useTimer\", \"Composable\", \"Timer state machine\")\n    Component(workoutRepo, \"WorkoutRepository\", \"Dexie\", \"Workout persistence\")\n  }\n\n  Rel(views, useWorkout, \"Uses\")\n  Rel(useWorkout, useTimer, \"Controls\")\n  Rel(useWorkout, workoutRepo, \"Saves to\")\n```\n\n### Dynamic Diagram (Request Flow)\n```mermaid\nC4Dynamic\n  title Dynamic Diagram - User Sign In Flow\n\n  ContainerDb(db, \"Database\", \"PostgreSQL\", \"User credentials\")\n  Container(spa, \"Single-Page App\", \"React\", \"Banking UI\")\n\n  Container_Boundary(api, \"API Application\") {\n    Component(signIn, \"Sign In Controller\", \"Express\", \"Auth endpoint\")\n    Component(security, \"Security Service\", \"JWT\", \"Validates credentials\")\n  }\n\n  Rel(spa, signIn, \"1. Submit credentials\", \"JSON\u002FHTTPS\")\n  Rel(signIn, security, \"2. Validate\")\n  Rel(security, db, \"3. Query user\", \"SQL\")\n\n  UpdateRelStyle(spa, signIn, $textColor=\"blue\", $offsetY=\"-30\")\n```\n\n### Deployment Diagram\n```mermaid\nC4Deployment\n  title Deployment Diagram - Production\n\n  Deployment_Node(browser, \"Customer Browser\", \"Chrome\u002FFirefox\") {\n    Container(spa, \"SPA\", \"React\", \"Web application\")\n  }\n\n  Deployment_Node(aws, \"AWS Cloud\", \"us-east-1\") {\n    Deployment_Node(ecs, \"ECS Cluster\", \"Fargate\") {\n      Container(api, \"API Service\", \"Node.js\", \"REST API\")\n    }\n    Deployment_Node(rds, \"RDS\", \"db.r5.large\") {\n      ContainerDb(db, \"Database\", \"PostgreSQL\", \"Application data\")\n    }\n  }\n\n  Rel(spa, api, \"API calls\", \"HTTPS\")\n  Rel(api, db, \"Reads\u002Fwrites\", \"JDBC\")\n```\n\n## Element Syntax\n\n### People and Systems\n```\nPerson(alias, \"Label\", \"Description\")\nPerson_Ext(alias, \"Label\", \"Description\")       # External person\nSystem(alias, \"Label\", \"Description\")\nSystem_Ext(alias, \"Label\", \"Description\")       # External system\nSystemDb(alias, \"Label\", \"Description\")         # Database system\nSystemQueue(alias, \"Label\", \"Description\")      # Queue system\n```\n\n### Containers\n```\nContainer(alias, \"Label\", \"Technology\", \"Description\")\nContainer_Ext(alias, \"Label\", \"Technology\", \"Description\")\nContainerDb(alias, \"Label\", \"Technology\", \"Description\")\nContainerQueue(alias, \"Label\", \"Technology\", \"Description\")\n```\n\n### Components\n```\nComponent(alias, \"Label\", \"Technology\", \"Description\")\nComponent_Ext(alias, \"Label\", \"Technology\", \"Description\")\nComponentDb(alias, \"Label\", \"Technology\", \"Description\")\n```\n\n### Boundaries\n```\nEnterprise_Boundary(alias, \"Label\") { ... }\nSystem_Boundary(alias, \"Label\") { ... }\nContainer_Boundary(alias, \"Label\") { ... }\nBoundary(alias, \"Label\", \"type\") { ... }\n```\n\n### Relationships\n```\nRel(from, to, \"Label\")\nRel(from, to, \"Label\", \"Technology\")\nBiRel(from, to, \"Label\")                        # Bidirectional\nRel_U(from, to, \"Label\")                        # Upward\nRel_D(from, to, \"Label\")                        # Downward\nRel_L(from, to, \"Label\")                        # Leftward\nRel_R(from, to, \"Label\")                        # Rightward\n```\n\n### Deployment Nodes\n```\nDeployment_Node(alias, \"Label\", \"Type\", \"Description\") { ... }\nNode(alias, \"Label\", \"Type\", \"Description\") { ... }  # Shorthand\n```\n\n## Styling and Layout\n\n### Layout Configuration\n```\nUpdateLayoutConfig($c4ShapeInRow=\"3\", $c4BoundaryInRow=\"1\")\n```\n- `$c4ShapeInRow` - Number of shapes per row (default: 4)\n- `$c4BoundaryInRow` - Number of boundaries per row (default: 2)\n\n### Element Styling\n```\nUpdateElementStyle(alias, $fontColor=\"red\", $bgColor=\"grey\", $borderColor=\"red\")\n```\n\n### Relationship Styling\n```\nUpdateRelStyle(from, to, $textColor=\"blue\", $lineColor=\"blue\", $offsetX=\"5\", $offsetY=\"-10\")\n```\nUse `$offsetX` and `$offsetY` to fix overlapping relationship labels.\n\n## Best Practices\n\n### Essential Rules\n\n1. **Every element must have**: Name, Type, Technology (where applicable), and Description\n2. **Use unidirectional arrows only** - Bidirectional arrows create ambiguity\n3. **Label arrows with action verbs** - \"Sends email using\", \"Reads from\", not just \"uses\"\n4. **Include technology labels** - \"JSON\u002FHTTPS\", \"JDBC\", \"gRPC\"\n5. **Stay under 20 elements per diagram** - Split complex systems into multiple diagrams\n\n### Clarity Guidelines\n\n1. **Start at Level 1** - Context diagrams help frame the system scope\n2. **One diagram per file** - Keep diagrams focused on a single abstraction level\n3. **Meaningful aliases** - Use descriptive aliases (e.g., `orderService` not `s1`)\n4. **Concise descriptions** - Keep descriptions under 50 characters when possible\n5. **Always include a title** - \"System Context diagram for [System Name]\"\n\n### What to Avoid\n\nSee [references\u002Fcommon-mistakes.md](references\u002Fcommon-mistakes.md) for detailed anti-patterns:\n- Confusing containers (deployable) vs components (non-deployable)\n- Modeling shared libraries as containers\n- Showing message brokers as single containers instead of individual topics\n- Adding undefined abstraction levels like \"subcomponents\"\n- Removing type labels to \"simplify\" diagrams\n\n## Microservices Guidelines\n\n### Single Team Ownership\nModel each microservice as a **container** (or container group):\n```mermaid\nC4Container\n  title Microservices - Single Team\n\n  System_Boundary(platform, \"E-commerce Platform\") {\n    Container(orderApi, \"Order Service\", \"Spring Boot\", \"Order processing\")\n    ContainerDb(orderDb, \"Order DB\", \"PostgreSQL\", \"Order data\")\n    Container(inventoryApi, \"Inventory Service\", \"Node.js\", \"Stock management\")\n    ContainerDb(inventoryDb, \"Inventory DB\", \"MongoDB\", \"Stock data\")\n  }\n```\n\n### Multi-Team Ownership\nPromote microservices to **software systems** when owned by separate teams:\n```mermaid\nC4Context\n  title Microservices - Multi-Team\n\n  Person(customer, \"Customer\", \"Places orders\")\n  System(orderSystem, \"Order System\", \"Team Alpha\")\n  System(inventorySystem, \"Inventory System\", \"Team Beta\")\n  System(paymentSystem, \"Payment System\", \"Team Gamma\")\n\n  Rel(customer, orderSystem, \"Places orders\")\n  Rel(orderSystem, inventorySystem, \"Checks stock\")\n  Rel(orderSystem, paymentSystem, \"Processes payment\")\n```\n\n### Event-Driven Architecture\nShow individual topics\u002Fqueues as containers, NOT a single \"Kafka\" box:\n```mermaid\nC4Container\n  title Event-Driven Architecture\n\n  Container(orderService, \"Order Service\", \"Java\", \"Creates orders\")\n  Container(stockService, \"Stock Service\", \"Java\", \"Manages inventory\")\n  ContainerQueue(orderTopic, \"order.created\", \"Kafka\", \"Order events\")\n  ContainerQueue(stockTopic, \"stock.reserved\", \"Kafka\", \"Stock events\")\n\n  Rel(orderService, orderTopic, \"Publishes to\")\n  Rel(stockService, orderTopic, \"Subscribes to\")\n  Rel(stockService, stockTopic, \"Publishes to\")\n  Rel(orderService, stockTopic, \"Subscribes to\")\n```\n\n## Output Location\n\nWrite architecture documentation to `docs\u002Farchitecture\u002F` with naming convention:\n- `c4-context.md` - System context diagram\n- `c4-containers.md` - Container diagram\n- `c4-components-{feature}.md` - Component diagrams per feature\n- `c4-deployment.md` - Deployment diagram\n- `c4-dynamic-{flow}.md` - Dynamic diagrams for specific flows\n\n## Audience-Appropriate Detail\n\n| Audience | Recommended Diagrams |\n|----------|---------------------|\n| Executives | System Context only |\n| Product Managers | Context + Container |\n| Architects | Context + Container + key Components |\n| Developers | All levels as needed |\n| DevOps | Container + Deployment |\n\n## References\n\n- [references\u002Fc4-syntax.md](references\u002Fc4-syntax.md) - Complete Mermaid C4 syntax\n- [references\u002Fcommon-mistakes.md](references\u002Fcommon-mistakes.md) - Anti-patterns to avoid\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - Microservices, event-driven, deployment\n","# C4 Architecture Documentation\n\nGenerate software architecture documentation using C4 model diagrams in Mermaid syntax.\n\n## Workflow\n\n1. **Understand scope** - Determine which C4 level(s) are needed based on audience\n2. **Analyze codebase** - Explore the system to identify components, containers, and relationships\n3. **Generate diagrams** - Create Mermaid C4 diagrams at appropriate abstraction levels\n4. **Document** - Write diagrams to markdown files with explanatory context\n\n## C4 Diagram Levels\n\nSelect the appropriate level based on the documentation need:\n\n| Level | Diagram Type | Audience | Shows | When to Create |\n|-------|-------------|----------|-------|----------------|\n| 1 | **C4Context** | Everyone | System + external actors | Always (required) |\n| 2 | **C4Container** | Technical | Apps, databases, services | Always (required) |\n| 3 | **C4Component** | Developers | Internal components | Only if adds value |\n| 4 | **C4Deployment** | DevOps | Infrastructure nodes | For production systems |\n| - | **C4Dynamic** | Technical | Request flows (numbered) | For complex workflows |\n\n**Key Insight:** \"Context + Container diagrams are sufficient for most software development teams.\" Only create Component\u002FCode diagrams when they genuinely add value.\n\n## Quick Start Examples\n\n### System Context (Level 1)\n```mermaid\nC4Context\n  title System Context - Workout Tracker\n\n  Person(user, \"User\", \"Tracks workouts and exercises\")\n  System(app, \"Workout Tracker\", \"Vue PWA for tracking strength and CrossFit workouts\")\n  System_Ext(browser, \"Web Browser\", \"Stores data in IndexedDB\")\n\n  Rel(user, app, \"Uses\")\n  Rel(app, browser, \"Persists data to\", \"IndexedDB\")\n```\n\n### Container Diagram (Level 2)\n```mermaid\nC4Container\n  title Container Diagram - Workout Tracker\n\n  Person(user, \"User\", \"Tracks workouts\")\n\n  Container_Boundary(app, \"Workout Tracker PWA\") {\n    Container(spa, \"SPA\", \"Vue 3, TypeScript\", \"Single-page application\")\n    Container(pinia, \"State Management\", \"Pinia\", \"Manages application state\")\n    ContainerDb(indexeddb, \"IndexedDB\", \"Dexie\", \"Local workout storage\")\n  }\n\n  Rel(user, spa, \"Uses\")\n  Rel(spa, pinia, \"Reads\u002Fwrites state\")\n  Rel(pinia, indexeddb, \"Persists\", \"Dexie ORM\")\n```\n\n### Component Diagram (Level 3)\n```mermaid\nC4Component\n  title Component Diagram - Workout Feature\n\n  Container(views, \"Views\", \"Vue Router pages\")\n\n  Container_Boundary(workout, \"Workout Feature\") {\n    Component(useWorkout, \"useWorkout\", \"Composable\", \"Workout execution state\")\n    Component(useTimer, \"useTimer\", \"Composable\", \"Timer state machine\")\n    Component(workoutRepo, \"WorkoutRepository\", \"Dexie\", \"Workout persistence\")\n  }\n\n  Rel(views, useWorkout, \"Uses\")\n  Rel(useWorkout, useTimer, \"Controls\")\n  Rel(useWorkout, workoutRepo, \"Saves to\")\n```\n\n### Dynamic Diagram (Request Flow)\n```mermaid\nC4Dynamic\n  title Dynamic Diagram - User Sign In Flow\n\n  ContainerDb(db, \"Database\", \"PostgreSQL\", \"User credentials\")\n  Container(spa, \"Single-Page App\", \"React\", \"Banking UI\")\n\n  Container_Boundary(api, \"API Application\") {\n    Component(signIn, \"Sign In Controller\", \"Express\", \"Auth endpoint\")\n    Component(security, \"Security Service\", \"JWT\", \"Validates credentials\")\n  }\n\n  Rel(spa, signIn, \"1. Submit credentials\", \"JSON\u002FHTTPS\")\n  Rel(signIn, security, \"2. Validate\")\n  Rel(security, db, \"3. Query user\", \"SQL\")\n\n  UpdateRelStyle(spa, signIn, $textColor=\"blue\", $offsetY=\"-30\")\n```\n\n### Deployment Diagram\n```mermaid\nC4Deployment\n  title Deployment Diagram - Production\n\n  Deployment_Node(browser, \"Customer Browser\", \"Chrome\u002FFirefox\") {\n    Container(spa, \"SPA\", \"React\", \"Web application\")\n  }\n\n  Deployment_Node(aws, \"AWS Cloud\", \"us-east-1\") {\n    Deployment_Node(ecs, \"ECS Cluster\", \"Fargate\") {\n      Container(api, \"API Service\", \"Node.js\", \"REST API\")\n    }\n    Deployment_Node(rds, \"RDS\", \"db.r5.large\") {\n      ContainerDb(db, \"Database\", \"PostgreSQL\", \"Application data\")\n    }\n  }\n\n  Rel(spa, api, \"API calls\", \"HTTPS\")\n  Rel(api, db, \"Reads\u002Fwrites\", \"JDBC\")\n```\n\n## Element Syntax\n\n### People and Systems\n```\nPerson(alias, \"Label\", \"Description\")\nPerson_Ext(alias, \"Label\", \"Description\")       # External person\nSystem(alias, \"Label\", \"Description\")\nSystem_Ext(alias, \"Label\", \"Description\")       # External system\nSystemDb(alias, \"Label\", \"Description\")         # Database system\nSystemQueue(alias, \"Label\", \"Description\")      # Queue system\n```\n\n### Containers\n```\nContainer(alias, \"Label\", \"Technology\", \"Description\")\nContainer_Ext(alias, \"Label\", \"Technology\", \"Description\")\nContainerDb(alias, \"Label\", \"Technology\", \"Description\")\nContainerQueue(alias, \"Label\", \"Technology\", \"Description\")\n```\n\n### Components\n```\nComponent(alias, \"Label\", \"Technology\", \"Description\")\nComponent_Ext(alias, \"Label\", \"Technology\", \"Description\")\nComponentDb(alias, \"Label\", \"Technology\", \"Description\")\n```\n\n### Boundaries\n```\nEnterprise_Boundary(alias, \"Label\") { ... }\nSystem_Boundary(alias, \"Label\") { ... }\nContainer_Boundary(alias, \"Label\") { ... }\nBoundary(alias, \"Label\", \"type\") { ... }\n```\n\n### Relationships\n```\nRel(from, to, \"Label\")\nRel(from, to, \"Label\", \"Technology\")\nBiRel(from, to, \"Label\")                        # Bidirectional\nRel_U(from, to, \"Label\")                        # Upward\nRel_D(from, to, \"Label\")                        # Downward\nRel_L(from, to, \"Label\")                        # Leftward\nRel_R(from, to, \"Label\")                        # Rightward\n```\n\n### Deployment Nodes\n```\nDeployment_Node(alias, \"Label\", \"Type\", \"Description\") { ... }\nNode(alias, \"Label\", \"Type\", \"Description\") { ... }  # Shorthand\n```\n\n## Styling and Layout\n\n### Layout Configuration\n```\nUpdateLayoutConfig($c4ShapeInRow=\"3\", $c4BoundaryInRow=\"1\")\n```\n- `$c4ShapeInRow` - Number of shapes per row (default: 4)\n- `$c4BoundaryInRow` - Number of boundaries per row (default: 2)\n\n### Element Styling\n```\nUpdateElementStyle(alias, $fontColor=\"red\", $bgColor=\"grey\", $borderColor=\"red\")\n```\n\n### Relationship Styling\n```\nUpdateRelStyle(from, to, $textColor=\"blue\", $lineColor=\"blue\", $offsetX=\"5\", $offsetY=\"-10\")\n```\nUse `$offsetX` and `$offsetY` to fix overlapping relationship labels.\n\n## Best Practices\n\n### Essential Rules\n\n1. **Every element must have**: Name, Type, Technology (where applicable), and Description\n2. **Use unidirectional arrows only** - Bidirectional arrows create ambiguity\n3. **Label arrows with action verbs** - \"Sends email using\", \"Reads from\", not just \"uses\"\n4. **Include technology labels** - \"JSON\u002FHTTPS\", \"JDBC\", \"gRPC\"\n5. **Stay under 20 elements per diagram** - Split complex systems into multiple diagrams\n\n### Clarity Guidelines\n\n1. **Start at Level 1** - Context diagrams help frame the system scope\n2. **One diagram per file** - Keep diagrams focused on a single abstraction level\n3. **Meaningful aliases** - Use descriptive aliases (e.g., `orderService` not `s1`)\n4. **Concise descriptions** - Keep descriptions under 50 characters when possible\n5. **Always include a title** - \"System Context diagram for [System Name]\"\n\n### What to Avoid\n\nSee [references\u002Fcommon-mistakes.md](references\u002Fcommon-mistakes.md) for detailed anti-patterns:\n- Confusing containers (deployable) vs components (non-deployable)\n- Modeling shared libraries as containers\n- Showing message brokers as single containers instead of individual topics\n- Adding undefined abstraction levels like \"subcomponents\"\n- Removing type labels to \"simplify\" diagrams\n\n## Microservices Guidelines\n\n### Single Team Ownership\nModel each microservice as a **container** (or container group):\n```mermaid\nC4Container\n  title Microservices - Single Team\n\n  System_Boundary(platform, \"E-commerce Platform\") {\n    Container(orderApi, \"Order Service\", \"Spring Boot\", \"Order processing\")\n    ContainerDb(orderDb, \"Order DB\", \"PostgreSQL\", \"Order data\")\n    Container(inventoryApi, \"Inventory Service\", \"Node.js\", \"Stock management\")\n    ContainerDb(inventoryDb, \"Inventory DB\", \"MongoDB\", \"Stock data\")\n  }\n```\n\n### Multi-Team Ownership\nPromote microservices to **software systems** when owned by separate teams:\n```mermaid\nC4Context\n  title Microservices - Multi-Team\n\n  Person(customer, \"Customer\", \"Places orders\")\n  System(orderSystem, \"Order System\", \"Team Alpha\")\n  System(inventorySystem, \"Inventory System\", \"Team Beta\")\n  System(paymentSystem, \"Payment System\", \"Team Gamma\")\n\n  Rel(customer, orderSystem, \"Places orders\")\n  Rel(orderSystem, inventorySystem, \"Checks stock\")\n  Rel(orderSystem, paymentSystem, \"Processes payment\")\n```\n\n### Event-Driven Architecture\nShow individual topics\u002Fqueues as containers, NOT a single \"Kafka\" box:\n```mermaid\nC4Container\n  title Event-Driven Architecture\n\n  Container(orderService, \"Order Service\", \"Java\", \"Creates orders\")\n  Container(stockService, \"Stock Service\", \"Java\", \"Manages inventory\")\n  ContainerQueue(orderTopic, \"order.created\", \"Kafka\", \"Order events\")\n  ContainerQueue(stockTopic, \"stock.reserved\", \"Kafka\", \"Stock events\")\n\n  Rel(orderService, orderTopic, \"Publishes to\")\n  Rel(stockService, orderTopic, \"Subscribes to\")\n  Rel(stockService, stockTopic, \"Publishes to\")\n  Rel(orderService, stockTopic, \"Subscribes to\")\n```\n\n## Output Location\n\nWrite architecture documentation to `docs\u002Farchitecture\u002F` with naming convention:\n- `c4-context.md` - System context diagram\n- `c4-containers.md` - Container diagram\n- `c4-components-{feature}.md` - Component diagrams per feature\n- `c4-deployment.md` - Deployment diagram\n- `c4-dynamic-{flow}.md` - Dynamic diagrams for specific flows\n\n## Audience-Appropriate Detail\n\n| Audience | Recommended Diagrams |\n|----------|---------------------|\n| Executives | System Context only |\n| Product Managers | Context + Container |\n| Architects | Context + Container + key Components |\n| Developers | All levels as needed |\n| DevOps | Container + Deployment |\n\n## References\n\n- [references\u002Fc4-syntax.md](references\u002Fc4-syntax.md) - Complete Mermaid C4 syntax\n- [references\u002Fcommon-mistakes.md](references\u002Fcommon-mistakes.md) - Anti-patterns to avoid\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - Microservices, event-driven, deployment\n",{"name":5,"description":7},"main","34fa6acf794b9a6310d298cbb8fb8c9420a5edcf","cli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Fc4-architecture",2,"https:\u002F\u002Fgithub.com\u002Ftransaurus\u002Fstaging-davila7-claude-code-templates","https:\u002F\u002Fgithub.com\u002Ftransaurus","Automated works of Page Turner","2026-03-28 10:12:59",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add transaurus\u002Fstaging-davila7-claude-code-templates --skill c4-architecture",{"tool":58,"command":59},"bunx","bunx skills add transaurus\u002Fstaging-davila7-claude-code-templates --skill c4-architecture",{"tool":61,"command":62},"pnpm","pnpm dlx skills add transaurus\u002Fstaging-davila7-claude-code-templates --skill c4-architecture","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftransaurus\u002Fstaging-davila7-claude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Fc4-architecture\u002FSKILL.md",true,[66,72,76,80],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"README.md","REFERENCE","参考文档",7072,"https:\u002F\u002Fgithub.com\u002Ftransaurus\u002Fstaging-davila7-claude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Fc4-architecture\u002FREADME.md",{"path":73,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Fadvanced-patterns.md",18346,"https:\u002F\u002Fgithub.com\u002Ftransaurus\u002Fstaging-davila7-claude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Fc4-architecture\u002Freferences\u002Fadvanced-patterns.md",{"path":77,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Fc4-syntax.md",14564,"https:\u002F\u002Fgithub.com\u002Ftransaurus\u002Fstaging-davila7-claude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Fc4-architecture\u002Freferences\u002Fc4-syntax.md",{"path":81,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Fcommon-mistakes.md",12441,"https:\u002F\u002Fgithub.com\u002Ftransaurus\u002Fstaging-davila7-claude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Fc4-architecture\u002Freferences\u002Fcommon-mistakes.md",[85,112,133,156,176,199],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":39},"01M6JMRJR3BE0HGWFWDZSB853S","zapier-make-patterns","No-code automation democratizes workflow building. Zapier and Make (formerly Integromat) let non-developers automate business processes without writing code. But no-code doesn't mean no-complexity - these platforms have their own patterns, pitfalls, and breaking points.  This skill covers when to use which platform, how to build reliable automations, and when to graduate to code-based solutions. Key insight: Zapier optimizes for simplicity and integrations (7000+ apps), Make optimizes for power","https:\u002F\u002Fgithub.com\u002Ftransaurus\u002Fstaging-davila7-claude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Fzapier-make-patterns\u002FSKILL.md",[],[92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111],"zapier make patterns","patterns","make","zapier","writing","workflow","automation","code","integrations","business","use","power","complexity","platform","apps","how to","No-Code","which","for","spawner",{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":39},"01M6JMR8YK6SWPCTG1MCQTMN9S","yeet","Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).","https:\u002F\u002Fgithub.com\u002Ftransaurus\u002Fstaging-davila7-claude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Fyeet\u002FSKILL.md",[],[114,119,120,121,122,123,124,125,126,127,128,129,102,130,131,132],"cli","github","commit","pull request","openai","pull","push","flow","open","gh","user","only","stage","github cli",{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":39},"01M6JMQNFE64ZASQK90HARRXW8","workflow-automation","Workflow automation is the infrastructure that makes AI agents reliable. Without durable execution, a network hiccup during a 10-step payment flow means lost money and angry customers. With it, workflows resume exactly where they left off.  This skill covers the platforms (n8n, Temporal, Inngest) and patterns (sequential, parallel, orchestrator-worker) that turn brittle scripts into production-grade automation.  Key insight: The platforms make different tradeoffs. n8n optimizes for accessibility","https:\u002F\u002Fgithub.com\u002Ftransaurus\u002Fstaging-davila7-claude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Fworkflow-automation\u002FSKILL.md",[],[97,98,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,110,111],"Workflow Automation","ai agents","accessibility","workflows","apache","execution","inngest","parallel","orchestrator","resume","n8n","payment","worker","scripts","temporal","with",{"skillNo":157,"name":158,"nameZh":6,"description":159,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":162,"publishedAt":39},"01M6JMQDYJ0XETERPHGDR3EVGN","trigger-dev","Trigger.dev expert for background jobs, AI workflows, and reliable async execution with excellent developer experience and TypeScript-first design. Use when: trigger.dev, trigger dev, background task, ai background job, long running task.","https:\u002F\u002Fgithub.com\u002Ftransaurus\u002Fstaging-davila7-claude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Ftrigger-dev\u002FSKILL.md",[],[163,164,165,166,167,143,168,144,145,169,102,170,171,172,173,174,175,155,110,111],"dev","trigger dev","trigger","design","typescript","async execution","first","async","developer experience","expert","task","background jobs","long",{"skillNo":177,"name":178,"nameZh":6,"description":179,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":180,"categories":181,"keywords":182,"publishedAt":39},"01M6JMQ5J6KK3GSX9FJCWWK6G6","planning-with-files","Transforms workflow to use Manus-style persistent markdown files for planning, progress tracking, and knowledge storage. Use when starting complex tasks, multi-step projects, research tasks, or when the user mentions planning, organizing work, tracking progress, or wants structured output.","https:\u002F\u002Fgithub.com\u002Ftransaurus\u002Fstaging-davila7-claude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Fplanning-with-files\u002FSKILL.md",[],[183,184,185,155,186,97,187,188,189,190,191,192,102,193,194,195,196,197,198,110],"planning with files","planning","files","with files","storage","tasks","markdown","knowledge","projects","work","manus","structured output","progress","transforms","multi","output",{"skillNo":200,"name":201,"nameZh":6,"description":202,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":203,"categories":204,"keywords":205,"publishedAt":39},"01M6JMPWAT60RXXNEC4V9TRBRS","n8n-workflow-patterns","Proven workflow architectural patterns from real n8n workflows. Use when building new workflows, designing workflow structure, choosing workflow patterns, planning workflow architecture, or asking about webhook processing, HTTP API integration, database operations, AI agent workflows, or scheduled tasks.","https:\u002F\u002Fgithub.com\u002Ftransaurus\u002Fstaging-davila7-claude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Fn8n\u002Fn8n-workflow-patterns\u002FSKILL.md",[],[97,206,150,207,93,208,209,143,19,188,184,210,211,212,24,213,214,215,216,217],"n8n workflow patterns","workflow patterns","n8n workflow","ai agent","database","api","planning workflow","database operations","webhook","processing","http api","scheduled"]