/contree:second-opinionfrom contree
Sends completed work and test-tree contract to OpenAI's gpt-5.6-sol for an independent review. Useful after sync or before a PR/release for catching bugs, drift, and rule violations.
Ships in contree. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Sends the completed work to OpenAI's gpt-5.6-sol with high reasoning effort and surfaces its independent review. Once sync reports the trees and implementation are aligned, a second pair of eyes catches what a single perspective misses: bugs, drift from the test-tree contract, rule violations, gaps the author rationalised away.
sync reports the project is in sync — the natural next step.Work out what to review before gathering it. Rely on natural language, not on a fixed git boundary:
Gather the current worktree's tracked changes and untracked file contents:
CHANGE=$(git diff HEAD; git ls-files --others --exclude-standard | while read -r f; do printf '\nUNTRACKED FILE: %s\n' "$f"; cat -- "$f"; done)
Then read ## Test Trees (or TEST_TREES.md) — this is the contract the work must satisfy. If the current worktree contains no non-trivial work to review, say so and stop without calling the API.
Call OpenAI's Responses API at https://api.openai.com/v1/responses with OPENAI_API_KEY, the gpt-5.6-sol model, and high reasoning effort. Send the work and the test trees, and ask the model to review the work as an independent critic: does the change satisfy the test-tree contract, are there bugs or drift, does it honour the rules (KISS, YAGNI, no fake code, fail-fast, no comments), what database schema or API contract changes does it introduce, what does it impact in other systems, and what would it change?
REVIEW_INPUT=$(printf 'TEST TREES (the contract):\n\n%s\n\nCHANGE (the work to review):\n\n%s\n' \
"$(cat TEST_TREES.md)" "$CHANGE")
REVIEW_BASE_URL="${OPENAI_BASE_URL:-https://api.openai.com/v1}"
REVIEW_MODEL="gpt-5.6-sol"
REVIEW_RESPONSE=$(curl -sS -f -X POST "$REVIEW_BASE_URL/responses" \
-H "Authorization: Bearer ${OPENAI_API_KEY:?OPENAI_API_KEY is required}" \
-H "Content-Type: application/json" \
-d "$(jq -n --arg input "$REVIEW_INPUT" --arg model "$REVIEW_MODEL" '{
model: $model,
reasoning: { effort: "high" },
instructions: "You are an independent code reviewer. Review the completed work against the test-tree contract. Review database schema changes, API contract changes, and impacts on other systems. Surface bugs, drift from the trees, rule violations, and gaps. Be specific and concrete.",
input: $input
}')")
REVIEW=$(printf '%s' "$REVIEW_RESPONSE" | jq -er '[.output[]? | select(.type == "message") | .content[]? | select(.type == "output_text") | .text] | join("\n") | select(length > 0)')
printf '%s\n' "$REVIEW"
Present the returned review to the user verbatim, attributed to gpt-5.6-sol so it is clear this is a second opinion, not your own. The user decides what to act on; where the review finds drift or gaps, route them back through change, sync, or tdd.
If the review request fails — OPENAI_API_KEY is missing, the API returns an error or non-2xx response (curl -f), or the response contains no review (jq -e) — surface the failure as an error and stop. Never fabricate a review, summarise the diff yourself and pass it off as the independent model's review, or report a second opinion you did not get. A missing review is an honest outcome; a fake one is not.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub elimydlarz/claude-code-plugins --plugin contree15 skills in this plugin
/bootstrap-test-treesCompose mental-model and test-tree setup, then implement every existing-project tree through a second subagent wave. TRIGGER when: the operator asks to bootstrap, backfill, discover, or implement a project's existing behaviour as test trees and tests./changeSet expected behaviour by writing or modifying test trees before code changes. TRIGGER when: the user describes a feature, capability, behaviour change, removal, or modification they want — even loosely (e.g. 'I want X', 'let's add Y', 'can we make it do Z', 'change how X works', 'remove this behaviour')./change-without-meRun the complete Contree arc from idea to independently reviewed working software without routine operator phase transitions: change sets the contract, sync audits it, tdd closes every gap, mutation and completion sync prove the result, and second-opinion findings are repaired before completion. TRIGGER when: the user wants the full workflow, asks to take an idea through implementation, asks to make the project complete, or wants change/sync/tdd handled end to end.Other plugins' skills for the same job