本文へスキップ
Skillpedia
一般的なプログラミング15k · #10978

principle-foundational-thinking

できること

このスキルは、ロジックを書く前に、データの形と作業の順序を設計する規則を、アシスタントに与えます。しっかりした土台と、書き直しの少なさを求めるエンジニア向けです。

使う場面

  • ✓中核となる型やデータ構造を選ぼうとしているとき。
  • ✓セットアップの作業を、機能より先に行うべきか判断しているとき。
  • ✓複数の部分が、同じ共有データを変えるかもしれないとき。

スキルのリンク

https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/principle-foundational-thinking/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/principle-foundational-thinking/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“同期ロジックを書く前に、コアのデータ型を正しく決めて、残りを単純にできるように手伝ってください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

アシスタントは、まずコアのデータ形式を定義し、それがどうアクセスされるかを追い、テストや型などの共有の土台を機能より先に並べます。新しい土台を加える前に、不要なコードを削除します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Foundational Thinking

Structural decisions protect option value. Code-level decisions protect simplicity.

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

At code level, DRY the structure, not every line. Types and data models should converge. Three similar statements still beat a premature abstraction. Prefer explicit over clever. Test behavior and edge cases, not line counts.

Concurrency corollary. Before sharing state between actors, ask "what happens if another actor modifies this concurrently?" If not "nothing", isolate.

Scaffold first. If something helps every later phase, do it first. Ask "does every subsequent phase benefit from this existing?" CI, linting, test infrastructure, and shared types are scaffold. Sequence for option value: setup before features, tests before fixes. Keep commits small and single-purpose.

Each increment should land a coherent abstraction or deepen one that exists. Do not spread a new capability across callers as special-case coordination.

Subtraction comes before scaffolding. Remove dead code first, then lay foundations.

よくある質問

なぜデータ構造を最初に正しくするのですか?

データの形が主要な経路に合えば、その後のコードは自明になることが多いからです。

すべてを抽象化するという意味ですか?

いいえ。スキルは明示的なコードを優先し、早すぎる抽象化に警告します。

共有状態はどうしますか?

並行するアクターが共有状態を本当に必要とするかを問い、必要なければ隔離します。

詳細

作者による元の説明

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.

repo: cursor/plugins

人気

GitHubのスター
15k
ランキング
#10978
ライセンス
—
更新日
2026/10/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル