Skip to content
cccskills
FreePublished on GitHub

omega-claude-cli

Shell out to Claude Code CLI to invoke a second Claude session headlessly. Useful for cross-validation, second opinions, and isolated analysis without sharing current agent context. Requires Anthropic account.

The English summary is being prepared. Showing the original description.

See how to install

Files included (14)

  • SKILL.md4.3 KB
  • commands/omega-claude-cli.md116 B
  • hooks/post-execute.cjs310 B
  • hooks/pre-execute.cjs427 B
  • references/research-requirements.md492 B
  • rules/omega-claude-cli.md667 B
  • schemas/input.schema.json680 B
  • schemas/output.schema.json260 B
  • scripts/ask-claude.mjs7.9 KB
  • scripts/format-output.mjs1000 B
  • scripts/main.cjs1.2 KB
  • scripts/parse-args.mjs2.5 KB
  • scripts/verify-setup.mjs1.8 KB
  • templates/implementation-template.md190 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

Claude CLI Skill

Headless wrapper for Claude Code CLI. Invokes a separate Claude session via claude -p "PROMPT" --dangerously-skip-permissions. Provides isolated second opinions without sharing the current agent's context window.

When to Use

  • Second-opinion validation (isolated Claude session without shared context)
  • Cross-validation of current agent's reasoning
  • Delegated deep analysis that should not consume current context window
  • Multi-LLM consultation workflows (as one of the participating models)
  • Chairman synthesis in llm-council workflows

Usage

Ask a question

node .claude/skills/omega-claude-cli/scripts/ask-claude.mjs "What are the security implications of this auth design?"

Specify model

node .claude/skills/omega-claude-cli/scripts/ask-claude.mjs "Review this code" --model sonnet

JSON output (with text stripping)

node .claude/skills/omega-claude-cli/scripts/ask-claude.mjs "Analyze dependencies" --json

With timeout

node .claude/skills/omega-claude-cli/scripts/ask-claude.mjs "Deep security review of auth.ts" --timeout-ms 300000

Availability Check

node .claude/skills/omega-claude-cli/scripts/verify-setup.mjs
# Exit 0 = available (CLI found)
# Exit 1 = not available

Scripts

ScriptPurpose
ask-claude.mjsCore headless wrapper — prompt as positional arg to -p
parse-args.mjsArgument parser (--model, --json, --sandbox, --timeout-ms)
verify-setup.mjsAvailability check with npx fallback
format-output.mjsOutput normalization with extractJsonResponse()

Flags

FlagDescription
--model MODELopus (Opus 4.6), sonnet (4.5), haiku (4.5), or full model ID
--jsonJSON output (strips conversational text via extractJsonResponse)
--sandboxCode execution sandbox mode
--timeout-ms NTimeout in milliseconds (exit code 124 on expiry)

Exit Codes

CodeMeaning
0Success
1Error (CLI failure, auth issue)
124Timeout (--timeout-ms exceeded)

Anti-Patterns & Iron Laws

  1. ALWAYS use --dangerously-skip-permissions for headless mode (built into wrapper)
  2. NEVER expect to share context between this CLI session and the current agent
  3. ALWAYS use format-output.mjs to strip conversational text wrapping from JSON
  4. ALWAYS set --timeout-ms for production usage
  5. NEVER invoke on security-critical tasks without acknowledging the risk

Integration Notes

  • Auth: Claude Code subscription or ANTHROPIC_API_KEY env var
  • Models: opus, sonnet, haiku, or full model IDs
  • Security: --dangerously-skip-permissions allows all tool execution; intended for trusted automation only
  • Platform: Full cross-platform (Windows uses cmd.exe /d /s /c wrapper)

Memory Protocol

Before work: Read .claude/context/memory/learnings.md After work: Append findings to learnings or issues as needed.

Note: Use pnpm search:code to discover references to this skill codebase-wide.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Ensure accessibility in UI components including semantic HTML, ARIA attributes, keyboard navigation, and WCAG 2.2 AA compliance.

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio43Updated Jul 14, 2026

Use when you want to improve response quality through meta-cognitive reasoning. Applies 15+ reasoning methods to reconsider and refine initial outputs.

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio43Updated Jul 14, 2026

N-round opposing-stance debates for trade-off analysis. Assigns pro/con roles to agents, runs structured debate rounds with quality scoring, and produces a moderator synthesis with confidence-rated recommendation. Generalizable to architecture, technology, security, and design decisions.

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio43Updated Jul 14, 2026

Force adversarial code review stance that eliminates confirmation bias — reviewer must find issues or re-analyze

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio43Updated Jul 14, 2026

Creates specialized AI agents on-demand when no existing agent matches a request. Use when the Router cannot find a suitable agent for a task. Enables self-evolution by generating persistent agents.

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio43Updated Jul 14, 2026

LLM-as-judge evaluation framework with 5-dimension rubric (accuracy, groundedness, coherence, completeness, helpfulness) for scoring AI-generated content quality with weighted composite scores and evidence citations

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio43Updated Jul 14, 2026

See all skills by oimiragieo

Report a problem with this skill