360 Secure SkillHub
360 安全技能中心

principle-foundational-thinking

该 Skill 提供编写逻辑前的 foundational thinking 指导:先确定核心类型与数据结构,梳理访问路径,判断并发共享状态是否需要隔离,并优先搭建 CI、测试和共享类型等脚手架,保持提交小而单一。

分类:开发
mdsmithaustin
热度 0.00
最近更新 2026-11-26 11:31:37

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add mdsmithaustin/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.

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.