AGENT SKILL

trove-principle-data-shape

Foundational Thinking — get the data shape right before writing logic. Choose core types and structures first; a late data-structure change is a rewrite, early it is a one-line diff. Use before writing logic, choosing core types, or sequencing scaffold-vs-feature work.

License 许可
MIT
所属仓库
bravew/trove
最近更新
2026-11-12
Stars
★ 10
Forks
1

01 前言 Front Matter

name
trove-principle-data-shape
metadata
{ "trove-category": "code", "trove-category-label": "Code" }
description
Foundational Thinking — get the data shape right before writing logic. Choose core types and structures first; a late data-structure change is a rewrite, early it is a one-line diff. Use before writing logic, choosing core types, or sequencing scaffold-vs-feature work.
when_to_use
what's the data shape; model this first; foundational thinking
user-invocable
true

02 资源文件 1

03 SKILL.md 正文

<!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly --> <!-- Regenerate: bun run build:skills -->

Principle: Foundational Thinking

Get the data shape right before writing logic. Structural decisions protect option value: a data-structure change made late is a rewrite; made early it is often a one-line diff.

  • Name the core types and how data flows between them before writing behavior.
  • Scaffold-first test: does every subsequent phase benefit from this structure existing? If yes, build it first.
  • Ask what concurrent actors share before you let them share it.
  • Subtraction precedes scaffolding: remove dead weight, then build on the simpler base.

Pairs with trove-architect (sketch the shape) and trove-principle-type-discipline (make the shape honest).

04 同仓库更多 Skills