oracle
Best practices for using the oracle CLI (prompt + file bundling, engines, sessions, and file attachment patterns).
Install via CLI (Recommended)
clawhub install openclaw/openclaw/skills/oracleWhat This Skill Does
The oracle skill is designed to supercharge your interaction with AI models by providing them with rich, contextual information from your codebase. It bundles your natural language prompt with selected files, creating a comprehensive "one-shot" request. This allows another AI model, such as GPT‑5.2 Pro, to understand and respond with real repository context, enabling actions like API interactions or browser automation. Think of it as giving the AI a precisely curated set of documents to work from, ensuring its responses are grounded in your project's reality. The output from these AI interactions should always be treated as advisory; thorough verification against your code and tests is essential.
Installation
To install the oracle skill, use the following command:
clawhub install openclaw/openclaw/skills/oracle
Alternatively, if you need to run the oracle CLI directly and it's not installed, you can use npx -y @steipete/oracle --help. Avoid pnpx for this tool due to its sqlite bindings.
Use Cases
The primary use case revolves around leveraging AI for code analysis, refactoring, documentation generation, and even test creation by providing it with relevant project files. The default workflow utilizes the browser engine, often with GPT‑5.2 Pro, which is suitable for complex, time-consuming tasks where a stored session you can reattach to is beneficial. This "long think" path can take anywhere from 10 minutes to an hour. Other use cases include:
- Code Review Assistance: Get AI suggestions on code quality, potential bugs, or adherence to best practices by feeding it relevant source files.
- Documentation Generation: Automate the creation of READMEs, API docs, or inline comments based on your existing codebase.
- Refactoring Suggestions: Receive AI-driven recommendations for improving code structure, performance, or maintainability.
- Test Case Generation: Get AI to draft unit or integration tests based on the functionality present in your code files.
- Debugging Support: Provide the AI with error logs and related code to help diagnose and resolve issues.
Example Prompts
prompt: Analyze the authentication flow in the provided files and suggest potential security improvements. Add comments directly to the relevant code snippets.prompt: Refactor theuserServiceto use async/await syntax consistently and improve error handling. Only include files from the src/services directory.prompt: Generate comprehensive JSDoc comments for all exported functions in src/utils, explaining their parameters, return values, and potential side effects.
Tips & Limitations
- File Selection: Be precise with your file selection. Use globs effectively to include only the necessary files, minimizing token usage and improving AI focus. Preview your payload and token spend using
--dry-runand--files-report. - Engine Choice: The
browserengine is the default and recommended for GPT‑5.2 Pro. Use--engine apiexplicitly if you need to access other models like Claude or Grok, or for multi-model runs. IfOPENAI_API_KEYis set, the skill defaults toapimode. - Session Management: For long-running tasks in browser mode, expect sessions to be stored. If a run detaches or times out, reattach to the existing session instead of restarting.
- Payload Limits: Files larger than 1 MB are rejected. The
--browser-attachmentssetting controls how larger files are handled in browser mode (auto, never, always). - Ignored Directories: By default, common development directories like
node_modules,dist,coverage, and version control directories are skipped unless explicitly included. The skill also respects.gitignorerules when expanding globs. - Symlinks and Dotfiles: Symlinks are not followed. Dotfiles are generally filtered unless explicitly included in your
--filepatterns. - Output Verification: Always verify the AI's output against your code and tests. Treat AI suggestions as advisory.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-openclaw-oracle": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, external-api
Related Skills
sag
ElevenLabs text-to-speech with mac-style say UX.
bear-notes
Create, search, and manage Bear notes via grizzly CLI.
mcporter
Use the mcporter CLI to list, configure, auth, and call MCP servers/tools directly (HTTP or stdio), including ad-hoc servers, config edits, and CLI/type generation.
eightctl
Control Eight Sleep pods (status, temperature, alarms, schedules).
xurl
A CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.