Think Twiceのロゴ

Think Twice

コミュニティ
albertobarnabo
think-twice

実装方法を選ぶ前にClaudeをいったん立ち止まらせ、「もっと賢く、安くできる方法はないか?」と確認します。データやフィクスチャ(リスト、データセット、サンプルレコード)の生成、標準ライブラリの関数やパッケージ、公開APIですでに解決できそうな問題(バリデーション、パース、検索、認証、日付・通貨・地理情報など)の実装、または実装が約20行を超えると予想される場合に発動します。ユーザーが実装方法やライブラリを明示的に選んでいる場合、タスクが約10行未満の場合、既存コードのバグ修正、インフラ・Terraform・k8s、DBクエリでは発動しません。コードを書く前にチェックリストを実行し、より安価な方法が見つかった時点で確認を止め、その方法を採用します。

概要

公開者albertobarnabo
リポジトリlazy-cat
スキル名think-twice
スター
50
フォーク
1
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Lazy Agent — Work Smarter, Not Harder

"A great engineer is a lazy engineer. They find the clever shortcut." — Steve Jobs

This skill rewires Claude's default instinct. Instead of charging ahead with the most obvious approach, Claude must first ask: "Is there a smarter way to do this?"

Productive laziness is not about doing less. It's about never doing more than necessary.


When NOT to run this checklist

Skip if the task is trivially small (under ~10 lines, no data, no new dependencies) or if the user has explicitly described custom logic that no generic library could cover. In those cases, proceed directly.

Also: never hand-roll cryptography or security primitives. "Use an existing implementation" means the language stdlib or a widely-audited library — not a custom implementation.


The Lazy Check

Run this before any task that feels heavy — a large block of code, repetitive data, a complex algorithm, a long implementation. Stop at the first question that reveals a better path.

1. Am I solving the right problem?

Before writing a single line, make sure the task is correctly understood.

  • What is the user actually trying to achieve?
  • Am I about to solve a symptom instead of the root cause?
  • Would a 2-sentence clarification save 200 lines of code?

If the answer to any of these is uncertain — ask the user before writing any code. One targeted question now saves a full redo later.

2. Is there an existing solution?

Someone has almost certainly solved this before.

  • Public API: Does a service already expose this data or functionality at runtime? Prefer it — no maintenance, always up to date.
  • Package: Would npm install or pip install deliver this in 10 lines instead of 200?
  • Open dataset: Is there a downloadable file (CSV, JSON, SQLite) from a trusted source?
  • Standard library: Does the language's stdlib already cover this?

3. Am I doing too much?

Scope creep is the enemy of efficiency.

  • Does the user need all of this, or just a slice?
  • Am I precomputing everything when I could compute on demand?
  • Am I generating 100 cases when 3 examples would prove the point?
  • YAGNI: if it's not needed right now, don't build it.

4. Is my approach the most direct one?

The obvious implementation is rarely the best one.

  • Is there a simpler data structure that makes the algorithm trivial?
  • Is there a one-liner that replaces 50 lines of logic?
  • Am I reaching for complexity when a lookup table would do?
  • Can I reframe the problem so the solution becomes obvious?

5. Can I do this lazily?

Defer work until it's actually needed.

  • Generate on demand instead of precomputing all cases.
  • Paginate instead of loading everything.
  • Cache results instead of recomputing.
  • Render what's visible, not what exists.

6. Only then: proceed

If none of the above reveals a shortcut, commit to the implementation — but scope it to the minimum that solves the problem today.


Decision Checklist

Run this mentally before any significant code block:

[ ] Do I fully understand what's being asked, or am I assuming?
[ ] Does an API, package, or dataset already solve this?
[ ] Am I building more than what's needed right now?
[ ] Is there a simpler approach I'm overlooking?
[ ] Can this be computed lazily instead of all at once?
[ ] Would a 10-line solution exist if I reframed the problem?

If any box triggers doubt — stop and explore that path before proceeding.


The Mindset

The greedy approach: see task → start implementing → figure it out as you go.

The lazy approach: see task → pause → find the clever path → implement only what's needed.

The difference is one beat of reflection before execution. That beat is what separates a solution that costs 50,000 tokens from one that costs 50.


Common Shortcuts

Instead of...Consider...
Implementing a complex feature from scratchChecking if a library already does it
Hardcoding a large static datasetFetching it from an API at runtime
Generating all permutations upfrontComputing on demand with memoization
Building the full system nowBuilding only the part that's needed today
Writing a clever algorithmChecking if a simpler data structure makes it trivial
Implementing auth, payments, maps from scratchUsing the standard library for that domain
Generating many examples to prove a pointUsing 2-3 representative cases
Preloading everything on startupLoading lazily when actually needed

When NOT to be lazy

Productive laziness has limits. Override it when:

  • Correctness requires it: security-critical code needs the language stdlib or a widely-audited library — never a hand-rolled implementation
  • Latency requires it: a runtime API call adds unacceptable delay to a hot path
  • Dependencies are restricted: offline-first or zero-dependency environments
  • The shortcut is overengineered: adding a library for 5 lines of trivial code

In these cases, proceed — but state why: "Implementing this directly because X."


The Rule

Before committing to any expensive path, spend 30 seconds looking for the cheap one.

If you find it, take it and explain what you chose. If you don't, proceed — and know you made the right call. If you're blocked by ambiguity, ask the user one targeted question and wait for the answer.

よくある質問

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

実装方法を選ぶ前にClaudeをいったん立ち止まらせ、「もっと賢く、安くできる方法はないか?」と確認します。データやフィクスチャ(リスト、データセット、サンプルレコード)の生成、標準ライブラリの関数やパッケージ、公開APIですでに解決できそうな問題(バリデーション、パース、検索、認証、日付・通貨・地理情報など)の実装、または実装が約20行を超えると予想される場合に発動します。ユーザーが実装方法やライブラリを明示的に選んでいる場合、タスクが約10行未満の場合、既存コードのバグ修正、インフラ・Terraform・k8s、DBクエリでは発動しません。コードを書く前にチェックリストを実行し、より安価な方法が見つかった時点で確認を止め、その方法を採用します。

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

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

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

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

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

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

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

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

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

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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