hierarchical-recursive-brainstorm
Skill1 starsChanged 59 days agoApache-2.0View on GitHub
Decomposes a topic into a controlled hierarchy, recursively expands leaves, prunes the bottom quartile, and synthesizes upward into a self-explanatory Markdown tree. Use this whenever the user asks to research a complex topic, brainstorm agent evaluation patterns, or requires a rigorous structural breakdown of ideas.
In this repository39 other files it gives its agents.
- agent-core/AGENTS.mdAGENTS.md
- .agents/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- behavioral-regression/AGENTS.mdAGENTS.md
- claude-foundation/AGENTS.mdAGENTS.md
- config/AGENTS.mdAGENTS.md
- corpora/AGENTS.mdAGENTS.md
- demo/AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- examples/AGENTS.mdAGENTS.md
- experiments/AGENTS.mdAGENTS.md
- flow-corpus/AGENTS.mdAGENTS.md
- flow-protocol/AGENTS.mdAGENTS.md
- openspec/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- tests/AGENTS.mdAGENTS.md
- claude-foundation/CLAUDE.mdCLAUDE.md
- merge-gate-auditorSkill
- update-executive-reportSkill
- update-executive-reportSkill
- architecture-drift-guardSkill
- commonSkill
- corpus-guardianSkill
- dataset-lintSkill
- deploySkill
- e2e-matrix-sentinelSkill
- eval-corpus-forgeSkill
- model-benchSkill
- openai-judgeSkill
- openspec-implementation-reviewSkill
- openspec-peer-reviewSkill
- openspec-quality-planSkill
- pre-pr-gateSkill
- project-setupSkill
- quality-gateSkill
- refactoring-decomposerSkill
- repo-invariant-reviewSkill
- test-completeness-guardSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 33
CRITICAL RULE: Do not invent or hallucinate external knowledge.
- Distinctive: line 46
Do not produce a partial or hallucinated tree.
- Very specific: line 52
Run structural only (python scripts/validate_skill.py --skill .
- Distinctive: line 56
Synthesis Present: Every parent node has a synthesis of its children.
- Distinctive: line 58
No Hallucinations: No external knowledge was invented.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
hierarchical-recursive-brainstorm — E2E Action Skill
Perform controlled hierarchical research end to end: take a broad research question, produce a pruned and synthesized Markdown tree of findings, and prove it worked before reporting success.
1. Preconditions (input contract)
- The user has provided a clear research topic or question.
- You have reviewed the composition contract and examples in
references/research-application.md.
2. Procedure (the E2E steps)
Execute the following hierarchical research protocol:
- Decompose: Break the initial topic into 2-5 distinct sub-topics (branches).
- Expand: Recursively explore each branch. Stop expanding when you reach the configured
max_depth(default: 3) or when a branch is sufficiently detailed. - Prune: Evaluate the leaves of the tree and prune the bottom quartile (the least relevant, least feasible, or weakest ideas).
- Synthesize: Moving from the leaves up to the root, write a brief synthesis paragraph for every surviving parent node that summarizes its children.
- Output: Generate the final output as a self-explanatory Markdown tree.
- Action: Conclude the output with a "Next Actions" paragraph detailing the most promising paths forward.
Tunable Parameters (Agent Overrides)
These limits apply unless you explicitly decide to override them based on the task:
max_depth: (configurable, determine dynamically based on topic breadth)max_children: (configurable, determine dynamically based on topic breadth)prune_quartile: (configurable, determine dynamically based on leaf density)
CRITICAL RULE: Do not invent or hallucinate external knowledge. Rely on your existing knowledge and any provided context or searches.
3. Output contract (postconditions — what "done" means)
- A final Markdown tree is produced containing the surviving ideas.
- Synthesis is present for every surviving parent node.
- A "Next Actions" paragraph exists at the end.
- The bottom quartile of ideas has been demonstrably pruned.
- The depth and branch limits were respected.
4. Failure handling
- On failure (e.g., if the topic is too broad to decompose meaningfully), report the specific issue and ask the user to refine the scope.
- Do not produce a partial or hallucinated tree.
5. Validation gate (before declaring success)
Subjective skill validation: There is no honest scripted gate for the quality of research.
- Run structural only (
python scripts/validate_skill.py --skill . --tier structural) to keep the metadata/triggering honest. - Self-check against explicit, concrete criteria:
- Limits Respected: Max depth and branch limits were not exceeded.
- Pruning Applied: The bottom quartile of leaves was absent from the final output.
- Synthesis Present: Every parent node has a synthesis of its children.
- Next Actions Present: The output concludes with a "Next Actions" paragraph.
- No Hallucinations: No external knowledge was invented.
6. Examples
See references/research-application.md for concrete examples of applying this skill to agent-evaluation research.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

