AGENT SKILL
archrip-update
Update or refine the architecture diagram
- License 许可
- MIT
- 所属仓库
- yida29/archrip
- 最近更新
- 2026-11-11
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- archrip-update
- description
- Update or refine the architecture diagram
- argument-hint
- [changes or instructions]
- user-invocable
- true
02 资源文件 3
- 许可证LICENSE1.0 KB
- 参考文档SOURCE.md353 B
- 参考文档TRUST.auto.yaml2.1 KB
03 SKILL.md 正文
archrip update — Update architecture diagram
Read .archrip/architecture.json and update it.
Mode 1: Auto-detect from git diff (no arguments)
If $ARGUMENTS is empty:
- Run
git diff --name-only HEAD~10to find changed files - Read the current
.archrip/architecture.json - For each changed file:
- New component? → Add node + edges
- Removed component? → Remove node + edges + use case references
- Changed dependencies? → Update edges
- Preserve existing node IDs for unchanged components
- Write updated
.archrip/architecture.json
Mode 2: Apply requested changes (with arguments)
If $ARGUMENTS is provided, apply the user's requested changes:
- Add/remove/modify nodes
- Fix relationships
- Add/modify use cases
- Adjust layer assignments
- Add database schemas
- Add/modify metadata entries
- Improve descriptions
Write the updated .archrip/architecture.json.
Schema constraints (apply on every write)
When adding or splitting nodes, follow the same rules as the scan skill:
- One node per real component. Avoid umbrella nodes that bundle siblings — each Controller, UseCase, abstract Repository, Repository implementation, and Domain Entity is normally its own node. See archrip-scan/schema-reference.md → Node Granularity.
- Repository → Port pattern (DDD/Hex). Every abstract Repository becomes a
portnode in the application core; every implementation becomes anadapternode thatimplementsthe port. Use cases depend on the port, not the adapter. See archrip-scan/schema-reference.md → Repository → Port pattern. implementsedges flowadapter → port. Never point them at entities, adapters, or databases — that signals a missing port abstraction. See archrip-scan/schema-reference.md → Edge type semantics.
After Update
After writing the file, run npx archrip serve in the terminal to rebuild and preview the updated diagram.
$ARGUMENTS
04 同仓库更多 Skills
review-ux-diagnostics
Review UX and diagnostics (errors, hints, verbose mode)
★ 1
review-typescript-strict
TypeScript Strict Modeガイドラインを適用してコードレビュー・修正を行う。
★ 1
review-test-strategy
Review test strategy and regression resistance
★ 1
review-supply-chain
Review supply-chain and code-execution risks
★ 1
review-srp
Review codebase for SRP (Single Responsibility) and boundaries
★ 1
review-schema-first
Review schema as a single source of truth (Schema-first)
★ 1