judgment-day
Skill1.2k starsChanged 9 months agoMITArchived repositoryView on GitHub
Parallel adversarial review protocol that launches two independent blind judge sub-agents simultaneously to review the same target, synthesizes their findings, applies fixes, and re-judges until both pass or escalates after 2 iterations. Trigger: When user says "judgment day", "judgment-day", "review adversarial", "dual review", "doble review", "juzgar", "que lo juzguen".
1 other project uses a version of this.
Adopted by
Most recently taken up by
- upex-galaxy/agentic-qa-boilerplatetheir own version, first seen Oct 5, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- upex-galaxy/agentic-qa-boilerplate★ 26same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- branch-prSkill
- go-testingSkill
- issue-creationSkill
- sdd-applySkill
- sdd-archiveSkill
- sdd-designSkill
- sdd-exploreSkill
- sdd-initSkill
- sdd-proposeSkill
- sdd-specSkill
- sdd-tasksSkill
- sdd-verifySkill
- skill-creatorSkill
- skill-registrySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 12 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
After significant implementations before merging
- Distinctive: line 19
When high-confidence review of code, features, or architecture is needed
- Distinctive: line 20
When a single reviewer might miss edge cases or have blind spots
- Distinctive: line 21
When the cost of a production bug is higher than the cost of two review rounds
- Very specific: line 27
Follow the Skill Resolver Protocol (_shared/skill-resolver.md) before launching ANY sub-agent:
- Distinctive: line 47
NEVER do the review yourself as the orchestrator — your job is coordination only
- Distinctive: line 64
If confirmed issues exist → delegate a Fix Agent (separate delegation)
- Distinctive: line 65
After Fix Agent completes → re-launch both judges in parallel (same blind protocol, fresh delegates)
- Distinctive: line 66
Max 2 fix iterations: If still failing → JUDGMENT: ESCALATED — report to user with full history
- Distinctive: line 67
If both judges return clean → JUDGMENT: APPROVED ✅
- Distinctive: line 259
If user provides custom review criteria, include them in BOTH judge prompts (identical)
- Distinctive: line 260
If target scope is unclear, stop and ask before launching — partial reviews are useless
- Distinctive: line 262
Always wait for BOTH judges to complete before synthesizing — never accept a partial verdict
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
When to Use
- User explicitly asks for "judgment day", "judgment-day", or equivalent trigger phrases
- After significant implementations before merging
- When high-confidence review of code, features, or architecture is needed
- When a single reviewer might miss edge cases or have blind spots
- When the cost of a production bug is higher than the cost of two review rounds
Critical Patterns
Pattern 0: Skill Resolution (BEFORE launching judges)
Follow the Skill Resolver Protocol (_shared/skill-resolver.md) before launching ANY sub-agent:
- Obtain the skill registry (engram →
.atl/skill-registry.mdfrom the project root → skip if none) - Identify the target files/scope — what code will the judges review?
- Match relevant skills from the registry's Compact Rules by:
- Code context: file extensions/paths of the target (e.g.,
.tsx→ react-19, typescript) - Task context: "review code" → framework/language skills; "create PR" → branch-pr skill
- Code context: file extensions/paths of the target (e.g.,
- Build a
## Project Standards (auto-resolved)block with the matching compact rules - Inject this block into BOTH Judge prompts AND the Fix Agent prompt (identical for all)
This ensures judges review against project-specific standards, not just generic best practices.
If no registry exists: warn the user ("No skill registry found — judges will review without project-specific standards. Run skill-registry to fix this.") and proceed with generic review only.
Pattern 1: Parallel Blind Review
- Launch TWO sub-agents via
delegate(async, parallel — never sequential) - Each agent receives the same target but works independently
- Neither agent knows about the other — no cross-contamination
- Both use identical review criteria but may find different issues
- NEVER do the review yourself as the orchestrator — your job is coordination only
Pattern 2: Verdict Synthesis
The orchestrator (NOT a sub-agent) compares results after both delegation_read calls return:
Confirmed → found by BOTH agents → high confidence, fix immediately
Suspect A → found ONLY by Judge A → needs triage
Suspect B → found ONLY by Judge B → needs triage
Contradiction → agents DISAGREE on the same thing → flag for manual decisionPresent findings as a structured verdict table (see Output Format).
Pattern 3: Fix and Re-judge
- If confirmed issues exist → delegate a Fix Agent (separate delegation)
- After Fix Agent completes → re-launch both judges in parallel (same blind protocol, fresh delegates)
- Max 2 fix iterations. If still failing → JUDGMENT: ESCALATED — report to user with full history
- If both judges return clean → JUDGMENT: APPROVED ✅
Decision Tree
User asks for "judgment day"
│
├── Target is specific files/feature/component?
│ ├── YES → continue
│ └── NO → ask user to specify scope before proceeding
│
▼
Resolve skills (Pattern 0): read registry → match by code + task context → build Project Standards block
▼
Launch Judge A + Judge B in parallel (delegate, async) — with Project Standards injected
▼
Wait for both to complete (delegation_read both)
▼
Synthesize verdict
│
├── No issues found?
│ └── JUDGMENT: APPROVED ✅ (stop here)
│
├── Issues found (confirmed, suspect, or contradictions)?
│ └── Delegate Fix Agent with confirmed issues list
│ ▼
│ Wait for Fix Agent to complete
│ ▼
│ Re-launch Judge A + Judge B in parallel (Round 2)
│ ▼
│ Synthesize verdict
│ │
│ ├── Clean → JUDGMENT: APPROVED ✅
│ │
│ └── Still issues → Delegate Fix Agent again (Round 3 / iteration 2)
│ ▼
│ Re-launch Judge A + Judge B in parallel (Round 3)
│ ▼
│ Synthesize verdict
│ │
│ ├── Clean → JUDGMENT: APPROVED ✅
│ └── Still issues → JUDGMENT: ESCALATED ⚠️ (report to user)Sub-Agent Prompt Templates
Judge Prompt (use for BOTH Judge A and Judge B — identical)
You are an adversarial code reviewer. Your ONLY job is to find problems.
## Target
{describe target: files, feature, architecture, component}
{if compact rules were resolved in Pattern 0, inject the following block — otherwise OMIT this entire section}
## Project Standards (auto-resolved)
{paste matching compact rules blocks from the skill registry}
## Review Criteria
- Correctness: Does the code do what it claims? Are there logical errors?
- Edge cases: What inputs or states aren't handled?
- Error handling: Are errors caught, propagated, and logged properly?
- Performance: Any N+1 queries, inefficient loops, unnecessary allocations?
- Security: Any injection risks, exposed secrets, improper auth checks?
- Naming & conventions: Does it follow the project's established patterns AND the Project Standards above?
{if user provided custom criteria, add here}
## Return Format
Return a structured list of findings ONLY. No praise, no approval.
Each finding:
- Severity: CRITICAL | WARNING | SUGGESTION
- File: path/to/file.ext (line N if applicable)
- Description: What is wrong and why it matters
- Suggested fix: one-line description of the fix (not code, just intent)
Always include at the end: **Skill Resolution**: {injected|fallback-registry|fallback-path|none} — {details}
If you find NO issues, return:
VERDICT: CLEAN — No issues found.
## Instructions
Be thorough and adversarial. Assume the code has bugs until proven otherwise.
Your job is to find problems, NOT to approve. Do not summarize. Do not praise.Fix Agent Prompt
You are a surgical fix agent. You apply ONLY the confirmed issues listed below.
## Confirmed Issues to Fix
{paste the confirmed findings table from the verdict synthesis}
{if compact rules were resolved in Pattern 0, inject the following block — otherwise OMIT this entire section}
## Project Standards (auto-resolved)
{paste matching compact rules blocks from the skill registry}
## Context
- Original review criteria: {paste same criteria used for judges}
- Target: {same target description}
## Instructions
- Fix ONLY the confirmed issues listed above
- Do NOT refactor beyond what is strictly needed to fix each issue
- Do NOT change code that was not flagged
- After each fix, note: file changed, line changed, what was done
Return a summary:
## Fixes Applied
- [file:line] — {what was fixed}
**Skill Resolution**: {injected|fallback-registry|fallback-path|none} — {details}Output Format
## Judgment Day — {target}
### Round {N} — Verdict
| Finding | Judge A | Judge B | Severity | Status |
|---------|---------|---------|----------|--------|
| Missing null check in auth.go:42 | ✅ | ✅ | CRITICAL | Confirmed |
| Race condition in worker.go:88 | ✅ | ❌ | WARNING | Suspect (A only) |
| Naming mismatch in handler.go:15 | ❌ | ✅ | SUGGESTION | Suspect (B only) |
| Error swallowed in db.go:201 | ✅ | ✅ | CRITICAL | Confirmed |
**Confirmed issues**: 2 CRITICAL
**Suspect issues**: 1 WARNING, 1 SUGGESTION
**Contradictions**: none
### Fixes Applied (Round {N})
- `auth.go:42` — Added nil check before dereferencing user pointer
- `db.go:201` — Propagated error instead of silently returning nil
### Round {N+1} — Re-judgment
- Judge A: PASS ✅ — No issues found
- Judge B: PASS ✅ — No issues found
---
### JUDGMENT: APPROVED ✅
Both judges pass clean. The target is cleared for merge.Escalation Format (after 2 failed iterations)
## Judgment Day — {target}
### JUDGMENT: ESCALATED ⚠️
After 2 fix iterations, both judges still report issues.
Manual review required before proceeding.
### Remaining Issues
| Finding | Judge A | Judge B | Severity |
|---------|---------|---------|----------|
| {description} | ✅ | ✅ | CRITICAL |
### History
- Round 1: {N} confirmed issues found
- Fix 1: applied {list}
- Round 2: {N} issues remain
- Fix 2: applied {list}
- Round 3: {N} issues remain → escalated
Recommend: human review of the remaining issues above before re-running judgment day.Language
- Spanish input → Rioplatense: "Juicio iniciado", "Los jueces están trabajando en paralelo...", "Los jueces coinciden", "Juicio terminado — Aprobado", "Escalado — necesita revisión humana"
- English input: "Judgment initiated", "Both judges are working in parallel...", "Both judges agree", "Judgment complete — Approved", "Escalated — requires human review"
Rules
- The orchestrator NEVER reviews code itself — it only launches judges, reads results, and synthesizes
- Judges MUST be launched as
delegate(async) so they run in parallel - The Fix Agent is a separate delegation — never use one of the judges as the fixer
- If user provides custom review criteria, include them in BOTH judge prompts (identical)
- If target scope is unclear, stop and ask before launching — partial reviews are useless
- Max 2 fix iterations — on the third failure, escalate with full report, do not loop forever
- Always wait for BOTH judges to complete before synthesizing — never accept a partial verdict
- Suspect findings (only one judge) are reported but NOT automatically fixed — triage and escalate to user if needed
Commands
# No CLI commands — this is a pure orchestration protocol.
# Execution happens via delegate() and delegation_read() tool calls.Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

