[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-f240d9b8-73fe-4456-b527-0179ce9f18c8":3,"$f7icDvVtpVx7kUXjf5mfKbc22PcINOFBfeD-L48AAFBc":43},{"id":4,"title":5,"description":6,"categoryId":7,"moduleId":8,"tags":9,"prompt":10,"icon":11,"source":12,"sourceUrl":13,"authorId":14,"authorName":15,"isPublic":16,"stars":17,"runs":18,"createdAt":19,"updatedAt":19,"module":20,"category":27,"packages":34},"f240d9b8-73fe-4456-b527-0179ce9f18c8","c4-container","C4集装箱级文档专家。","cat_life_career","mod_other","sickn33,other","---\nname: c4-container\ndescription: Expert C4 Container-level documentation specialist.\nrisk: unknown\nsource: community\ndate_added: '2026-02-27'\n---\n\n# C4 Container Level: System Deployment\n\n## Use this skill when\n\n- Working on c4 container level: system deployment tasks or workflows\n- Needing guidance, best practices, or checklists for c4 container level: system deployment\n\n## Do not use this skill when\n\n- The task is unrelated to c4 container level: system deployment\n- You need a different domain or tool outside this scope\n\n## Instructions\n\n- Clarify goals, constraints, and required inputs.\n- Apply relevant best practices and validate outcomes.\n- Provide actionable steps and verification.\n- If detailed examples are required, open `resources\u002Fimplementation-playbook.md`.\n\n## Containers\n\n### [Container Name]\n\n- **Name**: [Container name]\n- **Description**: [Short description of container purpose and deployment]\n- **Type**: [Web Application, API, Database, Message Queue, etc.]\n- **Technology**: [Primary technologies: Node.js, Python, PostgreSQL, Redis, etc.]\n- **Deployment**: [Docker, Kubernetes, Cloud Service, etc.]\n\n## Purpose\n\n[Detailed description of what this container does and how it's deployed]\n\n## Components\n\nThis container deploys the following components:\n\n- [Component Name]: [Description]\n  - Documentation: c4-component-name.md\n\n## Interfaces\n\n### [API\u002FInterface Name]\n\n- **Protocol**: [REST\u002FGraphQL\u002FgRPC\u002FEvents\u002Fetc.]\n- **Description**: [What this interface provides]\n- **Specification**: [Link to OpenAPI\u002FSwagger\u002FAPI Spec file]\n- **Endpoints**:\n  - `GET \u002Fapi\u002Fresource` - [Description]\n  - `POST \u002Fapi\u002Fresource` - [Description]\n\n## Dependencies\n\n### Containers Used\n\n- [Container Name]: [How it's used, communication protocol]\n\n### External Systems\n\n- [External System]: [How it's used, integration type]\n\n## Infrastructure\n\n- **Deployment Config**: [Link to Dockerfile, K8s manifest, etc.]\n- **Scaling**: [Horizontal\u002Fvertical scaling strategy]\n- **Resources**: [CPU, memory, storage requirements]\n\n## Container Diagram\n\nUse proper Mermaid C4Container syntax:\n\n```mermaid\nC4Container\n    title Container Diagram for [System Name]\n\n    Person(user, \"User\", \"Uses the system\")\n    System_Boundary(system, \"System Name\") {\n        Container(webApp, \"Web Application\", \"Spring Boot, Java\", \"Provides web interface\")\n        Container(api, \"API Application\", \"Node.js, Express\", \"Provides REST API\")\n        ContainerDb(database, \"Database\", \"PostgreSQL\", \"Stores data\")\n        Container_Queue(messageQueue, \"Message Queue\", \"RabbitMQ\", \"Handles async messaging\")\n    }\n    System_Ext(external, \"External System\", \"Third-party service\")\n\n    Rel(user, webApp, \"Uses\", \"HTTPS\")\n    Rel(webApp, api, \"Makes API calls to\", \"JSON\u002FHTTPS\")\n    Rel(api, database, \"Reads from and writes to\", \"SQL\")\n    Rel(api, messageQueue, \"Publishes messages to\")\n    Rel(api, external, \"Uses\", \"API\")\n```\n````\n\n**Key Principles** (from [c4model.com](https:\u002F\u002Fc4model.com\u002Fdiagrams\u002Fcontainer)):\n\n- Show **high-level technology choices** (this is where technology details belong)\n- Show how **responsibilities are distributed** across containers\n- Include **container types**: Applications, Databases, Message Queues, File Systems, etc.\n- Show **communication protocols** between containers\n- Include **external systems** that containers interact with\n\n````\n\n## API Specification Template\n\nFor each container API, create an OpenAPI\u002FSwagger specification:\n\n```yaml\nopenapi: 3.1.0\ninfo:\n  title: [Container Name] API\n  description: [API description]\n  version: 1.0.0\nservers:\n  - url: https:\u002F\u002Fapi.example.com\n    description: Production server\npaths:\n  \u002Fapi\u002Fresource:\n    get:\n      summary: [Operation summary]\n      description: [Operation description]\n      parameters:\n        - name: param1\n          in: query\n          schema:\n            type: string\n      responses:\n        '200':\n          description: [Response description]\n          content:\n            application\u002Fjson:\n              schema:\n                type: object\n````\n\n## Example Interactions\n\n- \"Synthesize all components into containers based on deployment definitions\"\n- \"Map the API components to containers and document their APIs as OpenAPI specs\"\n- \"Create container-level documentation for the microservices architecture\"\n- \"Document container interfaces as Swagger\u002FOpenAPI specifications\"\n- \"Analyze Kubernetes manifests and create container documentation\"\n\n## Key Distinctions\n\n- **vs C4-Component agent**: Maps components to deployment units; Component agent focuses on logical grouping\n- **vs C4-Context agent**: Provides container-level detail; Context agent creates high-level system diagrams\n- **vs C4-Code agent**: Focuses on deployment architecture; Code agent documents individual code elements\n\n## Output Examples\n\nWhen synthesizing containers, provide:\n\n- Clear container boundaries with deployment rationale\n- Descriptive container names and deployment characteristics\n- Complete API documentation with OpenAPI\u002FSwagger specifications\n- Links to all contained components\n- Mermaid container diagrams showing deployment architecture\n- Links to deployment configurations (Dockerfiles, K8s manifests, etc.)\n- Infrastructure requirements and scaling considerations\n- Consistent documentation format across all containers\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","","imported","https:\u002F\u002Fgithub.com\u002Fsickn33\u002Fantigravity-awesome-skills","user_system_seed","SkillOPIC",true,98,284,"2026-05-16 13:09:55",{"id":8,"name":21,"slug":22,"icon":23,"description":24,"sort":25,"createdAt":26},"其他","other","mdi-page-next-outline","其他类型Skill",5,"2026-05-16 12:53:40",{"id":7,"name":28,"slug":29,"icon":30,"description":31,"moduleId":8,"sort":32,"skillCount":33,"createdAt":26},"职场发展","career","mdi-briefcase-outline","面试准备、简历优化、职业规划",4,575,[35],{"id":36,"skillId":4,"version":37,"fileName":38,"fileSize":39,"filePath":40,"fileHash":41,"manifest":42,"createdAt":19},"8a5cb01d-2f22-4b9f-80ba-eb06c0cc1d48","1.0.0","c4-container.zip",2441,"uploads\u002Fskills\u002Ff240d9b8-73fe-4456-b527-0179ce9f18c8\u002Fc4-container.zip","ff3b43db12cf6f0d1e396371a59a68bd8ae3ffd648c8181f94a0f570a65bfd3a","[{\"path\":\"SKILL.md\",\"isDirectory\":false,\"size\":5631}]",{"code":44,"message":45,"data":46},200,"success",{"items":47,"stats":48,"page":51},[],{"averageRating":49,"totalRatings":49,"ratingCounts":50},0,[49,49,49,49,49],{"limit":52,"offset":49,"hasMore":53,"nextOffset":52,"ratedOnly":16},15,false]