improve-codebase-architecture — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited improve-codebase-architecture (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
暴露 architectural friction,并提出 deepening opportunities:把 shallow modules 变成 deep modules 的 refactors。目标是 testability 和 AI-navigability。
在每条 suggestion 中精确使用这些 terms。语言一致就是重点,不要漂移到 “component”、“service”、“API” 或 “boundary”。完整定义见 LANGUAGE.md。
关键 principles(完整列表见 LANGUAGE.md):
这个 skill 受项目 domain model 启发。Domain language 给好的 seams 命名;ADRs 记录 skill 不应重新争论的 decisions。
先阅读项目的 domain glossary,以及你正在触碰区域的 ADRs。
然后使用 Agent tool,并设置 subagent_type=Explore 来遍历 codebase。不要遵循僵硬 heuristics;有机探索,并记录你体验到 friction 的地方:
对任何你怀疑 shallow 的东西应用 deletion test:删除它会集中 complexity,还是只是移动它?“yes, concentrates” 是你想要的信号。
展示 deepening opportunities 的编号列表。对每个 candidate:
使用 CONTEXT.md vocabulary 表达 domain,使用 [LANGUAGE.md](LANGUAGE.md) vocabulary 表达 architecture。 如果 CONTEXT.md 定义了 "Order",就谈 "the Order intake module",不要说 "the FooBarHandler",也不要说 "the Order service"。
ADR conflicts:如果 candidate 与现有 ADR 冲突,只有当 friction 真实到值得重新打开 ADR 时才提出。清晰标记(例如 _"contradicts ADR-0007 — but worth reopening because…"_)。不要列出 ADR 禁止的每个理论 refactor。
此时不要提出 interfaces。询问用户:"Which of these would you like to explore?"
用户选定 candidate 后,进入 grilling conversation。和他们一起走 design tree:constraints、dependencies、deepened module 的形状、seam 后面是什么、哪些 tests 能存活。
当 decisions crystallize 时,side effects 立即发生:
CONTEXT.md,纪律与 /grill-with-docs 相同(见 CONTEXT-FORMAT.md)。如果文件不存在,惰性创建。CONTEXT.md。~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.