From second-opinion
This skill should be used when assembling context packages for external CLI models (Codex, Gemini), when deciding what context to include in a second-opinion query, when preparing context for "/second-opinion", "/review-models", or "/debate" commands, or when determining light vs heavy context levels for multi-model queries.
How this skill is triggered — by the user, by Claude, or both
Slash command
/second-opinion:context-assemblyThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Guide context assembly decisions when sharing conversation context with external CLI models (Codex, Gemini). The core challenge: Claude has full conversation context, but spawned CLI tools start completely cold. This skill helps decide **what** to include and **how much** based on the question type.
Guide context assembly decisions when sharing conversation context with external CLI models (Codex, Gemini). The core challenge: Claude has full conversation context, but spawned CLI tools start completely cold. This skill helps decide what to include and how much based on the question type.
Include minimal context for self-contained questions.
When to use:
What to include:
Include full context for code-specific questions.
When to use:
What to include:
The --instructions parameter tells the external model how to approach the question. Write instructions that:
The assemble-context.sh script in ${CLAUDE_PLUGIN_ROOT}/scripts/ handles file writing. Pass arguments based on context level decisions:
Key parameters:
--question: Always include the full question text--task: Brief summary of the current task/conversation context--conventions: Relevant project standards (selected from CLAUDE.md)--files: Comma-separated file paths to include--instructions: Role and output format for the external model--level: light or heavy (controls whether file contents are included)--include-diff: Add when reviewing code changes--diff-base: Branch to diff against (default: HEAD)--output: Custom output path (optional, auto-generated if omitted)External CLI tools have context limits too. Keep packages reasonable:
/second-opinionDetermine level from the question. Most questions are light unless they reference specific code or files from the conversation.
/review-modelsAlways heavy. Include the full diff, changed file contents, and relevant code standards.
/debateUsually light. The models need the topic and project constraints, but full file contents are rarely needed for a position argument.
npx claudepluginhub dorelljames/second-opinion --plugin second-opinionOptimizes Claude Code context-window usage for accuracy and cost. Helps when hitting context limits, structuring prompts, or trimming injected content.
Optimizes AI agent context setup with rules files (CLAUDE.md), specs, source files, and hierarchy. Use for new sessions, degrading output, task switches, or project configuration.
Auto-routes context-gathering tasks to codebase exploration or external research workflows. Use for pre-implementation background.