360 Secure SkillHub
360 安全技能中心

foundational-thinking

该 Skill 提供一组面向软件开发的设计原则,强调在编写逻辑前先明确数据形状、接口契约、单一事实来源和工作顺序,以减少重复与不一致。它不依赖工具,输出以文字指导为主。

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

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add 0xr3ngar/bstack/foundational-thinking
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
foundational-thinking
description
Apply before you write logic: the data shapes, the contracts between parts, the one source of truth, and the order of the work.
disable-model-invocation
true
license
MIT
compatibility
No tools needed.

Foundational-thinking

Get the data right and the code becomes obvious.

  • Name the shapes first: the stored record, the settings that a person writes, the payload between two parts. Write each one as an example before any function.
  • Keep one source of truth for each fact. Every other copy is derived from it by code, or checked by a test that fails when the two differ.
  • Follow the standard when there is one: a specification, the platform's model, the library's types. Name things as the domain names them. Do not invent a second vocabulary.
  • An interface takes what its caller knows and returns what its caller needs. Use one options object, not a row of optional parameters.
  • Ask what two actors share. If both can write it, give it one owner.
  • Order the work so that each step helps the next: remove dead code, then the shared types and contracts, then the features.