360 Secure SkillHub
360 安全技能中心

redesign-from-first-principles

该 Skill 是一套软件重构与设计指导:当新增需求遇到既有设计时,要求以从零构建的视角重新设计,优先删除与简化,迁移所有调用方并在同一次变更中移除旧路径,同时覆盖类型、测试、文档和示例;不包含可执行脚本或自动化分析工具。

分类:开发
0xr3ngar
热度 0.00
最近更新 2026-11-20 05:22:40

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add 0xr3ngar/bstack/redesign-from-first-principles
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
redesign-from-first-principles
description
Apply when a new requirement meets an existing design, and for every refactor.
disable-model-invocation
true
license
MIT
compatibility
No tools needed.

Redesign-from-first-principles

Do not bolt the change onto what exists. Design as if the requirement had been there from the first day.

  • Read every affected part and say what the current design is for.
  • Ask: if we wrote this from scratch today, with this requirement, what would we build? Existing tickets, stacks and code are inputs. They are not limits.
  • Prefer deleting to simplifying, simplifying to optimizing, and optimizing to automating. A refactor removes more than it adds. If it grows the code, name what the growth buys, or stop.
  • Never rebuild the old design under new names. Spend no work on code that the redesign deletes.
  • Move every caller to the new shape and delete the old path in the same change. No shims, and no old and new paths side by side.
  • Carry the change through every reference: types, tests, documents, examples, drawings.
  • Think the whole redesign through. Then deliver it in steps that each work.

A reviewer uses the same question as a verdict: is this what one would build from scratch for its requirements, and is it carried through every reference?