agentleFS
wxxzywxxzy/Claude-Code-Software-Studios/.claude/skills/studio-summarize-arch/SKILL.md

studio-summarize-arch

Skill1 starsChanged 3 months agoMITView on GitHub

【Studio】架构快照 — 汇总累积的 ADR 为最终态 → ARCHITECTURE-STATE.md。当用户说「总结下当前架构」时使用。

The file

Files
SKILL.md

技能:架构快照与总结 (/studio-summarize-arch)

执行代理: technical-architect (技术架构师)


概述 (Summary)

此技能用于在多个 ADR 被批准后,将零散的决策压缩并合并到一份 docs/arch/ARCHITECTURE-STATE.md (最终态架构文档) 中,从而减少代理每次会话时的上下文读取量,并确保新架构决策不会与旧决策冲突。

工作流 (Workflow)

  1. 扫描 (Scan): 架构师扫描 docs/arch/ADR-*.md 目录下的所有文件。
  2. 提取方案 (Options):
    • 方案 A: 全量更新。将所有活跃 ADR 映射到最终态文档。
    • 方案 B: 增量更新。仅将最新通过的 ADR 同步到最终态。
  3. 草案展示 (Draft): 展示 docs/arch/ARCHITECTURE-STATE.md 的快照。
  4. 批准与更新 (Approval): 用户批准后,架构师重写或更新该文件,并可选地对旧 ADR 标记为 Approved & Merged。

成功门控 (Success Gate)

  • 产出了 docs/arch/ARCHITECTURE-STATE.md。
  • 新文档包含了所有核心决策(数据库结构、API 定义、技术栈)。
  • 上下文效率明显提升。

输出约束 (Output Budget)

[强制] 写入文件后,返回主上下文只输出:

架构快照已更新。

- `docs/arch/ARCHITECTURE-STATE.md` — 合并了 [X] 个 ADR
- 覆盖决策:[技术栈 / API 契约 / 数据库结构,列出命中的类别]
- 标记为 Merged:[ADR 编号列表]

不得在返回摘要中重复 ARCHITECTURE-STATE.md 正文内容。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.