AgentSkillsCN

c4-view-creation

在工程平台数据模型中,指导用户创建与编辑LikeC4视图(C1景观、C2容器、C3组件)。当用户被要求在工程平台数据模型中任意C4层级新增或修改架构视图时,可使用此方法。

SKILL.md
--- frontmatter
name: c4-view-creation
description: Guide for creating and editing LikeC4 views (C1 landscape, C2 containers, C3 components). Use when asked to add or modify architectural views at any C4 level in the Engineering Platform Data Model.

C4 View Creation

Critical Requirements

  • ALWAYS read the relevant view file before creating or editing views
  • C2 views show Stars, C3 views show Blueprints — NEVER mix levels
  • ALWAYS validate with npm run validate after changes

View Files

FileLevelPurpose
views/landscape.c4C1IDP as black box + actors + external systems
views/containers.c4C213 Capability Stars (NOT individual blueprints)
views/c3/<star>.c4C3Blueprints inside each star (one file per star)
views/journeys.c4DynamicPersona workflow sequences (see c4-journey-creation skill)

C1: System Context View

Shows the IDP as a single system with its actors and external systems.

  • Does NOT show internal capabilities or blueprints
  • Audience: Everyone

C2: Container View

Shows the 13 Capability Stars inside the IDP.

  • Shows stars as capability elements
  • Does NOT show individual blueprints
  • Audience: Architects

C3: Component View

Shows the blueprints inside ONE specific star. Each star has its own file under views/c3/.

StarFile
Service Catalogviews/c3/catalog.c4
Organizationviews/c3/organization.c4
Version Controlviews/c3/vcs.c4
CI/CD Platformviews/c3/cicd.c4
Resource Catalogviews/c3/resource.c4
Artifact Managementviews/c3/artifacts.c4
Securityviews/c3/security.c4
Software Qualityviews/c3/quality.c4
Engineering Metricsviews/c3/metrics.c4
Feature Managementviews/c3/features.c4
Software Templatesviews/c3/templates.c4
GRCviews/c3/grc.c4
Database Managementviews/c3/database.c4
Multi-Cloud Detailviews/c3/multicloud.c4
c4
view starVCSView of idp.starVCS {
  title 'Version Control Star'
  description 'C3: Blueprints inside the Version Control capability'
  include *
  style repository { color green }
}
  • One view per star, one file per star
  • of idp.starXxx scopes the view to that star
  • Audience: Developers

View Naming Conventions

LevelPatternExamples
C1indexindex
C2capabilitiescapabilities
C3star<Name>ViewstarVCSView, starCICDView
DynamicpersonaActiondeveloperOnboarding

Available Colors

amber, blue, green, indigo, muted, red, secondary, sky, slate, violet

Available Shapes

person, rectangle, browser, cylinder, mobile, queue, storage, document, bucket

Include/Exclude Patterns

c4
include *              // All direct children
include element1, element2  // Specific elements
exclude integrationLayer    // Exclude specific
include idp._          // IDP + direct children
include idp.**         // IDP + ALL nested

Workflow

  1. Read the relevant view file
  2. Determine the C4 level (C1, C2, C3, or Dynamic)
  3. Create/edit the view in the correct file
  4. Validate with npm run validate