360 Secure SkillHub
360 安全技能中心

principle-foundational-thinking

提供软件设计的前置思考原则:先定义核心类型与数据结构、梳理全部访问路径,在共享状态前评估并发修改风险并做隔离;同时先搭脚手架、清理死代码、保持提交小且单一目的,并可衔接代码库设计与领域建模。

分类:开发
christofferbergj
热度 0.00
最近更新 2026-11-17 17:08:41

安装

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

For module/interface reasoning invoke /codebase-design; for accepted project terminology, relationships, or ownership changes invoke /domain-modeling and reconcile the canonical project artifacts.