Skip to main content
ClaudeWave
Skill38.1k repo starsupdated yesterday

ccg

CCG orchestrates parallel analysis by routing requests through OpenAI's Codex and Google's Gemini via the `/ask` command, with Claude synthesizing both responses into a unified recommendation. Use this skill when you need simultaneous backend/architecture review alongside frontend/UX perspective, want cross-validation across multiple AI models, or require fast parallel advice without spinning up separate team workers.

Install in Claude Code
Copy
git clone --depth 1 https://github.com/Yeachan-Heo/oh-my-claudecode /tmp/ccg && cp -r /tmp/ccg/skills/ccg ~/.claude/skills/ccg
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

# CCG - Claude-Codex-Gemini Tri-Model Orchestration

CCG routes through the canonical `/ask` skill (`/ask codex` + `/ask antigravity`), then Claude synthesizes both outputs into one answer.

Use this when you want parallel external perspectives without launching tmux team workers.

## When to Use

- Backend/analysis + frontend/UI work in one request
- Code review from multiple perspectives (architecture + design/UX)
- Cross-validation where Codex and Antigravity/Gemini may disagree
- Fast advisor-style parallel input without team runtime orchestration

## Requirements

- **Codex CLI**: `npm install -g @openai/codex` (or `@openai/codex`)
- **Antigravity CLI** (Google's successor to the Gemini CLI): install the `agy` binary
  per the [official Antigravity instructions](https://antigravity.google) (inspect any
  installer before running it). Verify: `agy --version`
- **Gemini CLI** remains supported for enterprise/API-key use cases: `npm install -g @google/gemini-cli`
- `omc ask` command available
- If either CLI is unavailable, continue with whichever provider is available and note the limitation

## How It Works

```text
1. Claude decomposes the request into two advisor prompts:
   - Codex prompt (analysis/architecture/backend)
   - Antigravity prompt (UX/design/docs/alternatives) — use gemini for enterprise

2. Claude runs via CLI (skill nesting not supported):
   - `omc ask codex "<codex prompt>"`
   - `omc ask antigravity "<antigravity prompt>"`
     (or `omc ask gemini "<gemini prompt>"` for enterprise)

3. Artifacts are written under `.omc/artifacts/ask/`

4. Claude synthesizes both outputs into one final response
```

## Execution Protocol

When invoked, Claude MUST follow this workflow:

### 1. Decompose Request
Split the user request into:

- **Codex prompt:** architecture, correctness, backend, risks, test strategy
- **Antigravity prompt:** UX/content clarity, alternatives, edge-case usability, docs polish
- **Synthesis plan:** how to reconcile conflicts

### 2. Invoke advisors via CLI

> **Note:** Skill nesting (invoking a skill from within an active skill) is not supported in Claude Code. Always use the direct CLI path via Bash tool.

Run both advisors (use antigravity or gemini depending on your setup):

```bash
omc ask codex "<codex prompt>"
omc ask antigravity "<antigravity prompt>"
```

Enterprise fallback:

```bash
omc ask gemini "<gemini prompt>"
```

### 3. Collect artifacts

Read latest ask artifacts from:

```text
.omc/artifacts/ask/codex-*.md
.omc/artifacts/ask/antigravity-*.md
.omc/artifacts/ask/gemini-*.md
```

### 4. Synthesize

Return one unified answer with:

- Agreed recommendations
- Conflicting recommendations (explicitly called out)
- Chosen final direction + rationale
- Action checklist

## Fallbacks

If one provider is unavailable:

- Continue with available provider + Claude synthesis
- Clearly note missing perspective and risk

If both unavailable:

- Fall back to Claude-only answer and state CCG external advisors were unavailable

## Invocation

```bash
/oh-my-claudecode:ccg <task description>
```

Example:

```bash
/oh-my-claudecode:ccg Review this PR - architecture/security via Codex and UX/readability via Antigravity
```