AgentSkillsCN

c4-journey-creation

在工程平台数据模型中,指导用户创建与编辑LikeC4动态视图(人物旅程工作流)。当用户被要求在工程平台数据模型中创建用户旅程、工作流序列,或动态视图时,可使用此方法。

SKILL.md
--- frontmatter
name: c4-journey-creation
description: Guide for creating and editing LikeC4 dynamic views (persona journey workflows). Use when asked to create user journeys, workflow sequences, or dynamic views in the Engineering Platform Data Model.

C4 Journey Creation

Critical Requirements

  • ALWAYS read likec4/views/journeys.c4 before creating journeys
  • Journey IDs must match the navigateTo references in relations.c4
  • ALWAYS validate with npm run validate after changes

Overview

Dynamic views (journeys) represent persona workflows — step-by-step sequences showing how a persona interacts with the platform.

Current Journeys

Developer Journeys

View IDTitle
developerOnboardingPlatform Onboarding
developerSelfServiceSelf-Service Creation
developerDailyWorkDaily Development

Platform Engineer Journeys

View IDTitle
platformEngineerTemplatesTemplate Management
platformEngineerMultiCloudMulti-Cloud Resources
platformEngineerIntegrationsIntegration Management

Tech Lead Journeys

View IDTitle
techLeadScorecardProduction Readiness
techLeadMetricsDORA Metrics & Copilot

Security Engineer Journeys

View IDTitle
securityEngineerPostureSecurity Posture
securityEngineerIncidentCritical Alert Response

Journey Structure

c4
dynamic view myJourneyId {
  title 'Persona: Journey Title'
  description 'Brief description of what the persona does'

  persona -> idp 'accesses the portal' {
    notes 'Persona navigates to the Internal Developer Portal'
  }
  idp -> idp.starCapability 'browses capability' {
    notes 'Details about what they see'
  }
  idp.starCapability -> idp.starCapability.blueprint 'interacts with entity' {
    notes 'Specific details about the interaction'
  }
}

Journey with Parallel Steps

c4
dynamic view myJourney {
  title 'Persona: Multi-path Journey'
  description 'Journey with parallel activities'

  persona -> idp 'starts workflow'

  parallel {
    idp -> idp.starCICD 'runs CI pipeline' {
      notes 'Build and test in parallel'
    }
    idp -> idp.starSecurity 'runs security scan' {
      notes 'SAST/DAST scanning'
    }
  }
}

Journey Design Principles

  1. Tell a story: Each journey should narrate a complete workflow
  2. One persona, one goal: Focus on a single persona achieving one objective
  3. Include notes: Every step should have notes
  4. 3-8 steps: Keep journeys focused
  5. Cross boundaries: Show how multiple stars work together

Naming Convention

Pattern: personaNameAction

  • developerOnboarding
  • techLeadScorecard
  • securityEngineerIncident

After Creating a Journey

Link it in relations.c4 with a navigateTo reference:

c4
idp.starCICD -> qaEngineer 'provides test pipelines' {
  navigateTo qaEngineerTestExecution
}

Workflow

  1. Read likec4/views/journeys.c4
  2. Read likec4/relations.c4
  3. Create dynamic view in journeys.c4
  4. Add navigateTo reference in relations.c4
  5. Validate with npm run validate