Skip to content

hashgraph-online/awesome-codex-plugins / plugins/boshu2/agentops/skills/idea-genie

idea-genie

Verified

Brainstorm evidence-backed options for what to build, or stress-test an idea. Use when: deciding what to build next, comparing options or testing an idea.

scripts/validate-challenge.sh

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

# Pass a file path, or - to read an inline packet from stdin.
# Exit 0 valid, 1 invalid, 2 usage or jq missing (not checked).
usage() {
  echo "usage: $0 <idea-challenge.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" >&2
  exit 2
}

jq -e '
  def text: type == "string" and length > 0;
  def only($allowed): type == "object" and ((keys - $allowed) | length == 0);
  def optional_text($field): if has($field) then (.[$field] | text) else true end;
  only(["schema_version","door_class","sealed_generation","perspectives","cross_reviews","disagreements","refutations","handoff"])
  and .schema_version == "idea-challenge.v1"
  and .door_class == "one-way"
  and .sealed_generation == true
  and (.perspectives
    | type == "array" and length >= 2
    and all(.[];
      only(["id","context_id","model_identity","proposal"])
      and (.id | text)
      and (.context_id | text)
      and (.proposal | text)
      and optional_text("model_identity"))
    and ((map(.id) | unique | length) == length)
    and ((map(.context_id) | unique | length) == length))
  and ((.perspectives | map(.id)) as $ids
    | .cross_reviews
    | type == "array" and length > 0
    and all(.[];
      only(["reviewer","subject","dimensions"])
      and (.reviewer | text)
      and (.subject | text)
      and (.reviewer != .subject)
      and (.reviewer as $reviewer | $ids | index($reviewer)) != null
      and (.subject as $subject | $ids | index($subject)) != null
      and (.dimensions
        | only(["evidence","reversibility","system_fit","failure_modes","cost"])
        and length == 5
        and all(.[]; text)))
    and (($ids - map(.subject)) | length == 0))
  and (.disagreements | type == "array" and length > 0 and all(.[]; text))
  and (.refutations
    | type == "array" and length > 0
    and all(.[];
      only(["claim","attempt","result"])
      and (.claim | text)
      and (.attempt | text)
      and (.result | text)))
  and (if has("handoff") then
      .handoff
      | only(["owner","artifact_dir","route"])
      and .owner == "plan"
      and (.artifact_dir | text)
      and optional_text("route")
    else true end)
' "$src" >/dev/null || {
  echo "invalid idea-challenge.v1 artifact: $label" >&2
  exit 1
}

echo "valid idea-challenge.v1: $label"
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 197kUpdated Claude CodeCodexVerifiedInstall