⏳ This skill is pending AI review.
Scores will appear once the review pipeline completes.
court
>-
Choose how to use this skill
You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.
1. Native installer
This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.
Do not guess an installer command or replace an existing version without reviewing the diff.
2. Complete package recommended
Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.
No complete ProSkills package is published for this listing yet.3. Prompt-only
Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.
Need only the instruction file?
Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.
No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.
// RATINGS
Not yet listed on ClawHub or SkillsMP
// README
The court skill
When Claude agrees with everything you say, put your idea on trial in front of a jury of 12 Claudes. One Claude Code skill. Free, MIT, no signup, no API key, nothing to connect.
Made by Alex Chen (@nocodealex), an AI creator who builds free Claude Code skills. Step-by-step guide at chen.media.
Ask Claude "is this a good idea?" and it usually says yes. /court takes the same idea and runs a
trial instead:
- A prosecutor Claude builds the strongest honest case that your idea fails as described.
- A defense Claude builds the strongest honest case that it works.
- Each side answers the other's points.
- 12 jurors read the record and vote GUILTY or NOT GUILTY on their own. Each one sees the case through different eyes: an accountant, a first-time customer, a competitor, a retired judge, a teenager, an engineer, a small-business owner, a statistician, a parent, an investor, a designer and a lawyer. No juror sees another's vote, so nobody can just go along with the room.
- A judge Claude reads the verdict, the charges that stuck, what the defense got right, and the conditions for acquittal: the specific changes that would flip the most votes.
What comes back is VERDICT.md: the vote (for example GUILTY, 9 to 3), every juror's one-line reason,
and what to change before you try again.
It never touches your files. Everything is written inside .court/ in the folder you run it in.
Install
Paste this into Claude:
https://github.com/alexyc9381/court-skill
Install this skill, then confirm /court works.
Or copy the folder yourself, in Claude Code:
git clone https://github.com/alexyc9381/court-skill
cp -r court-skill/skills/court ~/.claude/skills/
Or with the skills CLI:
npx skills add alexyc9381/court-skill
Or as a plugin:
/plugin marketplace add alexyc9381/court-skill
/plugin install court-skill@court-skill
Installed as a plugin, it shows up as /court-skill:court.
Use
/court Quit my job to sell candles on Etsy full time. I have $8,000 saved and 40 sales so far.
| flag | meaning |
|---|---|
--jury N | 3 to 12 jurors. Default 12. |
--quick | 6 jurors. |
--seed S | Fixes which jurors sit on a smaller jury. |
A full trial is 17 sub-agent calls (2 openings, 2 rebuttals, 12 jurors, 1 judge); --quick is 11.
Every sub-agent counts toward your Claude plan's usage, so start with --quick if you are near your
limit. Turn on accept-edits mode (Shift+Tab) first so you are not asked to approve every file.
See examples/candles/VERDICT.md for a real (3-juror) trial: "Quit my job as a nurse to sell
handmade candles on Etsy full time" came back GUILTY, 3 to 0, with the conditions that would flip it.
How it works
skills/court/court.py does the bookkeeping: it opens the trial, writes one brief per sub-agent, checks
that every output exists, counts the votes and renders the verdict. Claude only orchestrates: it never
argues a side, never votes and never edits the verdict. The jurors are in skills/court/jurors.json.
python3 -m unittest discover -s tests
Making a video or post about this?
Go ahead. Credit it like this, in your caption or description:
/court skill by Alex Chen (@nocodealex): github.com/alexyc9381/court-skill
Tag @nocodealex so I can see it. Every verdict the skill writes already ends with the same credit, so leave it in the shot.
Writing about it or citing it in a paper? Use Cite this repository in the sidebar on GitHub.
Uninstall
rm -rf ~/.claude/skills/court
Not made by Anthropic. The jury is made of language models, so treat the verdict as a structured second opinion, not legal, financial or professional advice.
// HOW IT'S BUILT
// FILES
4 files shipped with this skill. Inline text is the catalog copy. The upstream link is the source repository.
skills/court/SKILL.md5.0 KB5b76e971f6c8upstream ↗
--- name: court description: >- Put an idea on trial in front of a jury of 12 Claudes. A prosecutor Claude argues it fails, a defense Claude argues it works, they rebut each other, 12 juror Claudes with different backgrounds vote on their own, and a judge Claude reads the verdict and the conditions that would flip it. Use when the user wants honest pushback instead of agreement, says Claude just agrees with everything, asks "is this a good idea", wants an idea, plan, pitch or claim stress-tested, or says "court" or "put it on trial". argument-hint: "[--jury N | --quick] [--seed S] <the idea, plan or claim>" license: MIT metadata: author: "Alex Chen (@nocodealex)" homepage: "https://chen.media" source: "https://github.com/alexyc9381/court-skill" version: "1.0.0" --- # court For when Claude agrees with everything you say. Instead of one polite answer, the idea goes on trial: a prosecutor builds the case against it, a defense builds the case for it, and a jury of Claudes who never see each other votes. You are the clerk of the court. You never argue, never vote, and never soften the verdict. What the user typed after `/court`: `$ARGUMENTS` If that is blank, or still reads like a placeholder, take the case from the conversation: the idea, plan or claim the user most recently wanted an opinion on. ## The tool Every piece of bookkeeping goes through `court.py` in this skill's folder: ```bash python3 "${CLAUDE_SKILL_DIR}/court.py" <command> ``` Below, `COURT` means exactly that command. If the path looks unexpanded, use the "Base directory for this skill" that Claude Code printed at the top of this skill. The state lives in `.court/<run>/state.json` in the current directory, and every command after `init` finds it through `.court/LATEST`. ## Step 1: size it Read the flags out of the request. Everything that is not a flag is the case. | flag | meaning | | --- | --- | | `--jury N` | N jurors, 3 to 12. Default 12. | | `--quick` | 6 jurors. | | `--seed S` | Fixes which jurors sit on a smaller jury. Default: random, and recorded. | Run `COURT plan` with the same flags and tell the user in one line how big the trial is, for example "12 jurors, 17 sub-agent calls", then start. If this skill fired on its own (the user never asked for a trial), ask once first and offer `--quick`. Sub-agents write into `.court/` in the current directory. In the default permission mode that is one approval per file. Suggest accept-edits mode (Shift+Tab) for the trial. Do not change the user's settings yourself. ## Step 2: write the case file **Sub-agents cannot see this conversation.** The prosecutor, the defense, every juror and the judge know only what is in the case file, so write `.court/case.md` to stand on its own: - First line: the case in one sentence, in the user's own words where you can ("Quit my job to sell candles on Etsy full time"). - Then everything the user told you that matters: numbers, audience, budget, timeline, what they have already tried, constraints. - Do not add facts the user never gave, and do not write your own opinion of the idea into it. A case file that leans one way decides the trial before it starts. ## Step 3: open the trial ```bash COURT init --case-file .court/case.md [--jury N | --quick] [--seed S] ``` ## Step 4: the trial Always drive it with `COURT next`. It reads the files on disk and tells you the next phase and the exact command. The phases run in this order: `opening`, `rebuttal`, `jury`, `judge`. Every phase works the same way: 1. `COURT prompts <phase>` writes one brief per job and lists the jobs still to run, in waves. 2. Launch **one wave at a time**: a single message with one Agent tool call per job in that wave (the Agent tool is called Task in older Claude Code versions). Each call is: - `subagent_type`: `general-purpose` - `description`: `court <job id>` - `prompt`: `Read <brief path> and follow it exactly. It is your whole brief.` Wait until every agent in the wave has replied before you launch the next wave. 3. After the last wave, run `COURT next`. If an output is missing it sends you back to the same phase, and `prompts` then lists only the missing jobs. Re-run those once. If a juror fails twice, write the single line `NO VOTE` into its file (`COURT check jury` lists it) and move on. Never write a vote, a statement or a judgment yourself. ## Step 5: the verdict When `COURT next` says the trial is over: ```bash COURT render ``` It counts the votes, writes `VERDICT.md` into the run folder and prints it. Show the user the verdict line, the vote table and the judge's sections exactly as written. Then add at most two lines of your own: the single condition for acquittal you would start with, and the path to the full trial. Rules for you, the clerk: - Never change, soften or re-count the verdict. A guilty verdict is useful information, not bad news to cushion. - Never add praise the jury did not give. - If the user disagrees with the verdict, offer a retrial with the changes from "Conditions for acquittal" written into a new case file. Do not argue for either side yourself.skills/court/court.py14 KB39b90896b2adupstream ↗
#!/usr/bin/env python3 """Bookkeeping for the court skill: put an idea on trial in front of a jury of Claudes. The skill's orchestrator (Claude) drives the trial with these commands. Every sub-agent reads a brief this script writes and writes one output file; this script checks the files, counts the votes and renders the verdict. All state lives in .court/<run>/ in the current directory. python3 court.py plan [--jury N | --quick] python3 court.py init --case-file PATH [--jury N | --quick] [--seed S] python3 court.py next python3 court.py prompts <phase> python3 court.py check <phase> python3 court.py tally python3 court.py render Phases, in order: opening, rebuttal, jury, judge. """ import argparse import json import os import random import re import sys import time HERE = os.path.dirname(os.path.abspath(__file__)) ROOT = ".court" LATEST = os.path.join(ROOT, "LATEST") PHASES = ["opening", "rebuttal", "jury", "judge"] DEFAULT_JURY = 12 QUICK_JURY = 6 WAVE = 6 CREDIT = ("_Made with [/court](https://github.com/alexyc9381/court-skill), a free Claude Code skill by Alex Chen ([@nocodealex](https://instagram.com/nocodealex))._") CHARGE = "The case fails as stated: it should not go ahead the way it is described." # ---------- state ---------- def load_jurors(): with open(os.path.join(HERE, "jurors.json")) as f: return json.load(f) def run_dir(): if not os.path.exists(LATEST): sys.exit("court: no trial yet. Run: court.py init --case-file .court/case.md") with open(LATEST) as f: return f.read().strip() def load_state(rd=None): rd = rd or run_dir() with open(os.path.join(rd, "state.json")) as f: return json.load(f) def save_state(state): with open(os.path.join(state["dir"], "state.json"), "w") as f: json.dump(state, f, indent=2) def jury_size(args): if getattr(args, "quick", False): return QUICK_JURY n = getattr(args, "jury", None) or DEFAULT_JURY if n < 3 or n > 12: sys.exit("court: the jury must be 3 to 12 Claudes") return n # ---------- jobs ---------- def jobs(state, phase): """Each job: id, brief path, output path.""" d = state["dir"] if phase in ("opening", "rebuttal"): ids = ["prosecution", "defense"] elif phase == "jury": ids = ["juror-%02d" % (i + 1) for i in range(len(state["jury"]))] elif phase == "judge": ids = ["judge"] else: sys.exit("court: unknown phase %r (phases: %s)" % (phase, ", ".join(PHASES))) out = [] for jid in ids: out.append({ "id": jid, "brief": os.path.abspath(os.path.join(d, "briefs", "%s-%s.md" % (phase, jid))), "output": os.path.abspath(os.path.join(d, phase, "%s.md" % jid)), }) return out def done(job): p = job["output"] return os.path.exists(p) and os.path.getsize(p) > 0 def missing(state, phase): return [j for j in jobs(state, phase) if not done(j)] # ---------- briefs ---------- def _abs(state, *parts): return os.path.abspath(os.path.join(state["dir"], *parts)) def brief_text(state, phase, job): case = _abs(state, "case.md") head = ("You are one part of a trial run by the court skill. You cannot see the user's conversation: " "everything you know is in the files named below. Use only what is in the record. Never invent " "facts, numbers, quotes or sources. Where the record is silent, say what is missing and why it " "matters. Write your answer to exactly this file and nothing else:\n\n %s\n\n" "The charge: %s\n\nThe case file: %s\n\n" % (job["output"], CHARGE, case)) if phase == "opening": if job["id"] == "prosecution": return head + ( "You are the PROSECUTOR. Build the strongest honest case that the charge holds.\n\n" "- 3 to 5 numbered charges. Each names one concrete way the case fails, the evidence for it from " "the case file (quote it), and what it would cost if you are right.\n" "- Attack the case as the user actually wrote it, never a weaker version of it.\n" "- No insults, no hedging, no praise. 350 words at most.\n") return head + ( "You are the DEFENSE. Build the strongest honest case that the charge does NOT hold: the case " "should go ahead as described.\n\n" "- 3 to 5 numbered points. Each names one concrete strength, the evidence for it from the case " "file (quote it), and why it outweighs the obvious objection.\n" "- Defend the case as the user actually wrote it. If a part cannot be defended, concede it in one " "line instead of spinning it.\n- 350 words at most.\n") if phase == "rebuttal": side, other = ("prosecution", "defense") if job["id"] == "prosecution" else ("defense", "prosecution") return head + ( "You are the %s. Read the other side's opening statement:\n\n %s\n\n" "Answer each of its numbered points in order: say whether it survives, and why, in one or two " "sentences each. Then name the one point the jury should decide on. 250 words at most.\n" % (side.upper(), _abs(state, "opening", other + ".md"))) if phase == "jury": idx = int(job["id"].split("-")[1]) - 1 juror = state["jury"][idx] record = "\n".join(" " + _abs(state, p, s + ".md") for p in ("opening", "rebuttal") for s in ("prosecution", "defense")) return head + ( "You are JUROR %d of %d: %s. %s\n\n" "Read the case file and all four statements:\n\n%s\n\n" "Decide on your own: you will never see the other jurors. You owe the case nothing. Voting for it " "to be kind, or against it to look tough, is contempt of court. Judge it through your own eyes " "as described above.\n\n" "Write exactly these four lines and nothing else:\n\n" "VOTE: GUILTY or NOT GUILTY\n" "REASON: one sentence, in your own voice\n" "DECIDING FACT: the one fact from the record that decided it\n" "WOULD FLIP IF: the one change to the case that would make you vote the other way\n" % (idx + 1, len(state["jury"]), juror["name"], juror["lens"], record)) if phase == "judge": return head + ( "You are the JUDGE. The jury has voted and you cannot overturn the vote. Read the case file, the " "four statements in %s and %s, every juror's vote in %s, and the count in %s.\n\n" "Write these sections, plainly, for someone who has never seen a courtroom:\n\n" "## Charges that stuck\nThe 3 objections the jurors cited most, each in one sentence, with how " "many jurors leaned on it.\n\n" "## What the defense got right\nThe 2 strongest points in the case's favour.\n\n" "## Conditions for acquittal\nThe 3 specific changes that would flip the most votes, built from " "the jurors' WOULD FLIP IF lines. Each one is something the user can do this week.\n\n" "## The sentence\nOne short paragraph in a judge's voice: what the user should do next.\n\n" "250 words at most. Do not repeat the vote count: it is printed above your judgment.\n" % (_abs(state, "opening"), _abs(state, "rebuttal"), _abs(state, "jury"), _abs(state, "tally.json"))) raise ValueError(phase) # ---------- votes ---------- VOTE_RE = re.compile(r"^\s*\**VOTE\**\s*:\s*\**\s*(NOT\s+GUILTY|GUILTY)", re.I | re.M) FIELD_RE = r"^\s*\**%s\**\s*:\s*(.+)$" def parse_vote(text): m = VOTE_RE.search(text or "") if not m: return None vote = "NOT GUILTY" if "NOT" in m.group(1).upper() else "GUILTY" out = {"vote": vote} for key, name in (("reason", "REASON"), ("fact", "DECIDING FACT"), ("flip", "WOULD FLIP IF")): f = re.search(FIELD_RE % name, text, re.I | re.M) out[key] = f.group(1).strip().strip("*").strip() if f else "" return out def tally(state): rows = [] for j, juror in zip(jobs(state, "jury"), state["jury"]): text = open(j["output"]).read() if done(j) else "" v = parse_vote(text) rows.append({"juror": juror["name"], "vote": v["vote"] if v else "NO VOTE", "reason": v["reason"] if v else "", "fact": v["fact"] if v else "", "flip": v["flip"] if v else ""}) guilty = sum(1 for r in rows if r["vote"] == "GUILTY") not_guilty = sum(1 for r in rows if r["vote"] == "NOT GUILTY") if guilty > not_guilty: verdict = "GUILTY" elif not_guilty > guilty: verdict = "NOT GUILTY" else: verdict = "HUNG JURY" result = {"verdict": verdict, "guilty": guilty, "not_guilty": not_guilty, "no_vote": len(rows) - guilty - not_guilty, "jurors": rows} with open(os.path.join(state["dir"], "tally.json"), "w") as f: json.dump(result, f, indent=2) return result def verdict_line(t): if t["verdict"] == "HUNG JURY": return "HUNG JURY, %d to %d" % (t["guilty"], t["not_guilty"]) big, small = (t["guilty"], t["not_guilty"]) if t["verdict"] == "GUILTY" else (t["not_guilty"], t["guilty"]) return "%s, %d to %d" % (t["verdict"], big, small) def render(state): t = tally(state) case = open(os.path.join(state["dir"], "case.md")).read().strip() first = case.splitlines()[0].lstrip("# ").strip() if case else "(empty case)" judge = jobs(state, "judge")[0] judgment = open(judge["output"]).read().strip() if done(judge) else "_The judge has not ruled yet._" lines = ["# The verdict: %s" % verdict_line(t), "", "**The case:** %s" % first, "", "**The charge:** %s" % CHARGE, "", "## How the jury voted", "", "| Juror | Vote | Why |", "|---|---|---|"] for r in t["jurors"]: lines.append("| %s | %s | %s |" % (r["juror"], r["vote"], r["reason"].replace("|", "/"))) lines += ["", judgment, "", "_The full trial is in %s: the opening statements, the rebuttals and every juror's vote._" % os.path.abspath(state["dir"]), "", CREDIT] text = "\n".join(lines) + "\n" with open(os.path.join(state["dir"], "VERDICT.md"), "w") as f: f.write(text) return text # ---------- commands ---------- def cmd_plan(args): n = jury_size(args) calls = 2 + 2 + n + 1 print("jury of %d: 2 opening statements, 2 rebuttals, %d jurors, 1 judge = %d sub-agent calls" % (n, n, calls)) def cmd_init(args): n = jury_size(args) if not os.path.exists(args.case_file): sys.exit("court: case file not found: %s" % args.case_file) case = open(args.case_file).read().strip() if not case: sys.exit("court: the case file is empty") seed = args.seed if args.seed is not None else random.randrange(1, 10 ** 6) jurors = load_jurors() rng = random.Random(seed) jury = jurors[:] if n == len(jurors) else rng.sample(jurors, n) rd = os.path.join(ROOT, time.strftime("%Y%m%d-%H%M%S")) for sub in ("briefs", "opening", "rebuttal", "jury", "judge"): os.makedirs(os.path.join(rd, sub), exist_ok=True) with open(os.path.join(rd, "case.md"), "w") as f: f.write(case + "\n") state = {"dir": rd, "seed": seed, "jury": jury, "created": time.strftime("%Y-%m-%dT%H:%M:%S")} save_state(state) with open(LATEST, "w") as f: f.write(rd) print("court: trial opened in %s (jury of %d, seed %d)" % (rd, n, seed)) print("next: python3 court.py prompts opening") def cmd_prompts(args): state = load_state() todo = missing(state, args.phase) for j in jobs(state, args.phase): with open(j["brief"], "w") as f: f.write(brief_text(state, args.phase, j)) if not todo: print("court: %s is complete. Run: court.py next" % args.phase) return for w in range(0, len(todo), WAVE): print("wave %d:" % (w // WAVE + 1)) for j in todo[w:w + WAVE]: print(" %s brief=%s" % (j["id"], j["brief"])) print("Launch one Agent call per job, one wave at a time. Prompt: " "\"Read <brief> and follow it exactly. It is your whole brief.\"") def cmd_check(args): state = load_state() todo = missing(state, args.phase) if not todo: print("court: %s complete" % args.phase) for j in todo: print("missing: %s -> %s" % (j["id"], j["output"])) def cmd_next(args): state = load_state() for phase in PHASES: if missing(state, phase): if phase == "judge": t = tally(state) print("court: the jury voted %s." % verdict_line(t)) print("next phase: %s. Run: python3 court.py prompts %s" % (phase, phase)) return print("court: the trial is over. Run: python3 court.py render") def cmd_tally(args): state = load_state() t = tally(state) print(verdict_line(t)) def cmd_render(args): state = load_state() sys.stdout.write(render(state)) def main(argv=None): p = argparse.ArgumentParser(prog="court.py") sub = p.add_subparsers(dest="cmd") pl = sub.add_parser("plan") pl.add_argument("--jury", type=int) pl.add_argument("--quick", action="store_true") pi = sub.add_parser("init") pi.add_argument("--case-file", required=True) pi.add_argument("--jury", type=int) pi.add_argument("--quick", action="store_true") pi.add_argument("--seed", type=int) for name in ("prompts", "check"): sp = sub.add_parser(name) sp.add_argument("phase", choices=PHASES) for name in ("next", "tally", "render"): sub.add_parser(name) args = p.parse_args(argv) if not args.cmd: p.print_help() return 1 {"plan": cmd_plan, "init": cmd_init, "prompts": cmd_prompts, "check": cmd_check, "next": cmd_next, "tally": cmd_tally, "render": cmd_render}[args.cmd](args) return 0 if __name__ == "__main__": sys.exit(main())skills/court/jurors.json1.8 KBf49bed2db5c6upstream ↗
[ {"name": "The Accountant", "lens": "You follow the money. You distrust any number that has no source, and you want to know who pays, how much, and when."}, {"name": "The First-Time Customer", "lens": "You have never heard of this before today. Would you actually buy it, use it or believe it, this week, at this price, over what you already do?"}, {"name": "The Competitor", "lens": "You run the business this case would compete with. If you saw this tomorrow, how would you beat it, copy it or ignore it?"}, {"name": "The Retired Judge", "lens": "You care about the burden of proof. Is the evidence actually in the record, or is it hope dressed up as fact?"}, {"name": "The Teenager", "lens": "You are blunt and easily bored. Would anyone care about this, talk about it, or come back to it next week?"}, {"name": "The Engineer", "lens": "You build things. Can this actually be made, does it work in the real world, and what breaks first when it grows?"}, {"name": "The Small-Business Owner", "lens": "You have run a shop for 20 years. Who does the work on Monday morning, where does the cash come from until it pays, and what happens in a slow month?"}, {"name": "The Statistician", "lens": "You look for base rates, tiny samples and survivorship bias. How often does a plan like this actually work?"}, {"name": "The Parent", "lens": "You protect your family's time, money and safety. Is it trustworthy, and is it worth the risk to the people involved?"}, {"name": "The Investor", "lens": "You weigh upside against risk. Would you put your own money into this exactly as described, and why or why not?"}, {"name": "The Designer", "lens": "You care about clarity. Would a stranger understand what this is and why it matters in five seconds?"}, {"name": "The Lawyer", "lens": "You look for legal, regulatory and liability traps that the case does not mention."} ]README.mdupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
Plain-text copy, no login: /skill-bundles/alexyc9381-court-skill-skills-court.md