Architecture Decisionsのロゴ

Architecture Decisions

コミュニティ
UnpaidAttention
architecture-decisions

Choose between competing technical approaches and make design decisions with an explicit trade-off order. Trigger this when a task requires selecting among 2+ viable designs — "should we use X or Y", designing a schema, shaping a public API, choosing a storage/queue/cache mechanism, deciding whether to add a dependency, or deciding whether to introduce an abstraction. Do NOT trigger for initial request parsing (use task-planning), for line-level style questions (use implementation-standards), or when the codebase already has an established pattern for this exact problem — in that case, follow the existing pattern without deliberation.

概要

公開者UnpaidAttention
リポジトリfable5-methodology
スキル名architecture-decisions
スター
94
フォーク
21
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Architecture Decisions

Pick between approaches quickly, with an explicit priority order, weighted by how expensive the decision is to reverse.

Step 1: Check for a decision to make at all

Grep the codebase for how this problem is already solved here (existing cache? existing error envelope? existing job runner?). If an established pattern exists, use it — consistency with the system beats a locally better choice. Only proceed to Step 2 when the problem is genuinely new to this codebase or the existing pattern demonstrably fails a hard requirement.

Step 2: Generate 2–3 candidates, no more

For each candidate write three lines:

  1. Mechanism, one sentence.
  2. Worst failure mode — what happens when the dependency is down, input is malformed, load spikes.
  3. What it makes hard later — the concrete thing, not "less flexible".

If you have more than three candidates, you haven't understood the constraints; re-read them.

Step 3: Apply the trade-off priority order

Earlier beats later unless the user explicitly reorders:

  1. Correctness on known inputs — including the edge cases this data will actually contain.
  2. Failure behavior — prefer designs that fail loudly, early, and partially over silently, late, and totally.
  3. Simplicity / reviewability — could a competent stranger understand it in one read?
  4. Consistency with the existing system.
  5. Extensibility — only for axes of change with concrete evidence (a second case exists or is scheduled). Speculative flexibility loses to simplicity, always.
  6. Performance — only past correctness, and only where measured or obviously hot (per-request loop, O(n²) on unbounded n, I/O inside a loop). No restructuring without a number.

Kill any candidate that fails a hard constraint (correctness, explicit user requirement). Among survivors, take the simplest that doesn't foreclose a known future need.

Step 4: Calibrate deliberation to reversibility

  • Switching later costs < 1 hour → pick the more conventional option NOW and move on. Close calls between good options don't matter; record the choice in one line.
  • Switching later means data migration, breaking API consumers, or redone work measured in days → slow down; if the user's context could change the answer, ask one batched question with your recommendation as the default.

Step 5: Dependency sub-decision

Adding a dependency IS an architecture decision. In order:

  1. Stdlib or an already-installed dependency does it (check the lockfile, not memory)? → use that.
  2. Hand-rolled version is <~50 lines with no tricky edges? → hand-roll. Never hand-roll dates/timezones, crypto, unicode handling, or parsing of established formats — these are always tricky.
  3. Otherwise: one boring, widely-used, maintained, license-compatible library. Never a framework to use one function.

Step 6: Abstraction sub-decision

Introduce an interface/base class/plugin point only when two concrete cases already exist or a second is actually scheduled. One implementation → write the direct version and leave a one-line note naming the upgrade path. When you break any default pattern, leave a comment naming the constraint that forced it — the constraint, not a narration.

Default patterns (use unless codebase or user overrides)

  • Pure logic at the core; I/O (network, disk, DB, clock, randomness) at the edges, passed in.
  • Errors via the language's native mechanism; fail fast on programmer errors; contextualize expected failures; never catch-and-continue silently.
  • Persistence invariants live in the database (constraints, unique indexes, FKs), not only in app code.
  • Validate at trust boundaries; trust internally.
  • Composition over inheritance; functions over classes when no state is carried.

Worked example

Task: "Products API is slow; add caching to product lookups."

  • Step 1: grep finds redis in the lockfile, used for sessions. Candidate space narrows.
  • Candidates: (A) Redis cache-aside, TTL 5 min. (B) In-process LRU per instance. (C) Materialized view refreshed on write.
  • Failure modes: A — stale up to TTL; Redis outage degrades to DB (fine). B — inconsistent across instances after writes (there are 4 instances → correctness problem for post-update reads). C — write amplification, and the write path is owned by another team (hard constraint).
  • Kill C (constraint), kill B (fails correctness at priority 1 given multi-instance writes).
  • Choose A. Reversibility: swapping cache strategy later ≈ an hour → decide now, no user question needed. Record: "Cache-aside via existing Redis, TTL 5m, key product:{id}, invalidated on update."

Done when

The chosen approach is written in 1–3 lines (mechanism, key parameters, why-over-runner-up), every rejected candidate has a named reason tied to the priority order or a hard constraint, and any expensive-to-reverse decision has either user sign-off or a stated assumption at delivery. Then implement.

よくある質問

AIスキル「Architecture Decisions」では何ができますか?

Choose between competing technical approaches and make design decisions with an explicit trade-off order. Trigger this when a task requires selecting among 2+ viable designs — "should we use X or Y", designing a schema, shaping a public API, choosing a storage/queue/cache mechanism, deciding whether to add a dependency, or deciding whether to introduce an abstraction. Do NOT trigger for initial request parsing (use task-planning), for line-level style questions (use implementation-standards), or when the codebase already has an established pattern for this exact problem — in that case, foll...

TypingMindでArchitecture Decisionsを使うメリットは何ですか?

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

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

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

Architecture Decisionsを使えるAIモデルはどれですか?

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

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

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

AIスキル「Architecture Decisions」は無料ですか?

UnpaidAttentionがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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