Occamのロゴ

Occam

コミュニティ
somnus0x
occam

The simpler-thing test: before a fix ships, prove the smaller version doesn't work. Use when code feels overbuilt, when complexity needs challenging, or when asking 'is this necessary'.

概要

公開者somnus0x
リポジトリagt-skill-pack
スキル名occam
スター
74
フォーク
17
同梱ファイル
2
ライセンスApache-2.0
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 2個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Occam — The Simpler-Thing Test

You proposed a fix. Before it ships, prove the smaller version doesn't work.

Why

AI coding tools are biased toward comprehensive solutions. You ask for a bug fix, you get a new service with 10 columns, 3 methods, and wiring at 12 call sites. The bug needed one database constraint.

Occam forces a checkpoint: show the minimum version, the proposed version, and the overbuilt version side by side. Then justify why you're not shipping the smallest one.

This is NOT a veto. Some complexity is correct. The point is to make the trade explicit before you commit.

When to use

Explicit

Say /occam or "is this necessary", "feels complex", "simpler", "why is this so much code", "in my head it's just X".

Auto-fire (add to your CLAUDE.md)

Tell your AI to fire Occam automatically before finalizing any plan that introduces:

  • A new database table or column whose only purpose is the current bug
  • A new service, module, or provider
  • A new helper class wrapping a single existing call
  • A new background worker, cron, or scheduled job
  • A new event type, queue, or pub/sub channel
  • A new feature flag with only one consumer
  • A function longer than ~60 lines that's mostly defensive branches
  • Any abstraction justified by "we might need this later"

Don't fire for: one-line fixes, renames, test additions, config changes, following an existing pattern, or when you've explicitly said "go ahead, full version."

The four questions

Run in order. Show your work.

1. Restate the user-visible bug in one sentence

What does the user see today that they shouldn't? If you can't say it in one sentence, the fix scope is too broad.

Example: "When a user submits a form once, two identical records appear."

2. What is the minimum change that closes that exact sentence?

Often: one DB constraint, one early-return, one config flip, one bug fix in a single function. Resist the urge to refactor surrounding code.

Example: "Add a UNIQUE constraint. INSERT-or-skip on every request. ~30 LOC, no new module."

3. What does the proposed (larger) version cover that the minimum doesn't?

List the extra failure modes. Be specific. "Future-proofing" is not a failure mode — name the actual scenario.

Example: "The proposed version adds: pod-crash recovery via lease reclaim, in-flight observability via status field, full audit trail with error reasons."

4. Are those extra failure modes actually present today?

For each extra failure mode:

  • Has it happened in the last 30 days?
  • What's the user-visible cost if it happens once?
  • Can it be added later without a rewrite?

If speculative OR cheap to lose once OR can be grown additively later → minimum wins. If happening NOW and costs real money/trust → larger version wins.

Output format

Three columns, then a verdict:

MinimumProposedCould go further
WhatThe 1-sentence fixThe version under reviewThe maximally-defensive version
LOCestimateestimateestimate
Coverswhich failure modes+ extra failure modes+ everything imaginable
Leaveswhat's unprotectedwhat's still unprotectednothing (in theory)
Verdict: <Minimum | Proposed | Further>

Reason: <one sentence tying the verdict to question 4>

If wrong: <what evidence would change this verdict>

The "if wrong" line is the most important part. It names the condition that would upgrade the verdict — so the decision is reversible without re-running the full audit.

When NOT to apply

  • Real-money paths with no rollback. Contract state, balance flows, anything irreversible → default to maximum defensive.
  • User explicitly named the failure mode. They said "I want crash recovery" — don't re-litigate.
  • Following a binding spec. If the spec mandates the larger version, don't undermine it.
  • One-shot operations. Migrations, backfill scripts — defensive correctness is cheap when the code runs once and gets deleted.

Add to your CLAUDE.md

markdown
### Occam checkpoint
Before finalizing any plan that introduces a new table, service, module, worker,
queue, feature flag, or abstraction — run the Occam audit:
1. Restate the bug in one sentence
2. Show the minimum fix
3. Show what the proposed version adds
4. Ask: are those extra failure modes real, today, in production?
Output: three-tier comparison + verdict + "if wrong" condition.

Output discipline

When invoked:

  1. The one-sentence bug restatement
  2. The three-column comparison
  3. The verdict + reason + "if wrong" condition
  4. Nothing else

Keep it short. The longer the audit, the more it becomes part of the complexity it's auditing.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

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

The simpler-thing test: before a fix ships, prove the smaller version doesn't work. Use when code feels overbuilt, when complexity needs challenging, or when asking 'is this necessary'.

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

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

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

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

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

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

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

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

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

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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