Speq Design Philosophyのロゴ

Speq Design Philosophy

コミュニティ
marconae
speq-design-philosophy

Complexity-management design principles (deep modules, information hiding, dependency direction) for speq agents like /speq-plan or /speq-implement. Not for general design work.

概要

公開者marconae
リポジトリspeq-skill
スキル名speq-design-philosophy
スター
54
フォーク
10
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    marconaeがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Speq Design Philosophy」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/marconae/speq-skill/tree/main/.claude/skills/speq-design-philosophy
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/marconae/speq-skill.git /tmp/speq-skill
mkdir -p .claude/skills
cp -r /tmp/speq-skill/.claude/skills/speq-design-philosophy .claude/skills/speq-design-philosophy
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでSpeq Design Philosophyを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にSpeq Design Philosophyを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Speq Design Philosophyは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Design Philosophy

Complexity-management framework. Draws on J. Ousterhout's A Philosophy of Software Design and the dependency rule from R. Martin's Clean Architecture.

Core Principle

Complexity is what erodes a system's understandability over time. Judge every design decision by whether it adds or removes complexity. Do not judge by line count, module count, or named patterns.

Deep Modules

Weigh a module by what it does for callers relative to what its interface costs them to learn. Deep: the interface is far easier to use than the internals would be to rebuild. Shallow: learning the interface costs almost as much as writing the code yourself.

SignalFix
Interface as complex as a caller would write themselvesDeepen it — absorb more complexity, expose less
Many small modules named for a role, not a responsibility (-Manager, -Handler, -Processor)"Classitis" — merge related shallow modules into one deeper one
A function whose entire body is a call to another function with the same argumentsMerge it into whichever side actually holds logic

Depth, not size, decides whether an abstraction earns its place.

Information Hiding & Coupling

A module is well-designed when the rest of the system stays ignorant of a decision it makes internally. Coupling: the same decision surfaces in more than one module. Treat coupling as the defect class that deserves the closest attention.

  • Temporal coupling: modules organized around execution order (read, then parse, then write) instead of around what each stage knows. Every stage then carries the same format knowledge.
  • Implicit coupling: two modules independently assume the same data format, protocol, or convention, with nothing enforcing agreement.

Fix: combine the modules that share the decision, or give the decision its own module and make both depend on it.

General- vs. Special-Purpose Modules

Test: an interface handles every need the code has today (see /speq-code-guardrails' YAGNI Checks for the "not tomorrow's" half) without forcing narrow, special-case methods onto callers.

A configuration parameter is a decision the module declined to make. Prefer a sensible default, auto-detection, or elimination.

Strategic vs. Tactical Programming

Tactical: ship the feature, leave the module harder to work with. Strategic: invest 10-20% of every change in design quality, not a separate cleanup phase. Flag a pattern of tactical shipping as a risk. Do not emulate it.

Comments as Design Intent

Per /speq-code-guardrails' Comments rule: a public/interface doc comment states design intent, not just purpose. If the comment is hard to write, the abstraction usually has no coherent shape yet. This does not relax the ban on inline or private-method comments.

Dependencies & Boundaries

Per Martin's Clean Architecture:

  • Dependencies point from volatile to stable. Business logic never names a delivery mechanism, storage engine, or framework.
  • Business logic performs no I/O and reads no ambient state.
  • The consumer defines the abstraction it needs, in its own vocabulary — never shaped around a provider's API (Dependency Inversion).
  • Construct concrete implementations only at the entry point; no module builds its own dependencies.
  • No cycles in the module dependency graph.
  • Group modules by reason to change, not by technical role.
  • Extend by adding a case, not by editing a dispatch (Open/Closed).

Quick Diagnostic

If a change introduces a new module, interface, or boundary, answer every question. No silent pass. A "no" names the fix. A change that introduces none of these can skip the table.

QuestionIf no
Does a one-sentence summary capture what a module is responsible for?It's doing too much, or nothing coherent — split it
Is calling the module noticeably easier than reimplementing it would be?The interface costs more than it saves — hide more, expose less
Would changing how a module works internally force an edit anywhere outside it?A decision has leaked across a boundary — pull it into one owning module
Does a public doc comment explain the reasoning behind an abstraction, not only restate its name?Rewrite it — resistance to writing it usually means the design needs rework
Is there exactly one module that owns each significant design decision?Reorganize by what code knows, not by when it executes
Could someone unfamiliar with the codebase tell where one module ends and the next begins, without reading either's internals?Simplify the interfaces, or state the boundary in the interface doc comment
Does any tactical shortcut in this change have a scheduled follow-up to revisit it?Schedule one, or reconsider taking the shortcut at all
Does business logic depend only inward — never on a delivery mechanism, storage engine, or framework?Invert the dependency; the consumer defines the abstraction

Attribution

Draws on established practice, including J. Ousterhout (A Philosophy of Software Design), R. Martin (Clean Architecture), and D. Parnas (information hiding). Inspired by the wondelai/skills collection.

よくある質問

AIスキル「Speq Design Philosophy」では何ができますか?

Complexity-management design principles (deep modules, information hiding, dependency direction) for speq agents like /speq-plan or /speq-implement. Not for general design work.

TypingMindでSpeq Design Philosophyを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Speq Design Philosophyはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにSpeq Design Philosophyをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/marconae/speq-skill/tree/main/.claude/skills/speq-design-philosophyを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Speq Design Philosophyを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Speq Design Philosophyで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもSpeq Design Philosophyを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Speq Design Philosophy」は無料ですか?

はい。marconaeがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇