Communityコーディング&開発github.com

oracle

Oracleは、選択したファイルとプロンプトを組み合わせて、セカンドモデルによるレビュー、デバッグ、リファクタリング、設計を支援するCLIツールです。ドライランによるトークンチェックや、APIエンジン・ブラウザエンジンの切り替えが可能です。

oracle とは?

Oracleは、開発者がセカンドモデル(例: GPT-5.5 Pro)を利用してコードのレビュー、デバッグ、リファクタリング、設計を行うためのCLIツールです。ファイルやグロブパターンを指定してコンテキストを渡し、ブラウザエンジン(ChatGPT Proの長時間実行向け)またはAPIエンジン(OpenAI/Azure設定済み向け)を選択できます。ドライランモードでトークン消費量とファイルレポートを事前確認し、セッション管理機能によりタイムアウト時も再アタッチ可能です。セカンドモデルの推論結果は助言的であり、実際のコードやテストと照合して利用する必要があります。

対応✓Claude Code✓Codex CLI~Cursor✓Gemini CLI
npx skills add https://github.com/clawdbot/clawdbot/tree/main/skills/oracle

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

oracle は何をしますか?

Oracleは、プロンプトと選択したファイルをバンドルし、セカンドモデルによる処理を1回実行します。出力は助言として扱い、コードとテストで検証してください。

メインパス

現在のCLIデフォルトモデル: gpt-5.5-pro。ブラウザエンジンは長時間のChatGPT Pro実行に便利です。APIエンジンはOPENAI_API_KEYまたはAzure設定が準備できている場合に有用です。

推奨デフォルト:

  • プレビュー: --dry-run summary --files-report
  • ブラウザ長時間実行: --engine browser --model gpt-5.5-pro
  • API明示指定: --engine api --model gpt-5.5

黄金の道

  1. 厳選されたファイルセットを選定する(真実を含む最小限のファイル)。
  2. ペイロードとトークン消費をプレビューする(--dry-run + --files-report)。
  3. 長時間のPro思考にはブラウザモード、明示的なAPI呼び出しにはAPIモードを使用する。
  4. 実行がデタッチまたはタイムアウトした場合: 保存されたセッションに再アタッチする。盲目的に再実行しない。

コマンド(推奨)

  • ヘルプ:

    • oracle --help
    • バイナリがインストールされていない場合: npx -y @steipete/oracle --help(pnpxは避けてください。sqliteバインディングのため)。
  • プレビュー(トークン消費なし):

    • oracle --dry-run summary -p "<task>" --file "src/**" --file "!**/*.test.*"
    • oracle --dry-run full -p "<task>" --file "src/**"
  • トークン確認:

    • oracle --dry-run summary --files-report -p "<task>" --file "src/**"
  • ブラウザ実行(メインパス; 長時間実行は正常):

    • oracle --engine browser --model gpt-5.5-pro -p "<task>" --file "src/**"
  • 手動ペーストフォールバック:

    • 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 を尊重します。
    • シンボリックリンクは追跡しません。
    • ドットファイルはパターンで明示的にオプトインしない限りフィルタリングされます(例: --file ".github/**")。
    • 1 MB を超えるファイルは拒否されます。

エンジン(API vs ブラウザ)

  • 自動選択: OPENAI_API_KEY が設定されている場合は api、それ以外は browser。
  • ブラウザは GPT + Gemini のみサポート。Claude/Grok/Codex またはマルチモデル実行には --engine api を使用。
  • ブラウザ添付ファイル:
    • --browser-attachments auto|never|always(auto は約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 で上書き可能)。
  • 実行がデタッチしたり長時間かかる場合があります(ブラウザ + Pro ではよくあります)。CLIがタイムアウトした場合: 再実行せず、再アタッチしてください。
    • 一覧表示: oracle status --hours 72
    • アタッチ: oracle session <id> --render
  • --slug "<3-5語>" を使用するとセッションIDを読みやすくできます。
  • 重複プロンプトガードが存在します。本当に新規実行が必要な場合のみ --force を使用してください。

プロンプトテンプレート(高シグナル)

Oracleはゼロのプロジェクト知識から開始します。モデルがスタック、ビルドツール、規約、または「自明な」パスを推測できないことを前提としてください。以下を含めてください:

  • プロジェクト概要(スタック + ビルド/テストコマンド + プラットフォーム制約)。
  • 「物の在処」(主要ディレクトリ、エントリポイント、設定ファイル、境界)。
  • 正確な質問 + 試したこと + エラーテキスト(原文ママ)。
  • 制約事項(「Xは変更しない」、「公開APIを維持すること」など)。
  • 期待する出力(「パッチ計画とテストを返す」、「トレードオフを含む3つの選択肢を示す」)。

添付ファイル

  • ユーザーが明示的に要求しない限り、.env、キーファイル、認証トークンを添付ファイルに含めないでください。

「網羅的プロンプト」復元パターン

長時間の調査では、後日再実行できるようにスタンドアロンのプロンプト + ファイルセットを作成してください:

  • 6〜30文のプロジェクト概要 + 目標。
  • 再現手順 + 正確なエラー + 試したこと。
  • 必要なすべてのコンテキストファイルを添付(エントリポイント、設定、主要モジュール、ドキュメント)。

Oracleの実行はワンショットです。モデルは以前の実行を覚えていません。「コンテキストの復元」とは、同じプロンプト + --file … セットで再実行する(またはまだ実行中の保存セッションに再アタッチする)ことを意味します。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills when explicitly requested; install, verify, update, uninstall, publish, or sync skills.

関連スキル