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-output.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-portfolio.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);
  . as $portfolio
  | only(["schema_version","status","observations","assumptions","candidates","dropped"])
  and .schema_version == "idea-portfolio.v1"
  and (.status == "candidates" or .status == "no-new-work")
  and (.observations
    | type == "array" and length > 0
    and all(.[]; only(["claim","evidence"]) and (.claim | text) and (.evidence | text)))
  and (.assumptions | type == "array" and all(.[]; text))
  and (.candidates
    | type == "array"
    and all(.[];
      only(["id","idea","evidence","overlaps","status_quo","scenario"])
      and (.id | text)
      and (.idea | text)
      and (.evidence
        | type == "array" and length > 0
        and all(.[]; . as $cited | ($portfolio.observations | any(.evidence == $cited))))
      and (.overlaps | type == "array" and all(.[]; text))
      and (.status_quo | text)
      and (.scenario | only(["given","when","then"]))
      and (.scenario.given | text)
      and (.scenario.when | text)
      and (.scenario.then | text))
    and ((map(.id) | unique | length) == length))
  and (if has("dropped") then
      .dropped | type == "array" and all(.[]; only(["idea","reason"]) and (.idea | text) and (.reason | text))
    else true end)
  and (
    if .status == "candidates" then
      (.candidates | length > 0)
    else
      (.candidates | length == 0)
      and (.dropped | type == "array" and length > 0)
    end
  )
' "$src" >/dev/null || {
  echo "invalid idea-portfolio.v1 artifact: $label" >&2
  exit 1
}

echo "valid idea-portfolio.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