Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add felix-huber/appbuilder-skill --skill "oracle-integration"
Install specific skill from multi-skill repository
# Description
Provides Oracle CLI integration for GPT-5.2 Pro review loops. Use when running external model reviews, multi-model consensus, or structured issue extraction from Oracle outputs.
# SKILL.md
name: oracle-integration
description: Provides Oracle CLI integration for GPT-5.2 Pro review loops. Use when running external model reviews, multi-model consensus, or structured issue extraction from Oracle outputs.
triggers:
- oracle review
- gpt-5 review
- external review
- multi-model
- second opinion
- oracle lens
- browser oracle
Oracle Integration Skill
Integrate GPT-5.2 Pro reviews into your development workflow via the Oracle CLI.
Overview
Oracle bundles your artifacts and runs them through GPT-5.2 Pro (browser mode) with specialized review lenses. This skill guides the integration process.
Key Principles
- Browser mode only: Oracle runs use your ChatGPT session, not API (cheaper, fully automated)
- 8 specialized lenses: product, ux, architecture, security, performance, tests, simplicity, ops
- Structured output: All reviews produce normalized
issues.jsonwith consistent schema - Fully autonomous: Run Oracle scripts directly - DO NOT ask user to run commands
β οΈ MANDATORY FIRST STEP β CHECK EXISTING STATE β οΈ
BEFORE running any Oracle script, ALWAYS check what already exists:
# 1. What Oracle output exists?
ls -la artifacts/06-oracle/<kind>/ 2>/dev/null || echo "No Oracle output yet"
# 2. Convergence state?
cat artifacts/06-oracle/<kind>/convergence-history.json 2>/dev/null || echo "No history"
# 3. Latest feedback files?
ls -t artifacts/06-oracle/<kind>/*.md 2>/dev/null | head -3
Decision tree:
| Check Result | Action |
|---|---|
| No Oracle output | β Run Oracle |
| Converged (0 blockers, β€2 majors) | β DONE! No action needed |
| Unapplied feedback exists | β Apply feedback first, then reassess |
| Applied but not converged | β Run another Oracle round |
How to tell if feedback is unapplied:
- Oracle files newer than artifact
- Issues in Oracle output still visible in artifact
STEP 1: Run Oracle (only if needed per above)
DO NOT ask the user to run commands. Execute directly:
# Run this directly - DO NOT print and ask user to run
./scripts/oracle_converge.sh ux artifacts/02-ux.md artifacts/01-prd.md
This takes 60-90 minutes. The script:
1. Calls GPT-5.2 Pro via browser automation
2. GPT-5.2 Pro has extended thinking (30-60 min silence is normal)
3. Returns structured feedback
4. Loops until convergence (0 blockers, β€2 majors)
Oracle CLI Reference
Full Lens Pack
Run all 8 lenses for a phase:
./scripts/oracle_lens_pack.sh <kind> <files...>
| Kind | Primary File | Context Files |
|---|---|---|
| prd | artifacts/01-prd.md | artifacts/00-brief.md |
| ux | artifacts/02-ux.md | artifacts/01-prd.md |
| plan | artifacts/03-plan.md | artifacts/01-prd.md, artifacts/02-ux.md |
| code | (specific files) | artifacts/03-plan.md |
Single Lens
Run one specific lens:
./scripts/oracle_single_lens.sh <kind> <lens> <files...>
Lenses: product, ux, architecture, security, performance, tests, simplicity, ops
Fallback (Manual Paste)
If browser automation fails:
npx -y @steipete/oracle --render --copy-markdown \
--engine browser \
--browser-manual-login \
--browser-no-cookie-sync \
--model gpt-5.2-pro \
--prompt "$(cat prompts/<kind>/<lens>.txt)" \
--file "<files...>"
Then paste into ChatGPT (GPT-5.2 Pro) and save response to:
artifacts/06-oracle/<kind>/<timestamp>_<lens>.md
Issue Schema
All issues follow this structure:
{
"id": "abc123",
"severity": "blocker|major|minor|nit",
"category": "product|ux|arch|security|perf|tests|simplicity|ops",
"title": "Short description",
"evidence": "Quote or reference from artifact",
"recommendation": "Concrete change to make",
"acceptanceTest": "How to verify the fix",
"files": ["optional/affected/paths.ts"]
}
When to Use Oracle
| Situation | Action |
|---|---|
| PRD complete, before UX | /oracle prd |
| UX complete, before plan | /oracle ux |
| Plan complete, before coding | /oracle plan |
| Code complete, before gates | /oracle code |
| Stuck on decision | Run specific lens for perspective |
| Want second opinion | Run oracle on any artifact |
Integration with Compound Engineering
Oracle complements Compound Engineering's Claude-native review:
ββββ Compound Engineering ββββ ββββ Oracle Extension ββββ
β /workflows:review β β /oracle code β
β 13 Claude agents parallel β + β GPT-5.2 Pro external β
β (security-sentinel, etc.) β β (fresh perspective) β
ββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββ
Troubleshooting
Browser automation fails
- Keep Chromium window OPEN during Oracle runs
- Use
--browser-manual-login(now default in Oracle Swarm) - Log into ChatGPT in the Chromium window that opens
- Close other ChatGPT tabs
Setup: Persistent Chromium Profile (Recommended)
Create ~/.oracle/config.json:
{
"browser": {
"manualLogin": true,
"noCookieSync": true,
"chromePath": "/Applications/Chromium.app/Contents/MacOS/Chromium",
"chromeProfile": null
}
}
This:
- Uses persistent profile at ~/.oracle/browser-profile
- No cookie sync (no Keychain prompts!)
- Log in once, reuse forever
Issues not parsing
- Check Oracle output for valid JSON in code fence
- Run normalizer manually:
bash node scripts/normalize_oracle_output.js <dir> <out.json>
Too many issues
- Focus on blockers and majors first
- Use single lens for specific concerns
- Increase issue quality by improving artifacts
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.