discovering-subtopics

discovering-subtopics is a skill for Claude Code, Codex from rootbr/rooted. It costs 205 tokens per session (2,501 once invoked), scanned A, original, Apache-2.0.

A workflow for producing a broad map of questions about a topic before answering it. It is intended for learning, brainstorming, planning, or investigating situations where important angles may be easy to miss.

In plain words
What is it for?
Use it to explore a new field, plan a project or book, investigate an incident, or organize a deep research task into questions across many dimensions.
Why use it?
It helps expose unanswered questions and different perspectives instead of narrowing too early to the first obvious interpretation. Empty areas are marked as unknown rather than padded with invented content.

Skill for Claude CodeCodex

Part of the evidence-based-authoring plugin — 5 skills, 2 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/rootbr/rooted/discovering-subtopics
Any agent
npx skills add rootbr/rooted --skill discovering-subtopics
Clone the repo
git clone --depth 1 https://github.com/rootbr/rooted

Made for: Claude Code, Codex.

Or install evidence-based-authoring, the plugin that ships this one along with the rest of its 5 skills, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for discovering-subtopics

README.md
[![agentmods](https://agentmods.dev/badge/skills/rootbr/rooted/discovering-subtopics.svg)](https://agentmods.dev/skills/rootbr/rooted/discovering-subtopics)
Your own site
<a href="https://agentmods.dev/skills/rootbr/rooted/discovering-subtopics"><img src="https://agentmods.dev/badge/skills/rootbr/rooted/discovering-subtopics.svg" alt="Measured on agentmods" height="20"></a>
Per session 205 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,501 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00205 $0.02501
Opus 5 $0.00102 $0.01251
Sonnet 5 $0.00041 $0.00500
Haiku 4.5 $0.00020 $0.00250

Measured 5d ago against content hash a9fd4ccbba41, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

discovering-subtopics scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/evidence-based-authoring/skills/discovering-subtopics/SKILL.md · 159 lines

How it starts

The opening of the file, as written. The whole thing — 159 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Subtopic Discoverer

Persona

Dispatcher for ten complementary question-generation methods plus a post-audit and a reader-facing synthesis. Runs the ten in parallel, the audit after, the synthesis last. Default bias: more questions I hadn't considered beats more answers I already knew. When a slot yields nothing, label it open terrain — never pad.

Mission

Produce a maximum-breadth map of questions across a topic — covering all dimensions, perspectives, and angles — for any context where nothing important should remain unasked: learning, brainstorming, planning, or investigation.

Inputs

  • topic — the subject; a bare name is enough
  • depth_budget (optional) — quick / standard / deep. Default: standard
  • reference_sources (optional) — expert-authored materials for validation only; never read during dispatch

Workflow

Step 1  Extract topic from user message; compute {topic-slug} (lowercase, hyphens, ASCII)
Step 2  Create run directory tmp/coverage-map-{topic-slug}/ with prompts/ and outputs/
Step 3  Fill shared scaffold + method body into prompts/NN-*.md for each method 01..10
Step 4  Dispatch agents 01–09 in parallel (one Task per agent, run_in_background: true)
Step 5  After 01–09 complete (all show <!-- COMPLETE -->), dispatch agent 10 (Coverage Audit)
Step 6  After 10 completes, dispatch Synthesis agent
Step 7  Synthesis writes {run_dir}/{topic-slug}-questions.md; dispatcher copies to cwd
Step 8  Report to user with ASCII-box headline stats

Steps 4 is parallel; steps 5, 6, 7 are sequential. Restart skips any stage whose output already shows the completion marker.

Shared task-prompt scaffold

Every agent's prompts/NN-*.md begins with this wrapper. The agent reads it from disk; the body below the wrapper is method-specific and lives in the corresponding agents/method-NN-*/prompt.md template.

Topic: {topic}
Depth: {depth_budget}
Run directory: {run_dir}
Output path: {output_path}

Format: flat numbered list of questions only.
Tag each question with the sub-technique that produced it: "N. [Tag] Question text?"
No answers, no explanations, no markdown sub-sections beyond the single top-level heading.
The last non-blank line of your output MUST be exactly: <!-- COMPLETE -->
Do not write the completion marker until every other check in the method's Verification section has passed.

Read the full file on GitHub · 159 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 159 lines · 205 tokens per session scan A a9fd4ccbba41

Subscribe to this mod's changes

discovering-subtopics is a skill published in the GitHub repository rootbr/rooted (21 stars, last pushed 29d ago), licensed Apache-2.0. It adds 205 tokens to every session and 2,501 once invoked, about $0.0010 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens