ask-oracle
БесплатноБез исполняемых скриптовНе проверенThis skill should be used when solving hard questions, complex architectural problems, or debugging issues that benefit from GPT-5 Pro or GPT-5.1 thinking…
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
Ask Oracle Skill
Leverage the Oracle CLI to tap into GPT-5 Pro / GPT-5.1 for hard problems that benefit from extended reasoning and large code context.
When to Use
Invoke this skill when:
- Problem requires deep reasoning beyond single-response analysis
- Debugging complex issues across large codebases (100k+ lines)
- Architectural decisions need careful evaluation with full context
- Performance optimization requires comprehensive code analysis
- Security reviews need thorough codebase inspection
- Standard Claude analysis feels insufficient
- Problem statement includes "hard", "complex", "architectural", "across the codebase"
Core Capabilities
The Oracle CLI (bunx @steipete/oracle) provides:
- GPT-5 Pro (default): Advanced reasoning for difficult problems
- GPT-5.1: Experimental model with different reasoning approach
- File context: Attach entire directories/files (up to ~196k tokens)
- Sessions: Long-running background sessions with resume capability
- Token reporting: Inspect file token costs before calling API
Workflow
Step 1: Assess the Problem
Determine if oracle is needed:
- Is the problem genuinely hard/complex?
- Does it benefit from seeing more code context?
- Would standard Claude response be insufficient?
If yes, proceed. If it's a simple question, just answer directly.
Step 2: Gather Relevant Context
Identify files/directories to attach using --file:
- Architecture files (README, package.json, main entry points)
- Relevant source directories (
src/,lib/, etc.) - Configuration files (tsconfig, build config, etc.)
- Tests if they illuminate the problem
- Error logs or reproduction scripts
Exclude:
- Node modules (
node_modules/) - Build artifacts (
dist/,build/) - Large vendored code
- Binary files
Step 3: Choose Model and Preview
For most hard problems, use default GPT-5 Pro:
bunx @steipete/oracle --prompt "Your question here" --file src/ docs/ --preview
For experimental approach, try GPT-5.1:
bunx @steipete/oracle --prompt "Your question here" --file src/ docs/ --model gpt-5.1 --preview
Always preview first to check token usage:
bunx @steipete/oracle --prompt "Question" --file src/ --files-report --preview
Step 4: Review Token Report
When using --files-report, output shows token costs per file:
Files Report:
src/components/form.tsx: 3,245 tokens
src/utils/helpers.ts: 1,023 tokens
src/api/client.ts: 2,156 tokens
Total: 6,424 tokens (under ~196k budget)
If total exceeds budget:
- Remove less relevant files
- Focus on key directories only
- Exclude verbose files (logs, generated code)
- Ask a more specific question to reduce needed context
Step 5: Execute Query
Once satisfied with preview, run without --preview to actually call the model:
bunx @steipete/oracle --prompt "Your question here" --file src/ docs/ --slug "my-problem"
Oracle runs as background session - terminal can close without losing work.
Step 6: Monitor or Resume Session
To attach to running session:
bunx @steipete/oracle session <session-id>
To list recent sessions (last 24h):
bunx @steipete/oracle status
To specify custom session slug (easier to remember):
bunx @steipete/oracle --slug "auth-flow-design" --prompt "..." --file src/
Later, attach via slug:
bunx @steipete/oracle session auth-flow-design
Key Options
| Option | Purpose | Example |
|---|---|---|
--prompt |
The question to ask | --prompt "Why does this auth flow fail?" |
--file |
Attach files/dirs (repeatable) | --file src/ docs/ --file error.log |
--slug |
Human-memorable session name | --slug "perf-optimization-review" |
--model |
Which model to use | --model gpt-5.1 (default: gpt-5-pro) |
--engine |
api or browser | --engine api (default: auto-detect) |
--files-report |
Show token per file | Helps optimize context |
--preview |
Validate without calling API | Test before spending tokens |
--dry-run |
Show token estimates only | Safer than preview |
--heartbeat |
Progress updates (seconds) | --heartbeat 30 (default) |
Common Patterns
Hard Debugging Question
bunx @steipete/oracle \
--prompt "Why does this auth flow fail on mobile? Trace through the code flow." \
--file src/auth/ src/api/ docs/AUTH.md \
--slug "mobile-auth-debug" \
--files-report \
--preview
Architectural Review
bunx @steipete/oracle \
--prompt "Review the state management architecture. What are risks and improvements?" \
--file src/store/ src/components/ README.md \
--slug "state-arch-review"
Performance Analysis
bunx @steipete/oracle \
--prompt "Where are the performance bottlenecks in this renderer?" \
--file src/renderer/ performance-logs.txt \
--slug "renderer-perf" \
--files-report
Security Review
bunx @st
Установить ask-oracle в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ask-oracle?
This skill should be used when solving hard questions, complex architectural problems, or debugging issues that benefit from GPT-5 Pro or GPT-5.1 thinking models with large file context. Use when standard Claude analysis needs deeper reasoning or extended context windows.
Как установить скилл ask-oracle?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ask-oracle запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic