From pdlc
Analyzes project architecture and generates/updates docs/ARCHITECTURE.md with service decomposition, communication, data architecture, observability, and scalability assessments.
How this skill is triggered — by the user, by Claude, or both
Slash command
/pdlc:pdlc-arch <项目 | 模块范围><项目 | 模块范围>This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
<!-- @include templates/prompts/iron-law.md -->
对当前项目架构进行全面分析,输出架构评估报告。
架构总览是 surface 型产物:
docs/ARCHITECTURE.md描述"系统当前长什么样",就地覆盖更新,不按日期累积多份文件。演进历史靠git log docs/ARCHITECTURE.md追溯。这与 per-feature 的docs/02_design/architecture/F-xxx-arch.md(ledger 型,记录"为某个 feature 为什么改架构")分工互补。
backend/ 和 frontend/ 下的所有服务和应用docs/02_design/architecture/ 下的 per-feature 架构 ledger(若有)*-arch-analysis.md(散落在 docs/02_design/architecture/ 或旧 review 目录,即 v1.0 的 v1..v5 累积模式),提示并移到 docs/.archive/architecture/,以最新一份作为 ARCHITECTURE.md 的起点docs/ARCHITECTURE.md(参考 templates/architecture-overview-template.md)⚠️ 必须写入磁盘,不可仅在对话中输出。
文件路径:docs/ARCHITECTURE.md(固定,就地覆盖)
文档顶部包含 PDLC 追溯头 + surface 标记:
<!-- artifact_type: surface -->
<!-- PDLC-TRACE -->
<!-- 功能名称: 架构总览 -->
<!-- 阶段: design -->
<!-- 创建时间: <执行时的实际 ISO 8601 时间戳> -->
报告内容:
创建后验证:确认 docs/ARCHITECTURE.md 已存在且为本次内容
ARCHITECTURE.md$ARGUMENTS
本命令的 handoff 输出:
✅ 架构总览已更新:docs/ARCHITECTURE.md
📦 surface 型就地覆盖(历史见 git log docs/ARCHITECTURE.md)
👉 下一步:(本次流程结束,无后续)
npx claudepluginhub kanfu-panda/pdlc-skills --plugin pdlcCreates, edits, and verifies skills using a test-driven development approach with pressure scenarios and subagents.