Skill Index

maestro-flow/

learn-second-opinion

community[command]

Get alternative perspectives — review, challenge, or consult

$/plugin install maestro-flow

details

<purpose> Structured second-opinion on code, decisions, or plans. Three modes: - **review** (default): 3 parallel agents (pragmatist, purist, strategist) - **challenge**: single adversarial agent — break assumptions, propose alternatives - **consult**: interactive Q&A — agent studies target, answers your questions

Findings persist to .workflow/specs/learnings.md as <spec-entry> blocks. </purpose>

<context> $ARGUMENTS — target and optional mode flag.

Target resolution (auto-detected):

InputResolution
File pathRead file content
Wiki ID (<type>-<slug>)maestro wiki get <id>
HEAD / stagedgit diff HEAD / git diff --staged
Phase numberResolve via state.json.artifacts[] → plan.json

Flags: --mode review|challenge|consult (default: review)

Pre-load (optional): Skill("spec-load") for conventions + maestro wiki search "<target topic>" for related entries.

Output: .workflow/knowhow/KNW-opinion-{slug}-{YYYY-MM-DD}.md </context>

<state_machine>

<states> S_RESOLVE — 解析 target PERSIST: — S_CONTEXT — 加载 specs/wiki 上下文 PERSIST: — S_EXECUTE — 按 mode 执行分析 PERSIST: — S_SYNTHESIZE — 综合观点、生成报告 PERSIST: outputs S_PERSIST — 写文件、append .workflow/specs/learnings.md PERSIST: knowhow files </states> <transitions>

S_RESOLVE: → S_CONTEXT WHEN: target resolved DO: read target content → S_RESOLVE WHEN: unresolvable DO: AskUserQuestion for clarification

S_CONTEXT: → S_EXECUTE DO: load specs + wiki search (optional, proceed without)

S_EXECUTE: → S_SYNTHESIZE WHEN: mode == review DO: A_REVIEW → S_SYNTHESIZE WHEN: mode == challenge DO: A_CHALLENGE → S_SYNTHESIZE WHEN: mode == consult DO: A_CONSULT

S_SYNTHESIZE: → S_PERSIST DO: merge perspectives → agreements, disagreements, verdict, top 3 recommendations

S_PERSIST: → END DO: write KNW-opinion + append <spec-entry> blocks to .workflow/specs/learnings.md

</transitions> <actions>

A_REVIEW

Spawn 3 Agents in single message:

AgentFocusQuestion
Pragmatistsimplicity, YAGNI, maintenance"Simplest thing that works? Maintenance burden?"
Puristcorrectness, edge cases, type safety"What assumptions can be violated?"
Strategistscalability, architecture alignment"Supports future growth? Fits architecture?"

Each returns: persona, verdict (approve/concern/reject), confidence, findings[{severity, description, location, suggestion}], summary.

A_CHALLENGE

Spawn 1 adversarial Agent:

  • Find weakest assumption
  • Propose concrete breaking scenario
  • Identify single biggest risk
  • Suggest alternative approach
  • Apply forcing questions: "What invalidates this?", "Simplest thing that breaks this?", "What would you regret in 6 months?", "What implicit contract isn't enforced?"

A_CONSULT

Interactive loop:

  1. Agent studies target
  2. Display "Target loaded. What would you like to know?"
  3. AskUserQuestion → Agent answers with code refs → repeat until "done"
  4. Compile Q&A into report
</actions>

</state_machine>

<error_codes>

CodeConditionRecovery
E002Unknown --mode valueUse: review, challenge, or consult
W001One review agent failedProceed with available perspectives
</error_codes>

<success_criteria>

  • Mode executed: review (3 parallel agents) / challenge (adversarial) / consult (interactive Q&A)
  • Synthesis with agreements, disagreements, verdict
  • Report written + findings appended to .workflow/specs/learnings.md </success_criteria>

<next_step_routing>

  • Create issue → /manage-issue create <description>
  • Decompose patterns → /learn-decompose <path>
  • Follow code → /learn-follow <path> </next_step_routing>

technical

github
catlog22/maestro-flow
stars
340
license
unspecified
contributors
1
last commit
2026-05-25T02:58:12Z
file
.claude/commands/learn-second-opinion.md

related