/cog-second-brain:auto-researchfrom cog-second-brain
Decomposes strategic questions into parallel research threads, spawns multiple agents, and synthesizes findings into actionable analysis with cited sources.
Ships in cog-second-brain. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Inspired by Karpathy's autoresearch — but for strategic thinking instead of ML training.
Check agent_mode in 00-inbox/MY-PROFILE.md frontmatter:
agent_mode: team — use the full parallel agent execution strategy (5-7 agents). This skill benefits massively from team mode.agent_mode: solo - run 2-3 sequential research passes with the configured search and fetch tools (see Search Provider), produce a lighter analysis without the full multi-thread structure.COG does not tie research to one search service. Pick the search and fetch tools once, before Phase 1.
00-inbox/MY-INTEGRATIONS.md.- **Web search (MCP)**: <tool names your host exposes>. Load those tools first (in Claude Code, with ToolSearch).WebSearch and WebFetch tools. Follow the Integration Preferences rule in CLAUDE.md for Disabled and Unknown entries.agent_mode: team, put the chosen tool names into every worker prompt, and state that the user authorized the provider when one is named. In solo mode, use the same tools for every pass.Rules for any provider:
/auto-researchThe user provides a strategic question or topic as the command argument. Examples:
Break the user's strategic question into 5-7 research threads that together will provide a comprehensive answer. Each thread should be:
Decomposition framework:
Not all threads apply to every question. Pick the 5-7 most relevant. Thread 7 (Emerging tech) should ALWAYS be included — the user specifically wants to stay ahead of concepts that aren't mainstream yet.
Before spawning agents:
05-knowledge/ for existing frameworks and mental models04-projects/ for project-specific context if relevantCRITICAL: Launch ALL agents in a single message. Use run_in_background: true for all agents, and subagent_type: worker-researcher for each. Every worker writes its thread to /tmp/research-[thread-slug].md and returns only the path with a one-line status. The orchestrator reads the files in Phase 3.
Each agent gets a detailed prompt following this template:
You are a strategic research analyst investigating a specific thread of a larger strategic question.
MAIN QUESTION: [user's original question]
YOUR THREAD: [specific research thread]
EXISTING CONTEXT: [any relevant vault context]
RESEARCH METHODOLOGY:
SEARCH TOOLS: [the search and fetch tools chosen in Search Provider; default WebSearch and WebFetch]
1. Search for 8-12 high-quality sources with those tools (prioritize: research reports, expert analyses, company filings, academic papers, industry publications - NOT listicles or superficial blog posts)
2. For each source found, fetch the page to read the full content and extract key arguments, data points, and frameworks
3. Look for CONFLICTING viewpoints — don't just confirm one narrative
4. Identify specific data points, statistics, and concrete examples
5. Note the credibility and potential bias of each source
6. FOR EMERGING TECH THREADS: Go beyond polished sources. Search GitHub repos (README, issues, discussions), Twitter/X threads from builders, Discord/forum discussions, conference talk summaries, arXiv preprints, and early blog posts. The goal is to surface concepts that are pre-mainstream but technically promising. For each concept found, assess: maturity level, technical approach, relevance to the user's use case, and what it would take to adopt/integrate.
OUTPUT FORMAT (write ALL of this to your file, then return the path):
## Thread: [thread name]
### Key Findings (3-5 bullet points)
- Finding with source attribution
### Evidence & Data Points
- Specific statistics, market data, examples with sources
### Expert/Notable Perspectives
- Named perspectives from credible voices
### Implications for [user's context]
- What this means specifically for the user's situation
### Confidence Level
- HIGH / MEDIUM / LOW with reasoning
### Sources
- Numbered list of actual URLs consulted, each with a one-line excerpt that supports the finding
Agent naming convention: research-[thread-slug] (e.g., research-market-forces, research-historical-precedent)
Once all agents return, synthesize into a single strategic analysis document:
---
type: strategic-research
domain: [auto-detect from question]
date: YYYY-MM-DD
question: "[original question]"
threads: [list of research threads]
confidence: [overall confidence HIGH/MEDIUM/LOW]
tags:
- auto-research
- strategy
- [topic tags]
status: complete
---
# [Strategic Question as Title]
## Executive Summary
3-5 sentences capturing the core insight. Lead with the answer, not the process.
## The Strategic Landscape
Synthesized view across all research threads. Not a thread-by-thread dump — weave findings together into a coherent narrative.
## Key Forces at Play
The 3-4 most important dynamics shaping this question, with evidence from multiple threads.
## Scenarios
### Scenario A: [Most Likely] — X% confidence
What happens, timeline, implications
### Scenario B: [Optimistic/Alternative]
What happens, timeline, implications
### Scenario C: [Worst Case/Disruption]
What happens, timeline, implications
## Emerging Tech & Architectures to Watch
Concepts, projects, and frameworks that are still in development/discussion but could be foundational. For each:
- **What it is:** One-paragraph explanation
- **Maturity:** Pre-alpha / Alpha / Early adoption / Growing community
- **Technical approach:** How it works architecturally
- **Relevance to our use case:** Why it matters for us specifically
- **Adoption path:** What it would take to integrate/adopt — effort, risks, dependencies
- **Key links:** GitHub repo, paper, discussion thread
## Strategic Options
For each option:
- **Description:** What this means concretely
- **Pros:** With evidence
- **Cons:** With evidence
- **Prerequisites:** What needs to be true
- **Timeline:** When to decide/act
- **Emerging tech leverage:** Which emerging concepts from above could strengthen this option
## Recommended Actions
Prioritized, concrete, time-bound action items. Not vague "consider X" — specific "do X by Y because Z."
Include a separate "Tech Bets" subsection: which emerging projects to start experimenting with now, even if they're not production-ready.
## Contrarian View
The strongest argument against the consensus/recommended path. What could make all of this wrong?
## Confidence & Gaps
- What we're confident about and why
- What we couldn't determine and what additional research would help
- Key assumptions that should be monitored
## Sources
Consolidated, deduplicated list of all sources across threads.
05-knowledge/research/YYYY-MM-DD-[slug].md05-knowledge/research/YYYY-MM-DD-[slug]-summary.mdQuestion: "If generic LLM models get better over time, what's the future for LLM wrapper companies?"
Threads:
05-knowledge/research/This skill requires search and fetch tools: the provider in 00-inbox/MY-INTEGRATIONS.md, or the built-in WebSearch and WebFetch. If neither is available:
05-knowledge/ contentWhat SKILL.md sets; muted values are Claude Code's defaults
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: skills: Invalid input, repository: Invalid input: expected string, received object
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
49 skills in this plugin
/best-of-nSelector stage before a verification gate - generate N candidates in parallel, pick the best with a pivot tournament of pairwise judgements, then gate the winner. For high-variance, non-mutating deliverables only/blog-publishWrite and publish a post to your own static blog end to end: content checklist (embedded links, optional TL;DR), per-post ASCII art, an agent-readable markdown twin, deploy, and social distribution. Use when you say "write a blog post", "publish this to my blog", or "push this post to socials".
/braindumpQuick capture of raw thoughts with intelligent domain classification and competitive intelligence extractionOther plugins' skills for the same job