360 Secure SkillHub
360 安全技能中心

principle-foundational-thinking

提供软件开发前置思考建议:先定义核心类型与数据结构、梳理访问路径,决定脚手架与功能实现的先后,并在多个执行者共享状态前评估并发修改风险。

分类:开发
backnotprop
热度 67.77
最近更新 2026-11-24 05:23:51

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add backnotprop/pstack/principle-foundational-thinking
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
principle-foundational-thinking
description
Apply before writing logic: choosing core types and data structures, sequencing scaffold-vs-feature work, asking what concurrent actors share. Get the data structures right so downstream code becomes obvious.
disable-model-invocation
true

Foundational Thinking

Get the data shape right before writing logic. Define core types early, trace every access pattern, and choose structures that match the dominant paths. DRY the structure, not every line.

Before sharing state between actors, ask what happens if another actor modifies it concurrently. If the answer is not "nothing", isolate.

Scaffold first. Whatever helps every later phase (CI, tests, shared types) goes first, after removing dead code. Keep commits small and single-purpose.