AGENT SKILL

x-plan-arch-product

Generate C4 Context + Container + Component diagrams for a product in Mermaid or PlantUML.

License 许可
MIT
最近更新
2026-10-27
Stars
★ 0
Forks
1

01 前言 Front Matter

name
x-plan-arch-product
model
opus
description
Generate C4 Context + Container + Component diagrams for a product in Mermaid or PlantUML.
allowed-tools
Read, Write, Bash
argument-hint
--product-id <ID> [--output-format mermaid|plantuml]
user-invocable
true
requires-capabilities
[]

03 SKILL.md 正文

Output Policy

  • Language: Portuguese (pt-BR) for content. English for technical terms and code identifiers.
  • Tone: Technical, Direct, and Concise.

Skill: x-plan-arch-product

Purpose

Generate C4 architecture diagrams (Context, Container, Component levels) for a Product artifact. Diagrams are written in Mermaid (default) or PlantUML. Placeholder diagrams are generated when the product is new and structural information is sparse; they are marked [placeholder] in the output summary.

When to Use

  • After x-create-product creates the product artifact
  • When the tech lead or architect needs a C4 overview of the product
  • Before story planning sessions that require architectural context

CLI Command

ia-dev-env x-plan-arch-product --product-id product-0001
ia-dev-env x-plan-arch-product --product-id product-0001 --output-format plantuml

Triggers

  • /x-plan-arch-product --product-id <ID>
  • /x-plan-arch-product --product-id <ID> --output-format plantuml

Arguments

Flag Required Description
--product-id yes Product identifier (e.g. product-0001)
--output-format no mermaid (default) or plantuml

Output

Produces C4 diagram blocks printed to stdout:

  • CONTEXT — System context diagram
  • CONTAINER — Container diagram
  • COMPONENT — Component diagram

Each entry is marked OK or [placeholder].

Exit Codes

Code Meaning
0 Success
1 Validation error (invalid product-id, unknown format)
2 Execution error

Examples

# Mermaid (default)
ia-dev-env x-plan-arch-product --product-id product-0001

# PlantUML
ia-dev-env x-plan-arch-product --product-id product-0001 --output-format plantuml

Related Skills

Skill Relationship
x-plan-arch-capability Same for capability level
x-plan-arch-feature Same for feature level
x-plan-architecture Full architecture planning skill (story-level)

References

04 同仓库更多 Skills

review-bench
review-bench/edercnj_ia-dev-environment

x-parallel-eval

Detects and classifies file-collision risks between work units (tasks, stories, or epic phases) before parallel execution. Reads ## File Footprint blocks produced by x-task-plan / x-story-plan, applies the parallelism-heuristics knowledge pack (hard / regen / soft categories + hotspot overrides), and emits a collision matrix + serialization recommendation in Markdown (default) or JSON.

★ 0
review-bench
review-bench/edercnj_ia-dev-environment

parallelism-heuristics

Canonical catalog of file-collision heuristics for parallel task, story, and epic execution. Defines the File Footprint block format, the three Conflict Categories (hard / regen / soft), a hotspot list of high-contention paths, and the degrade-with-warning policy. Consumed by x-task-plan, x-story-plan, x-epic-map, x-parallel-eval, and x-dev-*-implement.

★ 0
review-bench
review-bench/edercnj_ia-dev-environment

x-watch-pr-ci

Polls a PR's CI checks and Copilot review status, blocking until checks complete or timeout. Returns one of 8 stable exit codes (SUCCESS=0, CI_PENDING_PROCEED=10, CI_FAILED=20, TIMEOUT=30, PR_ALREADY_MERGED=40, NO_CI_CONFIGURED=50, PR_CLOSED=60, PR_NOT_FOUND=70). Writes a versioned state-file for session resume.

★ 0
review-bench
review-bench/edercnj_ia-dev-environment

x-validate-docs

Documentation freshness gate: validates 6 dimensions (readme, api-specs, grpc-proto, adr, skill-docs, system-architecture) against code changes in a PR. Stack-aware — only validates targets declared/auto-detected from ProjectConfig.documentation.targets. Returns exit non-zero on staleness; produces structured report.

★ 0
review-bench
review-bench/edercnj_ia-dev-environment

x-update-system-architecture

Incrementally updates docs/architecture/system.md after an epic completes. Appends new entries to the Decision Log (§11) using x-internal-write-report --append (dedup by ## ID: marker) and surgically inserts component/integration changes into sections 1-10 via Edit. Idempotent: re-running with the same epic produces a byte-identical system.md.

★ 0
review-bench
review-bench/edercnj_ia-dev-environment

x-update-architecture

Incrementally updates the service architecture document with changes from architecture plans. Adds new components, integrations, flows, and ADR references without rewriting existing content. Use after implementation to keep architecture documentation current.

★ 0