Claude Code Plugins

Community-maintained marketplace

Feedback

magi-decision-support

@capytan/dotfiles
0
0

Multi-perspective decision support using three AI agents (Scientist, Mother, Realist). Use when facing difficult decisions, trade-offs, comparing alternatives, choosing between options, or when unsure which approach is best. Triggers on questions like "should I", "which is better", "pros and cons", "normalize vs denormalize", "microservices vs monolith", or any technical/architectural decision with multiple valid options.

Install Skill

Shared

Installs to .agents/skills, used by Codex, Amp, Warp, Cursor, OpenCode, and more.

CodexAmp
Warp
CursorOpenCode
Cline
Gemini CLI
GitHub Copilot
Personal

Available across projects.

$npx skills-installer add @capytan/dotfiles/magi-decision-support --client shared
Project

Writes to .agents/skills.

$npx skills-installer add @capytan/dotfiles/magi-decision-support -p --client shared
Note: Review the skill instructions before using it.

SKILL.md

name magi-decision-support
description Multi-perspective decision support using three AI agents (Scientist, Mother, Realist) with APPROVE/CONDITIONAL/REJECT verdicts. Use when the user asks for MAGI or a multi-perspective verdict, or must choose between concrete named options in a technical/architectural decision (e.g. monolith vs microservices). Not for stress-testing a single plan (use `grilling` or `doubt-driven-development`) or quick either/or questions answerable from the code.
allowed-tools Agent, AskUserQuestion

MAGI - Consensus-Based Decision Support System

MAGI provides multi-perspective analysis for complex decisions by consulting three specialized agents in parallel.

When to Use This Skill

Each run starts three subagents, so invoke MAGI only when the user:

  • Asks for MAGI or for a multi-perspective verdict
  • Must choose between concrete named options whose trade-offs span technical, team, and cost concerns (normalization vs denormalization, microservices vs monolith, and similar architectural choices)

Answer inline instead when the question is settled by the code, project conventions, or a single perspective.

The Three Perspectives

Agent Role Focus
MELCHIOR Scientist Technical accuracy, best practices, performance, scalability
BALTHASAR Mother Developer experience, team health, sustainability, ethics
CASPER Realist Implementation feasibility, cost, timeline, practical constraints

How to Invoke

Invoke this skill (/magi-decision-support) or describe a decision that fits the criteria above:

Should we normalize this database table or keep it denormalized? Is this the right architectural approach?
Microservices vs monolith for our scale?

Execution Process

When invoked, follow this process:

  1. Parse the question: Extract the decision topic and any relevant context from the user's message.

  2. Launch all three agents in parallel using the Agent tool with subagent_type: "general-purpose" in a single message. Use distinct prompts per persona — do not collapse them into one templated string. Each prompt must include the persona-specific REJECT triggers from the Verdict Criteria section.

    • MELCHIOR (Scientist): "You are MELCHIOR, the Scientist. Analyze [question] strictly on technical accuracy, best practices, performance, and scalability. Ignore developer-experience and cost concerns — those are other agents' responsibilities. Return one of APPROVE / CONDITIONAL (with explicit condition) / REJECT. Cite concrete technical trade-offs. REJECT if technically infeasible, violating core best practices, or introducing unacceptable security/performance risk."
    • BALTHASAR (Mother): "You are BALTHASAR, the Mother. Analyze [question] on developer experience, team health, long-term sustainability, and ethics. Ignore raw technical performance and short-term cost — those are other agents' responsibilities. Return one of APPROVE / CONDITIONAL (with explicit condition) / REJECT. Cite concrete people/process trade-offs. REJECT if unsustainable long-term, causing significant team harm, or raising ethical concerns."
    • CASPER (Realist): "You are CASPER, the Realist. Analyze [question] on implementation feasibility, cost, timeline, and practical constraints. Ignore theoretical elegance and abstract best practices — those are other agents' responsibilities. Return one of APPROVE / CONDITIONAL (with explicit condition) / REJECT. Cite concrete cost/timeline trade-offs. REJECT if not implementable within realistic constraints, or if cost/complexity far exceeds benefit."
  3. Collect all three responses before proceeding to synthesis.

  4. Synthesize the results and produce the final report in the Output Format below.

Verdict Criteria

Each agent assigns one of three verdicts:

  • APPROVE: The approach is sound from this perspective with no significant concerns
  • CONDITIONAL: The approach can work, but requires specific conditions to be met (state them explicitly)
  • REJECT: The approach has fundamental problems from this perspective that outweigh the benefits

REJECT triggers:

  • MELCHIOR: Technically infeasible, violates core best practices, introduces unacceptable security/performance risk
  • BALTHASAR: Unsustainable long-term, causes significant team harm, ethical concerns
  • CASPER: Not implementable within realistic constraints, cost/complexity far exceeds benefit

Consensus Rules

Determine consensus from the three verdicts:

Verdicts Result
3× APPROVE UNANIMOUS APPROVAL — Proceed confidently
2× APPROVE + 1× CONDITIONAL MAJORITY APPROVAL — Proceed with noted conditions
2× APPROVE + 1× REJECT MAJORITY APPROVAL (contested) — Proceed, but address the dissent
1× APPROVE + 2× CONDITIONAL CONDITIONAL APPROVAL — Proceed only if conditions are met
3× CONDITIONAL CONDITIONAL APPROVAL (weak) — Proceed only if all stated conditions are met
2× CONDITIONAL + 1× REJECT CONDITIONAL (contested) — Meet all conditions and address the dissent before proceeding
Any 2× REJECT MAJORITY REJECTION — Do not proceed without major revision
3× REJECT UNANIMOUS REJECTION — Abandon this approach
1× each APPROVE/CONDITIONAL/REJECT SPLIT DECISION — No consensus; present trade-offs and let user decide

Output Format

MAGI produces a structured analysis report:

  1. Individual Agent Analysis: Each agent provides their perspective and verdict (APPROVE/REJECT/CONDITIONAL with reasoning)
  2. Consensus: Apply the Consensus Rules table above to determine the result
  3. Key Trade-offs: Areas where perspectives differ significantly
  4. Final Recommendation: Synthesized recommendation with reasoning and next steps

Error Handling

  • Agent failure: If one agent fails or times out, proceed with the remaining two verdicts. Note the missing perspective and apply consensus rules to the available verdicts.
  • Vague question: If the question lacks sufficient context, use AskUserQuestion to clarify before launching agents. Ask for: the specific options being considered, constraints, and success criteria.
  • No consensus (1-1 split with failure): Present both perspectives and let the user decide.