think
Deep multi-framework reasoning using Gemini. Use for complex problem analysis, challenging ideas, and evaluating multiple options with structured thinking.
What this skill does
# Think - Structured Reasoning Apply structured thinking frameworks to complex problems. ## Prerequisites Gemini CLI installed: ```bash pip install google-generativeai export GEMINI_API_KEY=your_api_key ``` ## CLI Reference All commands use Gemini with structured prompts: ```bash gemini -m pro -o text -e "" "Your prompt" ``` ## Thinking Operations ### Deep Analysis Multi-framework reasoning on complex problems: ```bash gemini -m pro -o text -e "" "Analyze this problem using multiple thinking frameworks: PROBLEM: [Your problem] Apply these frameworks: 1. First Principles - Break down to fundamental truths 2. Systems Thinking - Map components and interactions 3. Inversion - What would make this fail? 4. Second-Order Effects - What happens after the obvious? For each framework: - Key insights - Blind spots it reveals - Actionable implications Synthesize into a coherent recommendation." ``` ### Quick Think Fast reasoning on simpler questions: ```bash gemini -m pro -o text -e "" "Think through this question step by step: [Your question] Provide: 1. Initial reaction 2. Key considerations 3. Potential pitfalls 4. Recommended approach" ``` ### Challenge an Idea Stress-test a proposal: ```bash gemini -m pro -o text -e "" "Challenge this idea rigorously: IDEA: [The idea to challenge] CONTEXT: [Relevant context] Apply these challenges: 1. Steel man the counterargument 2. Identify hidden assumptions 3. Find edge cases that break it 4. Consider who might disagree and why 5. What evidence would change your mind? Conclude with: Should we proceed, modify, or abandon?" ``` ### Evaluate Options Compare multiple choices: ```bash gemini -m pro -o text -e "" "Evaluate these options for: [Decision question] OPTIONS: 1. [Option A] 2. [Option B] 3. [Option C] CRITERIA: - [Criterion 1] - [Criterion 2] - [Criterion 3] For each option: - Score against each criterion (1-5) - Key advantages - Key risks - Hidden costs Provide a clear recommendation with reasoning." ``` ## Thinking Frameworks ### First Principles ```bash gemini -m pro -o text -e "" "Apply first principles thinking to: [problem] 1. What do we know for certain? (facts, not assumptions) 2. What are we assuming? (challenge each) 3. What's the simplest explanation? 4. Build up from fundamentals" ``` ### Pre-Mortem ```bash gemini -m pro -o text -e "" "Conduct a pre-mortem for: [project/decision] Imagine this has completely failed. Working backward: 1. What went wrong? 2. What warning signs did we ignore? 3. What assumptions proved false? 4. What can we do NOW to prevent this?" ``` ### Opportunity Cost ```bash gemini -m pro -o text -e "" "Analyze opportunity costs for: [decision] If we choose this: 1. What are we NOT doing? 2. What resources are locked up? 3. What options are foreclosed? 4. What's the cost of reversing?" ``` ### Second-Order Effects ```bash gemini -m pro -o text -e "" "Explore second-order effects of: [action/decision] First-order effect: [The obvious outcome] Now trace the chain: - What does that cause? - Who responds and how? - What unintended consequences emerge? - What feedback loops are created?" ``` ## Use Cases ### Architecture Decisions ```bash gemini -m pro -o text -e "" "Evaluate architecture options: CONTEXT: Building a real-time collaborative editor OPTIONS: 1. Operational Transform (OT) 2. CRDTs 3. Custom sync engine CRITERIA: - Correctness guarantees - Performance at scale - Implementation complexity - Offline support Provide detailed analysis and recommendation." ``` ### Code Design ```bash gemini -m pro -o text -e "" "Think through this design decision: PROBLEM: Where to put validation logic - in the controller, service, or model? Consider: - Separation of concerns - Testability - Maintainability - Real-world examples - What experienced developers prefer and why" ``` ### Debugging Strategy ```bash gemini -m pro -o text -e "" "Help me think through debugging this issue: SYMPTOM: [What's happening] CONTEXT: [System description] TRIED: [What you've already attempted] 1. What does this symptom tell us? 2. What's the most likely root cause? 3. What's the most costly root cause? 4. What's the quickest diagnostic test? 5. In what order should I investigate?" ``` ## Best Practices 1. **Be specific** - Vague problems get vague analysis 2. **Provide context** - Include constraints and requirements 3. **Request structure** - Ask for frameworks, criteria, scores 4. **Challenge the output** - Use follow-up questions 5. **Capture reasoning** - Save good analyses for future reference
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.