Skip to content

hashgraph-online/awesome-codex-plugins / plugins/boshu2/agentops/skills/council

council

Verified

Compare independent opinions from models or contexts without inflating agreement. Use when: wanting several opinions or a debate, or summarizing several reviewers' results.

FileKindSize
SKILL.mdskill md12.2 KB
references/debate.mdmarkdown3.8 KB
references/duel.mdmarkdown1.2 KB
references/interview-panel.mdmarkdown1.4 KB
references/judge-split.mdmarkdown1.4 KB
schemas/council-report.v1.schema.jsonconfig4.7 KB
scripts/validate-output.shexecutablescript4.3 KB
scripts/validate.shexecutablescript4.6 KB

scripts/validate-output.sh

View on GitHub
#!/usr/bin/env bash
# Validate a council-report.v1 artifact. Pass a file path, or - to read an
# inline report from stdin. Exit 0 valid, 1 invalid, 2 usage or jq missing
# (the report was not checked).
set -euo pipefail

usage() {
  echo "usage: $0 <council-report.json | ->" >&2
  exit 2
}

[[ $# -eq 1 ]] || usage
if [[ "$1" == "-" ]]; then
  src=/dev/stdin
  label=stdin
elif [[ -f "$1" ]]; then
  src="$1"
  label="$1"
else
  usage
fi

command -v jq >/dev/null 2>&1 || {
  echo "jq not found: $label was not validated; check it by hand against schemas/council-report.v1.schema.json" >&2
  exit 2
}

jq -e '
  def text: type == "string" and length > 0;
  def non_verdict: text and (ascii_downcase | test("^\\s*(pass|fail|not_proven)\\s*$") | not);
  def text_list: type == "array" and all(.[]; text);
  def text_set: text_list and length > 0 and (unique | length) == length;
  (.judges | map(.methodology)) as $methods
  | (.judges | map(.model_identity // empty)) as $models
  # When every judge records model_identity, every consensus point names its models.
  | (.judges | all(has("model_identity"))) as $all_recorded
  | ((keys - ["schema_version","question","subject_digest","recommendation","judges","synthesis","diversity_unsatisfied"]) | length == 0)
  and .schema_version == "council-report.v1"
  and (.question | text)
  and (.subject_digest | type == "string" and test("^[a-f0-9]{64}$"))
  and (if has("recommendation") then (.recommendation | non_verdict) else true end)
  and (if has("diversity_unsatisfied") then (.diversity_unsatisfied | type == "boolean" or text_list) else true end)
  and (.judges
    | type == "array" and length >= 2
    and all(.[];
      ((keys - ["context_id","methodology","model_identity","judgment","evidence","omissions"]) | length == 0)
      and (.context_id | text)
      and (.methodology | text)
      and (.judgment | non_verdict)
      and (if has("model_identity") then (.model_identity | text) else true end)
      and (.evidence | type == "array" and length > 0 and all(.[]; text))
      and (if has("omissions") then (.omissions | text_list) else true end)))
  and ((.judges | map(.context_id) | unique | length) == (.judges | length))
  and (.synthesis | type == "object")
  and ((.synthesis | keys - ["consensus","divergence","minority","unresolved","notes","caller_challenge"]) | length == 0)
  and (.synthesis | has("consensus") and has("divergence") and has("minority") and has("unresolved"))
  and (.synthesis.consensus
    | type == "array"
    and all(.[];
      ((keys - ["claim","methodologies","models","weighs_as_one"]) | length == 0)
      and (.claim | text)
      and (.methodologies | text_set and all(.[]; . as $m | $methods | any(. == $m)))
      and (if has("models") then (.models | text_set and all(.[]; . as $m | $models | any(. == $m))) else ($all_recorded | not) end)
      and (if has("weighs_as_one") then (.weighs_as_one | type == "boolean") else true end)
      and (if (.methodologies | length) < 2 or (has("models") and (.models | length) < 2)
           then .weighs_as_one == true else true end)))
  and (.synthesis.divergence
    | type == "array"
    and all(.[];
      ((keys - ["point","positions"]) | length == 0)
      and (.point | text)
      and (.positions | type == "array" and length > 0 and all(.[]; text))))
  and (.synthesis.minority | text_list)
  and (.synthesis.unresolved | text_list)
  and (if (.synthesis | has("notes")) then (.synthesis.notes | text_list) else true end)
  and (if (.synthesis | has("caller_challenge")) then (.synthesis.caller_challenge
    | type == "array"
    and all(.[];
      ((keys - ["caller_stated","judges_recommend","judge_count","reasoning","context_possibly_missing","cost_if_wrong","disagreement_kind"]) | length == 0)
      and (.caller_stated | text)
      and (.judges_recommend | text)
      and (.reasoning | text)
      and (.context_possibly_missing | text)
      and (.cost_if_wrong | text)
      and (if has("judge_count") then (.judge_count | type == "number" and . >= 2 and . == (. | floor)) else true end)
      and (if has("disagreement_kind") then (.disagreement_kind as $k | ["preference","security","feasibility"] | index($k) != null) else true end)))
    else true end)
' "$src" >/dev/null || {
  echo "invalid council-report.v1 artifact: $label" >&2
  exit 1
}

echo "valid council-report.v1: $label"
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: 321kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 321kUpdated 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: 321kUpdated 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: 321kUpdated Claude CodeCodexVerifiedInstall