Skip to content

scdenney/open-science-skills / codex/model-committee

model-committee

Verified

Run one consequential, contestable decision through a deliberative committee of GPT-6 Astra and Claude Opus, chaired by fable (default), astra, opus, or sol. Not for factual lookups, brainstorming, routine implementation, independent-coder reliability, or final professional judgment. Use when several options are defensible and the two model families should propose, critique, revise, and cross-rank under a predeclared rubric.

FileKindSize
SKILL.mdskill md8.0 KB
agents/openai.yamlconfig318 B
references/protocol.mdmarkdown7.6 KB
scripts/claude-member.shexecutablescript2.1 KB
scripts/codex-member.shexecutablescript3.2 KB

scripts/claude-member.sh

View on GitHub
#!/usr/bin/env bash
set -euo pipefail

MODEL="opus"
WORKDIR="$PWD"
PROMPT_FILE=""
OUT=""
EFFORT=""
TIMEOUT_SECONDS=900

usage() {
  printf '%s\n' \
    'Usage: claude-member.sh --prompt-file FILE --out FILE [-C DIR] [--model ID] [--effort LEVEL] [--timeout SEC]' \
    '       claude-member.sh --check'
}

die() { printf 'claude-member: %s\n' "$*" >&2; exit 2; }

if [[ "${1:-}" == "--check" ]]; then
  command -v claude >/dev/null || die 'Claude Code CLI not found'
  claude --version
  exit 0
fi

while [[ $# -gt 0 ]]; do
  case "$1" in
    --prompt-file) PROMPT_FILE="${2:-}"; shift 2 ;;
    --out) OUT="${2:-}"; shift 2 ;;
    -C) WORKDIR="${2:-}"; shift 2 ;;
    --model) MODEL="${2:-}"; shift 2 ;;
    --effort) EFFORT="${2:-}"; shift 2 ;;
    --timeout) TIMEOUT_SECONDS="${2:-}"; shift 2 ;;
    -h|--help) usage; exit 0 ;;
    *) die "unknown argument: $1" ;;
  esac
done

command -v claude >/dev/null || die 'Claude Code CLI not found'
[[ -n "$PROMPT_FILE" && -r "$PROMPT_FILE" ]] || die 'readable --prompt-file is required'
[[ -n "$OUT" ]] || die '--out is required'
[[ -d "$WORKDIR" ]] || die "working directory not found: $WORKDIR"
[[ "$TIMEOUT_SECONDS" =~ ^[1-9][0-9]*$ ]] || die '--timeout must be a positive integer'
if [[ -n "$EFFORT" ]]; then
  case "$EFFORT" in low|medium|high|xhigh|max) ;; *) die "bad --effort: $EFFORT (low|medium|high|xhigh|max)" ;; esac
fi
case "$PROMPT_FILE" in /*) ;; *) PROMPT_FILE="$PWD/$PROMPT_FILE" ;; esac
case "$OUT" in /*) ;; *) OUT="$PWD/$OUT" ;; esac
WORKDIR="$(cd "$WORKDIR" && pwd -P)"
mkdir -p "$(dirname "$OUT")"

cmd=(claude --safe-mode -p --model "$MODEL" --permission-mode plan --output-format text --no-session-persistence)
[[ -n "$EFFORT" ]] && cmd+=(--effort "$EFFORT")
cmd+=('Follow the complete committee instructions supplied on stdin. Return only the requested structured response.')

if command -v timeout >/dev/null; then
  (cd "$WORKDIR" && timeout "${TIMEOUT_SECONDS}s" "${cmd[@]}" < "$PROMPT_FILE" > "$OUT")
else
  (cd "$WORKDIR" && "${cmd[@]}" < "$PROMPT_FILE" > "$OUT")
fi

[[ -s "$OUT" ]] || die 'model returned no final message'
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall