Coding Protocol
lencx/skills
Risk-scaled repo execution and code-evidence protocol. An agent skill from lencx/skills.
Get a second opinion from OpenAI's Codex CLI running locally.
The automated check flagged lines worth reading first. See the safety section below.
$ npx skills add peterkrueck/Claude-Code-Development-Kit --skill second-opinion -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install peterkrueck/Claude-Code-Development-Kit second-opinion --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/peterkrueck/Claude-Code-Development-Kit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/second-opinion .claude/skills/second-opinion && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "second-opinion" agent skill from https://github.com/peterkrueck/Claude-Code-Development-Kit/tree/main/skills/second-opinion into .claude/skills/second-opinion/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "second-opinion", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/peterkrueck/Claude-Code-Development-Kit/tree/main/skills/second-opinionType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add peterkrueck/Claude-Code-Development-Kit --skill second-opinion -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install peterkrueck/Claude-Code-Development-Kit second-opinion --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/peterkrueck/Claude-Code-Development-Kit.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/second-opinion .agents/skills/second-opinion && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "second-opinion" agent skill from https://github.com/peterkrueck/Claude-Code-Development-Kit/tree/main/skills/second-opinion into .agents/skills/second-opinion/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "second-opinion", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add peterkrueck/Claude-Code-Development-Kit --skill second-opinion -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install peterkrueck/Claude-Code-Development-Kit second-opinion --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/peterkrueck/Claude-Code-Development-Kit.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/second-opinion .cursor/skills/second-opinion && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "second-opinion" agent skill from https://github.com/peterkrueck/Claude-Code-Development-Kit/tree/main/skills/second-opinion into .cursor/skills/second-opinion/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "second-opinion", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/peterkrueck/Claude-Code-Development-Kit.git --path skills/second-opinion--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add peterkrueck/Claude-Code-Development-Kit --skill second-opinion -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install peterkrueck/Claude-Code-Development-Kit second-opinion --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/peterkrueck/Claude-Code-Development-Kit.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/second-opinion .gemini/skills/second-opinion && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "second-opinion" agent skill from https://github.com/peterkrueck/Claude-Code-Development-Kit/tree/main/skills/second-opinion into .gemini/skills/second-opinion/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "second-opinion", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install peterkrueck/Claude-Code-Development-Kit second-opinionInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add peterkrueck/Claude-Code-Development-Kit --skill second-opinion -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/peterkrueck/Claude-Code-Development-Kit.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/second-opinion .github/skills/second-opinion && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "second-opinion" agent skill from https://github.com/peterkrueck/Claude-Code-Development-Kit/tree/main/skills/second-opinion into .github/skills/second-opinion/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "second-opinion", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add peterkrueck/Claude-Code-Development-Kit --skill second-opinion -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install peterkrueck/Claude-Code-Development-Kit second-opinion --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/peterkrueck/Claude-Code-Development-Kit.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/second-opinion .opencode/skills/second-opinion && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "second-opinion" agent skill from https://github.com/peterkrueck/Claude-Code-Development-Kit/tree/main/skills/second-opinion into .opencode/skills/second-opinion/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "second-opinion", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
second-opinionGet a second opinion from OpenAI's Codex CLI running locally.
Second Opinion is an agent skill from peterkrueck/Claude-Code-Development-Kit. Get a second opinion from OpenAI's Codex CLI running locally. Use this skill when in Plan Mode for large or critical tasks, when stuck on a debugging dead end, when facing architecture trade-offs, for subtle edge cases in code review, or any situation where an independent perspective would add value. Also use when the user explicitly asks for a "second opinion", "another perspective", "cross-check this", "ask Codex", or "ask GPT". This is the DEFAULT second-opinion engine — Codex runs a completely different model…
Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Planning. It works with OpenAI. The repository describes itself as: Claude Code Workflow for beginners & intermediate users. Tutorial and Installer included. The licence is MIT.
3 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit ba85375. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
codexFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Second Opinion loads about 2.4k tokens when it runs. Until then it costs about 195 tokens; SKILL.md has 1,249 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found patterns that need a careful read before installing.
ulti-turn conversation autonomously** — do NOT ask the user for permission between rounds. Push back on Codex's points,Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from peterkrueck/Claude-Code-Development-Kit at commit ba85375, republished under its MIT licence (© peterkrueck). 1,249 words, ~2,384 tokens.
.claude/skills/second-opinion/SKILL.md (or your agent's skills folder).Get an independent second opinion from OpenAI's Codex CLI. It uses Codex's default model — a completely different architecture and training run from Claude, which makes it genuinely useful for catching blind spots, validating reasoning on edge cases, or surfacing trade-offs Claude would miss (Claude's own errors tend to be invisible to Claude).
Codex has full read access to the project — it can read files, grep code, and explore the codebase. Its project instructions (AGENTS.md at the repository root) tell it to prime itself on the key docs before answering. You provide the specific question and any focused context; Codex handles the rest.
This is the default second-opinion engine. For a Gemini second opinion specifically, the user invokes the separate second-opinion-gemini skill ("ask Gemini"). When the user says "ask both", run this skill and that one, then synthesize all three views (yours + Codex + Gemini).
Don't use this for routine tasks — every call takes 10-60+ seconds and consumes ChatGPT-plan quota. Reserve it for decisions where being wrong has real consequences.
Codex has NO access to your conversation history, but it CAN read project files. Structure your prompt as:
For questions about existing project code, you can simply reference file paths — Codex will read them itself.
In the commands below, <repo-root> is the root of your repository — the directory containing AGENTS.md (and your .git directory). Use an absolute path so AGENTS.md and the project docs are discoverable regardless of the current working directory.
CRITICAL: Permission-free invocation pattern. The command MUST start with codex (matches the Bash(codex:*) allow rule) and MUST NOT use $() command substitution or /tmp/ file redirects — both trigger permission prompts.
Standard call (Codex reads project files itself — preferred):
codex exec -s read-only -C <repo-root> '<your question here>' < /dev/nullWith context piped via stdin (for code snippets, diffs, or focused excerpts — Codex appends piped stdin as a <stdin> block):
codex exec -s read-only -C <repo-root> '<your question here>' <<'CONTEXT_EOF'
<relevant code, diff, or context here>
CONTEXT_EOFRequired flags / arguments — no exceptions:
| Flag | Why |
|---|---|
exec | Non-interactive headless mode. Tool calls are auto-approved in this mode. |
-s read-only | Sandbox the consultant to read-only — it explores files but cannot modify anything. Matches its AGENTS.md "do not modify" instruction with a hard guarantee. |
-C <repo-root> | Working root = repository root, so AGENTS.md and the project docs are discoverable regardless of cwd. |
< /dev/null (standard call) | Close stdin so Codex doesn't block waiting on it when no context is piped. |
DO NOT pass -m. Leave the model unset so Codex uses its own default. Pinning a slug goes stale, and the -codex model family (e.g. *-codex) is rejected on a ChatGPT-account login — only the chat models work, so leaving it unset is correct. If the default ever resolves to something that is NOT a real GPT chat model, treat the run as unavailable rather than accepting a degraded second opinion (see Important Rules).
Output shape. Codex prints a running transcript to stdout: a startup banner, its reasoning, any exec/tool calls it makes (e.g. rg, file reads), a tokens used line, and then the final answer as the trailing block. The Bash tool captures everything. The noise is easily identified and ignored — the final agent message is the last paragraph(s) after the tokens used line. If the output contains a 429, usage limit, quota, or rate limit error, treat as unavailable.
Set a 600-second timeout on the Bash tool call (Codex may need time to read files and reason through complex questions).
DO NOT use:
$() command substitution (e.g., RESPONSE=$(codex ...)) — triggers a permission prompt/tmp/ file redirects (e.g., -o /tmp/out.txt or 2>/tmp/err.txt) — triggers an "allow access to tmp/" prompt$() — same issueWhen the topic warrants debate (architecture, design reviews, trade-off analysis), run the full multi-turn conversation autonomously — do NOT ask the user for permission between rounds. Push back on Codex's points, let Codex push back on yours, iterate until you reach consensus or clearly identify the disagreements. Typically 2-4 rounds.
Resume the session instead of starting fresh to preserve conversation history:
codex -C <repo-root> -s read-only exec resume --last '<your follow-up question>' < /dev/nullFlag order matters on resume. The resume sub-subcommand does NOT accept -s/--sandbox or -C/--cd (unlike codex exec, which does) — passing them after resume fails with error: unexpected argument '-s' found. Put both globals BEFORE the exec resume chain (they're root-level flags on codex and propagate down), as shown above.
You can also resume a specific session by id: codex -C <repo-root> -s read-only exec resume <SESSION_ID> '<follow-up>' < /dev/null. The session id is printed in the startup banner of the first call (session id: <uuid>).
When to use multi-turn:
When NOT to use multi-turn:
resume)If multi-turn: Present a consolidated synthesis — the key agreements, remaining disagreements, and your joint recommendation. Don't dump each round's raw output; the user wants the conclusion, not the transcript.
If single-turn: Present Codex's response, then add your own brief synthesis: where you agree, where you disagree, and what the user should take away from both perspectives. The value is in the synthesis, not just the raw second opinion.
If Codex is unavailable (quota / usage limit / 429 / rate limit):
Codex is currently unavailable (usage limit / rate limited). I won't silently swap in a weaker model. You can say "ask Gemini" for an independent second opinion from a different architecture, or I'll proceed with my own analysis only.
Do NOT silently fall back to a different model within Codex. Report unavailability, offer Gemini as the alternate independent voice, and continue with your own reasoning.
If there's another error, show the filtered output and continue with your own reasoning.
'\''. For very complex prompts, use the stdin heredoc form (see Step 2).codex to match the Bash(codex:*) allow rule. Never wrap in $() or redirect to /tmp/.-s read-only. Never grant it write/danger-full-access sandbox modes for a second opinion — it's a consultant, not a builder.© peterkrueck, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/second-opinion of peterkrueck/Claude-Code-Development-Kit.
Open the folder on GitHubat commit ba85375
Second Opinion next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Second Opinion this skillpeterkrueck/Claude-Code-Development-Kit | 1.4k | — | ~2.4k | Automated safety check: Warn | MIT | |
| Coding Protocollencx/skills | 196 | — | ~2.4k | Automated safety check: Pass | MIT | |
| Codex with ChatGPT Planning LoopXiaoDuoYa/codex-with-chatgpt | 7.1k | — | ~11k | Automated safety check: Notes | MIT | |
| LLM Councilgcpdev/llm-council-skill | 461 | — | ~1k | Automated safety check: Notes | MIT | |
| Test Ocas Openclawpwrdrvr/openclaw-codex-app-server | 265 | — | ~4k | Automated safety check: Pass | MIT | |
| Reviewraine/consult-llm | 140 | — | ~2.4k | Automated safety check: Notes | MIT |
lencx/skills
Risk-scaled repo execution and code-evidence protocol. An agent skill from lencx/skills.
XiaoDuoYa/codex-with-chatgpt
Uses ChatGPT in the browser as the planning and review brain for a Codex session, with Codex keeping all execution and ChatGPT reading the workspace through a bridge.
gcpdev/llm-council-skill
Multi-LLM collaborative brainstorming and planning. An agent skill from gcpdev/llm-council-skill.
pwrdrvr/openclaw-codex-app-server
Regression test the OpenClaw Codex App Server plugin against a live local OpenClaw instance in Telegram or Discord.
raine/consult-llm
Collect critical feedback from all registered LLMs on an artifact (architecture doc, implementation, plan).
GAIK-project/gaik-toolkit
Creates a new GAIK software component as an installable Python package.
peterkrueck/Claude-Code-Development-Kit
Edit images with precision — crop, resize, mirror, rotate, trim, and reframe.
peterkrueck/Claude-Code-Development-Kit
Generate character art and image variations using AI image generation (Google Gemini) with reference images for style and character consistency.
peterkrueck/Claude-Code-Development-Kit
Remove backgrounds from images using local AI (rembg). An agent skill from peterkrueck/Claude-Code-Development-Kit.
peterkrueck/Claude-Code-Development-Kit
Fetch CURRENT library/framework/API/CLI documentation via Context7 instead of relying on training data.
peterkrueck/Claude-Code-Development-Kit
Test and deploy changes safely. An agent skill from peterkrueck/Claude-Code-Development-Kit.
peterkrueck/Claude-Code-Development-Kit
Get a second opinion from Google's Gemini Pro via the locally installed Gemini CLI (defaults to gemini-3.1-pro-preview; override with the CLAUDESECONDOPINIONMODEL env var).
Works with
Categories
Get a second opinion from OpenAI's Codex CLI running locally. Second Opinion is an agent skill from peterkrueck/Claude-Code-Development-Kit. Get a second opinion from OpenAI's Codex CLI running locally.
Second Opinion fits situations like: in Plan Mode for large; stuck on a debugging dead end; facing architecture trade-offs; for subtle edge cases in code review.
Run `npx skills add peterkrueck/Claude-Code-Development-Kit --skill second-opinion -a claude-code`. Or copy the skill folder (skills/second-opinion in peterkrueck/Claude-Code-Development-Kit) into .claude/skills/second-opinion in your project. Claude Code loads it when a task matches its description.
Run `npx skills add peterkrueck/Claude-Code-Development-Kit --skill second-opinion -a codex`. Or copy the skill folder (skills/second-opinion in peterkrueck/Claude-Code-Development-Kit) into .agents/skills/second-opinion in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add peterkrueck/Claude-Code-Development-Kit --skill second-opinion -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/second-opinion, .gemini/skills/second-opinion, .github/skills/second-opinion and .opencode/skills/second-opinion in your project.
Going by SKILL.md and its folder, Second Opinion needs the command-line tools its instructions call (codex).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md flagged 1 warning(s): tells the agent its actions are pre-authorized / not to stop for confirmation. Read the flagged lines before installing; the check is not a guarantee either way.
Second Opinion is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.4k tokens (SKILL.md is roughly 9.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Second Opinion: Coding Protocol (lencx/skills, 196 stars), Codex with ChatGPT Planning Loop (XiaoDuoYa/codex-with-chatgpt, 7.1k stars), LLM Council (gcpdev/llm-council-skill, 461 stars) and Test Ocas Openclaw (pwrdrvr/openclaw-codex-app-server, 265 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
peterkrueck (a GitHub user) maintains it in peterkrueck/Claude-Code-Development-Kit, which has 1,386 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on July 22, 2026.
Source: peterkrueck/Claude-Code-Development-Kit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.