一键导入
create-element
Create elements with proper naming (PascalCase kinds, camelCase vars), required metadata (technology, description), and correct hierarchy.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create elements with proper naming (PascalCase kinds, camelCase vars), required metadata (technology, description), and correct hierarchy.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Design views with proper includes/excludes and basic layout. Use for include patterns, tag filtering, and simple rank hints. For advanced styling/navigation, use customize-view.
Model deployment infrastructure (environments, zones, VMs, apps) with proper hierarchy and instanceOf links. Organize zones into tiers (DMZ, App, Data, Processing) with rich descriptions including VLAN/network specifications.
Use metadata for system models (business/technical context) and markdown tables for deployment models (infrastructure specs). Makes models queryable and self-documenting.
C4 modeling methodology - design system hierarchy top-to-bottom from Context to Components. Ensures consistent, stakeholder-focused architecture documentation.
Manage likec4.config.json includes and image aliases. Ensures relative paths and preserves existing configuration. Support multi-file organization (system-model + system-views + deployment + operations).
Create typed relationships with FQN, proper kinds (calls/async/reads/writes), descriptive labels, and no return relationships.
| name | create-element |
| description | Create elements with proper naming (PascalCase kinds, camelCase vars), required metadata (technology, description), and correct hierarchy. |
Use this skill when creating or modifying any LikeC4 element.
Before creating:
c4-modeling-process skill to understand C4 framework and top-to-bottom design (C1 → C2 → C3)read-project-summary MCP to list available element kindsIMPORTANT: Use existing element kinds from shared spec instead of creating new ones.
read-project-summary to see available kindsspec-*.c4 files in shared/ folderAlways design top-to-bottom:
See c4-modeling-process skill for detailed step-by-step guidance.
Category_Subtype PascalCase (e.g., Container_API, Node_VM)apiGateway, prodVM)model {
api = Container_API 'REST API' {
technology 'Node.js, Express'
description 'Handles business logic and data processing'
}
service = Component_Service 'User Service' {
technology 'Java 17, Spring Boot, Hibernate'
description 'User management and authentication'
}
}
model {
apiGateway = Container_Gateway 'API Gateway' {
technology 'Kong'
description """
Central entry point for all API requests.
**Responsibilities:**
- Authentication and authorization
- Rate limiting and request routing
**Availability:** 99.9% SLA
"""
#critical, #production
}
}
model {
paymentService = Component_Service 'Payment Service' {
technology 'Node.js, Stripe SDK'
description 'Handles payment processing'
link https://docs.stripe.com 'Stripe API Docs'
link https://github.com/myorg/payment-service 'Source Code'
#pci-compliant, #production
}
}
model {
database = Container_Database 'PostgreSQL' {
technology 'PostgreSQL 15'
description 'Primary application database'
icon tech:postgresql
#production
}
cache = Container_Cache 'Redis Cache' {
technology 'Redis 7'
description 'Session and data cache'
icon tech:redis
#production
}
}
Common icon namespaces: tech:, aws:, gcp:, azure:
prodAPI = Container_API 'Production API' {
technology 'Node.js'
description 'Production API server'
#production, #us-east-1
}
frontend = Container_WebApp 'Frontend' {
technology 'React'
description 'User interface'
#presentation, #public-facing
}
database = Container_Database 'Database' {
technology 'PostgreSQL'
description 'Data storage'
#data, #persistent
}
legacyService = Component_Service 'Legacy Service' {
technology 'Java 8'
description 'Legacy user service'
#deprecated, #migration-pending
}
paymentDB = Container_Database 'Payment Data' {
technology 'PostgreSQL'
description 'Payment transactions'
#pci-compliant, #encrypted, #pii
}
Before creating: Use read-project-summary to check declared element kinds and tags
After creating: Use read-element to verify metadata completeness
For searching: Use search-element to find elements by tag
Use Context7 MCP query-docs with library /likec4/likec4 if uncertain about:
Well-documented elements with complete metadata, proper hierarchy, and consistent naming.