Second Opinion

Use when you want an independent review of an architecture decision, implementation choice, or technical approach before committing. Triggers on: "second opinion", "review this approach", "is this the right pattern", "validate my design", "Flutter/Riverpod architecture review".

iamantoniodinuzzo d0f0d27 1.4 KB Updated

File contents

Second Opinion

When invoked:

  1. Summarize the problem from conversation context (~100 words)

  2. Spawn subagent using Task tool:

    • gemini-consultant with the problem summary
  3. Apply Flutter/Riverpod-specific checks:

    • ref.watch() only in build(), ref.read() only in callbacks
    • FooNotifier generates fooProvider (not fooNotifierProvider)
    • No business logic in widgets — use notifiers/providers
    • .select() when only one field is consumed
    • GoRouter: no imperative Navigator.push inside providers
  4. Present combined results showing:

    • Gemini's perspective
    • Flutter/Riverpod-specific findings
    • Where they agree/differ
    • Recommended approach with rationale

Prerequisites

Requires Gemini CLI installed locally. This skill intentionally retains a Gemini CLI runtime dependency — it is the only Gemini reference remaining in this repo after the 2.0.0 Claude-only refactor.

Install: https://github.com/google/gemini-cli

CLI Commands Used by Subagents

gemini -p "I'm working on a coding problem... [problem]"

iamantoniodinuzzo/claude-flutter/tree/main/skills/second-opinion commit d0f0d2789b

Frequently asked questions

npx skillmds@latest add iamantoniodinuzzo/second-opinion