mcpField
A
architect

architect

github.com/yeachan-heo其他40.7k8 次安装今天更新
代码仓库

关于 architect

architect 是用于规划跨越模块或 API 边界变更的技能。它比较不同设计并记录选择理由,再将决策和不变量交给实现阶段;本身不负责实现变更。

主要功能

  1. 01界定问题与不变量
  2. 02探索多种备选设计
  3. 03比较边界与迁移成本
  4. 04记录决策及未选方案
  5. 05将设计交接给实现阶段

适用场景

  1. 01规划新模块
  2. 02更改共享 API 或函数签名
  3. 03为多个使用方选择数据结构

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/yeachan-heo/oh-my-claudecode --skill architect

安装后在 Claude Code 中输入/architect确认已加载。

附带文件references/design-red-flags.mdreferences/rationale-template.md

README 原文English

来自项目 README

README 暂无中文译文,以下为英文原文;中文介绍见上方。

Architect

Design before steel. When a change crosses a function boundary, explore competing shapes first and commit to one with a written rationale — the cheapest moment to reject a design is before it has code on it.

When to use

  • new module, new API, changed signature other files call
  • a data shape that more than one consumer will encode
  • the user asks for a design or says "before you build this..."

When not to use

  • contained single-file changes — build directly
  • reviewing an existing design — review

Workflow

  1. Frame: name the problem in one sentence, the consumers of the design, and the invariants it must preserve.
  2. Explore 2-3 competing designs in parallel — dispatch oh-my-claudecode:architect subagents, each producing: the core types, the module boundary, the API surface, and how each invariant is preserved. Distinct shapes, not variations of one idea.
  3. Compare criterion by criterion: API surface size, boundary clarity, invariant preservation, migration cost, deletion ease. Tie-break toward the smaller API and cleaner boundary (minimal-code-discipline).
  4. Record the decision: chosen design, why the losers lost, and an accepted-deviations register the implementation will reconcile against (each deviation: what changed vs the sketch, and the acceptance source).
  5. Hand off: the design and its invariant list travel with the execute brief; implementation reconciles deviations rather than rediscovering the design.

Rules

  • No design is recorded without at least one rejected alternative and the reason it lost.
  • Types before wiring; data shapes before functions that move them.
  • The output is a design plus a decision record, never an implementation.

评论

支持 Markdown