🛠️ Oracle
@steipete/oracle CLIを活用し、プロンプトと関連ファイルをまとめて、別のモデルによるレビュー(APIまたはブラウザ)を受け、デバッグやリファクタリング、設計チェック、クロスバリデーションなどを効率的に行うSkill。
📜 元の英語説明(参考)
Use the @steipete/oracle CLI to bundle a prompt plus the right files and get a second-model review (API or browser) for debugging, refactors, design checks, or cross-validation.
🇯🇵 日本人クリエイター向け解説
@steipete/oracle CLIを活用し、プロンプトと関連ファイルをまとめて、別のモデルによるレビュー(APIまたはブラウザ)を受け、デバッグやリファクタリング、設計チェック、クロスバリデーションなどを効率的に行うSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o oracle.zip https://jpskill.com/download/5168.zip && unzip -o oracle.zip && rm oracle.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/5168.zip -OutFile "$d\oracle.zip"; Expand-Archive "$d\oracle.zip" -DestinationPath $d -Force; ri "$d\oracle.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
oracle.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
oracleフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-17
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
💬 こう話しかけるだけ — サンプルプロンプト
- › Oracle を使って、最小構成のサンプルコードを示して
- › Oracle の主な使い方と注意点を教えて
- › Oracle を既存プロジェクトに組み込む方法を教えて
これをClaude Code に貼るだけで、このSkillが自動発動します。
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
[Skill 名] oracle
Oracle (CLI) — 最適な使い方
Oracle は、プロンプトと選択されたファイルを1つの「ワンショット」リクエストにまとめ、別のモデルが実際のレポジトリコンテキスト(APIまたはブラウザ自動化)で回答できるようにします。出力は助言として扱い、コードベースとテストに対して検証してください。
主な使用例(ブラウザ、GPT‑5.2 Pro)
ここでのデフォルトのワークフローは、ChatGPT で GPT‑5.2 Pro と --engine browser を使用することです。これは「ヒューマン・イン・ザ・ループ」パスであり、約10分から1時間かかる場合があります。再接続可能な保存されたセッションを期待してください。
推奨されるデフォルト設定:
- エンジン: ブラウザ (
--engine browser) - モデル: GPT‑5.2 Pro (
--model gpt-5.2-proまたは ChatGPT のピッカーラベル(例:--model "5.2 Pro")のいずれか) - 添付ファイル: ディレクトリ/グロブ + 除外。シークレットは避けてください。
ゴールデンパス(高速 + 信頼性)
- 厳密なファイルセットを選択します(真実を含む最小限のファイル数)。
- 送信する内容をプレビューします(必要に応じて
--dry-run+--files-report)。 - 通常の GPT‑5.2 Pro ChatGPT ワークフローのためにブラウザモードで実行します。API は明示的に必要な場合にのみ使用してください。
- 実行がデタッチまたはタイムアウトした場合: 保存されたセッションに再接続します(再実行しないでください)。
コマンド(推奨)
-
ヘルプを表示(セッションごとに1回):
npx -y @steipete/oracle --help
-
プレビュー(トークンなし):
npx -y @steipete/oracle --dry-run summary -p "<task>" --file "src/**" --file "!**/*.test.*"npx -y @steipete/oracle --dry-run full -p "<task>" --file "src/**"
-
トークン/コストの健全性チェック:
npx -y @steipete/oracle --dry-run summary --files-report -p "<task>" --file "src/**"
-
ブラウザ実行(メインパス; 長時間実行は正常です):
npx -y @steipete/oracle --engine browser --model gpt-5.2-pro -p "<task>" --file "src/**"
-
手動ペーストのフォールバック(バンドルを組み立て、クリップボードにコピー):
npx -y @steipete/oracle --render --copy -p "<task>" --file "src/**"- 注:
--copyは--copy-markdownの隠しエイリアスです。
ファイルの添付 (--file)
--file はファイル、ディレクトリ、およびグロブを受け入れます。複数回渡すことができ、エントリはカンマ区切りにできます。
-
含める:
--file "src/**"(ディレクトリグロブ)--file src/index.ts(リテラルファイル)--file docs --file README.md(リテラルディレクトリ + ファイル)
-
除外(
!をプレフィックスとして使用):--file "src/**" --file "!src/**/*.test.ts" --file "!**/*.snap"
-
デフォルト(実装からの重要な動作):
- デフォルトで無視されるディレクトリ:
node_modules,dist,coverage,.git,.turbo,.next,build,tmp(これらをリテラルディレクトリ/ファイルとして明示的に渡さない限りスキップされます)。 - グロブ展開時に
.gitignoreを尊重します。 - シンボリックリンクをたどりません(グロブ展開は
followSymbolicLinks: falseを使用します)。 - ドットファイルは、ドットセグメントを含むパターン(例:
--file ".github/**")で明示的にオプトインしない限りフィルタリングされます。 - ハードキャップ: 1 MBを超えるファイルは拒否されます(ファイルを分割するか、マッチを絞り込んでください)。
- デフォルトで無視されるディレクトリ:
予算 + 可観測性
- 目標: 総入力トークン数を約196k未満に保ちます。
--files-report(および/または--dry-run json) を使用して、コストを費やす前にトークンを大量消費している箇所を特定します。- 隠された/高度な設定が必要な場合:
npx -y @steipete/oracle --help --verbose。
エンジン(API vs ブラウザ)
- 自動選択:
OPENAI_API_KEYが設定されている場合はapiを使用し、それ以外の場合はbrowserを使用します。 - ブラウザエンジンは GPT + Gemini のみをサポートします。Claude/Grok/Codex またはマルチモデル実行には
--engine apiを使用してください。 - API 実行は使用コストが発生するため、開始前に明示的なユーザーの同意が必要です。
- ブラウザ添付ファイル:
--browser-attachments auto|never|always(約60k文字まではインラインで貼り付け、それ以上はアップロードします)。
- リモートブラウザホスト(サインインしたマシンが自動化を実行):
- ホスト:
oracle serve --host 0.0.0.0 --port 9473 --token <secret> - クライアント:
oracle --engine browser --remote-host <host:port> --remote-token <secret> -p "<task>" --file "src/**"
- ホスト:
セッション + スラッグ(作業を失わないために)
~/.oracle/sessionsに保存されます(ORACLE_HOME_DIRで上書き可能)。- 実行がデタッチされたり、時間がかかったりする場合があります(ブラウザ + GPT‑5.2 Pro ではよくあります)。CLI がタイムアウトした場合: 再実行せず、再接続してください。
- リスト:
oracle status --hours 72 - 接続:
oracle session <id> --render
- リスト:
- セッション ID を読みやすく保つために
--slug "<3-5 words>"を使用してください。 - 重複プロンプトガードが存在します。本当に新しい実行が必要な場合にのみ
--forceを使用してください。
プロンプトテンプレート(高シグナル)
Oracle はプロジェクト知識がゼロの状態から始まります。モデルがスタック、ビルドツール、規約、「明白な」パスを推測できないと仮定してください。以下を含めてください:
- プロジェクトの概要(スタック + ビルド/テストコマンド + プラットフォームの制約)。
- 「どこに何があるか」(主要なディレクトリ、エントリポイント、設定ファイル、依存関係の境界)。
- 正確な質問 + 試したこと + エラーテキスト(そのまま)。
- 制約(「X を変更しない」、「公開 API を維持する」、「パフォーマンス予算」など)。
- 望ましい出力(「パッチ計画 + テストを返す」、「リスクの高い仮定をリストする」、「トレードオフを伴う3つのオプションを提示する」)。
「網羅的なプロンプト」パターン(後で復元するため)
これが長い調査になることがわかっている場合は、後で単独で機能するプロンプトを作成してください。
- 上部: 6〜30文のプロジェクト概要 + 現在の目標。
- 中央: 具体的な再現手順 + 正確なエラー + すでに試したこと。
- 下部: 新しいモデルが完全に理解するために必要なすべてのコンテキストファイル(エントリポイント、設定、主要モジュール、ドキュメント)を添付します。
後で同じコンテキストを再現する必要がある場合は、同じプロンプトと --file … セットで再実行してください(Oracle の実行はワンショットであり、モデルは以前の実行を記憶しません)。
安全性
- デフォルトではシークレット(
.env、キーファイル、認証トークン)を添付しないでください。積極的に編集し、必要なものだけを共有してください。 - 「十分なコンテキスト」を優先してください。少ないファイルとより良いプロンプトは、レポジトリ全体のダンプよりも優れています。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Oracle (CLI) — best use
Oracle bundles your prompt + selected files into one “one-shot” request so another model can answer with real repo context (API or browser automation). Treat outputs as advisory: verify against the codebase + tests.
Main use case (browser, GPT‑5.2 Pro)
Default workflow here: --engine browser with GPT‑5.2 Pro in ChatGPT. This is the “human in the loop” path: it can take ~10 minutes to ~1 hour; expect a stored session you can reattach to.
Recommended defaults:
- Engine: browser (
--engine browser) - Model: GPT‑5.2 Pro (either
--model gpt-5.2-proor a ChatGPT picker label like--model "5.2 Pro") - Attachments: directories/globs + excludes; avoid secrets.
Golden path (fast + reliable)
- Pick a tight file set (fewest files that still contain the truth).
- Preview what you’re about to send (
--dry-run+--files-reportwhen needed). - Run in browser mode for the usual GPT‑5.2 Pro ChatGPT workflow; use API only when you explicitly want it.
- If the run detaches/timeouts: reattach to the stored session (don’t re-run).
Commands (preferred)
-
Show help (once/session):
npx -y @steipete/oracle --help
-
Preview (no tokens):
npx -y @steipete/oracle --dry-run summary -p "<task>" --file "src/**" --file "!**/*.test.*"npx -y @steipete/oracle --dry-run full -p "<task>" --file "src/**"
-
Token/cost sanity:
npx -y @steipete/oracle --dry-run summary --files-report -p "<task>" --file "src/**"
-
Browser run (main path; long-running is normal):
npx -y @steipete/oracle --engine browser --model gpt-5.2-pro -p "<task>" --file "src/**"
-
Manual paste fallback (assemble bundle, copy to clipboard):
npx -y @steipete/oracle --render --copy -p "<task>" --file "src/**"- Note:
--copyis a hidden alias for--copy-markdown.
Attaching files (--file)
--file accepts files, directories, and globs. You can pass it multiple times; entries can be comma-separated.
-
Include:
--file "src/**"(directory glob)--file src/index.ts(literal file)--file docs --file README.md(literal directory + file)
-
Exclude (prefix with
!):--file "src/**" --file "!src/**/*.test.ts" --file "!**/*.snap"
-
Defaults (important behavior from the implementation):
- Default-ignored dirs:
node_modules,dist,coverage,.git,.turbo,.next,build,tmp(skipped unless you explicitly pass them as literal dirs/files). - Honors
.gitignorewhen expanding globs. - Does not follow symlinks (glob expansion uses
followSymbolicLinks: false). - Dotfiles are filtered unless you explicitly opt in with a pattern that includes a dot-segment (e.g.
--file ".github/**"). - Hard cap: files > 1 MB are rejected (split files or narrow the match).
- Default-ignored dirs:
Budget + observability
- Target: keep total input under ~196k tokens.
- Use
--files-report(and/or--dry-run json) to spot the token hogs before spending. - If you need hidden/advanced knobs:
npx -y @steipete/oracle --help --verbose.
Engines (API vs browser)
- Auto-pick: uses
apiwhenOPENAI_API_KEYis set, otherwisebrowser. - Browser engine supports GPT + Gemini only; use
--engine apifor Claude/Grok/Codex or multi-model runs. - API runs require explicit user consent before starting because they incur usage costs.
- Browser attachments:
--browser-attachments auto|never|always(auto pastes inline up to ~60k chars then uploads).
- Remote browser host (signed-in machine runs automation):
- Host:
oracle serve --host 0.0.0.0 --port 9473 --token <secret> - Client:
oracle --engine browser --remote-host <host:port> --remote-token <secret> -p "<task>" --file "src/**"
- Host:
Sessions + slugs (don’t lose work)
- Stored under
~/.oracle/sessions(override withORACLE_HOME_DIR). - Runs may detach or take a long time (browser + GPT‑5.2 Pro often does). If the CLI times out: don’t re-run; reattach.
- List:
oracle status --hours 72 - Attach:
oracle session <id> --render
- List:
- Use
--slug "<3-5 words>"to keep session IDs readable. - Duplicate prompt guard exists; use
--forceonly when you truly want a fresh run.
Prompt template (high signal)
Oracle starts with zero project knowledge. Assume the model cannot infer your stack, build tooling, conventions, or “obvious” paths. Include:
- Project briefing (stack + build/test commands + platform constraints).
- “Where things live” (key directories, entrypoints, config files, dependency boundaries).
- Exact question + what you tried + the error text (verbatim).
- Constraints (“don’t change X”, “must keep public API”, “perf budget”, etc).
- Desired output (“return patch plan + tests”, “list risky assumptions”, “give 3 options with tradeoffs”).
“Exhaustive prompt” pattern (for later restoration)
When you know this will be a long investigation, write a prompt that can stand alone later:
- Top: 6–30 sentence project briefing + current goal.
- Middle: concrete repro steps + exact errors + what you already tried.
- Bottom: attach all context files needed so a fresh model can fully understand (entrypoints, configs, key modules, docs).
If you need to reproduce the same context later, re-run with the same prompt + --file … set (Oracle runs are one-shot; the model doesn’t remember prior runs).
Safety
- Don’t attach secrets by default (
.env, key files, auth tokens). Redact aggressively; share only what’s required. - Prefer “just enough context”: fewer files + better prompt beats whole-repo dumps.