Xpersona
Z

zettel-brainstormer

CLAWHUB · Unverified

Build structured brainstorming notes from a seed zettel by retrieving linked notes, preprocessing each note with subagents for relevance extraction, drafting...

62
Rank
84
Safety
1.4k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.4K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s174jr89gtts64q6r7vjgw2e2983fhme:zettel-brainstormer
  1. Install using `clawhub skill install s174jr89gtts64q6r7vjgw2e2983fhme:zettel-brainstormer` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/hxy9243/zettel-brainstormer before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-hxy9243-zettel-brainstormer/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

91,576 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: zettel-brainstormer
description: Build structured brainstorming notes from a seed zettel by retrieving linked notes, preprocessing each note with subagents for relevance extraction, drafting with cited evidence, and publishing a natural blog-style post with a final References section. Use when asked to expand, research, synthesize, or publish from local Obsidian/Zettelkasten notes.
---
# Zettel Brainstormer

Run this workflow in order. Keep each stage separate so relevance decisions happen before drafting.

## Configure Once

1. Run setup:
```bash
python zettel-brainstormer/scripts/setup.py
```
2. Confirm `zettel-brainstormer/config/models.json` contains:
- `zettel_dir`
- `output_dir`
- `models` and `agent_models`
- `retrieval.link_depth` and `retrieval.max_links`

## Stage 1: Retrieval

Goal: retrieve candidate notes from the seed note.

Required order for this stage:
1. Read retrieval limits from config and target candidate count using `retrieval.max_links`.
2. Check if the external `zettel-link` skill is available. If it exists, run semantic retrieval via its `scripts/search.py` command using the seed note's topic or title. If it doesn't exist, warn the user and skip this step.
3. Run local retrieval with `scripts/find_links.py` to gather exact wikilinks and tag-overlap notes.
4. Merge and deduplicate candidates from both sources. Prioritize semantic candidates first, and trim to the configured count.
5. Exclude the seed note itself.

Local retrieval command:
```bash
python zettel-brainstormer/scripts/find_links.py \
  --input "/absolute/path/to/Seed Note.md" \
  --output /tmp/zettel_candidates.json
```

Treat `/tmp/zettel_candidates.json` as the candidate pool for preprocessing.

## Stage 2: Preprocess (Subagent Per Note)

Goal: preprocess each candidate note and decide relevance to the seed note.

1. Read `agents/preprocess.md` as the per-note instruction.
2. Spawn one subagent per candidate note.
3. For each note, require:
- Relevance score against the seed note topic.
- Concise summary.
- Distinct key points.
- Short evidence quotes when useful.
4. Save each subagent output as markdown (one file per source note).

Quality rules:
- Reject notes with weak relevance.
- Prefer concrete claims and non-duplicated points.
- Keep outputs compact and structured for downstream merge.

## Stage 3: Draft (Synthesis Subagent)

Goal: gather only relevant preprocess outputs and generate a referenced draft.

1. Run the aggregation helper:
```bash
python zettel-brainstormer/scripts/compile_preprocess.py \
  --seed "/absolute/path/to/Seed Note.md" \
  --preprocess-dir /tmp/zettel_preprocess \
  --output /tmp/zettel_draft_packet.json
```
2. Read `agents/draft.md`.
3. Use one drafting subagent with:
- Seed note content
- Filtered relevant notes from `/tmp/zettel_draft_packet.json`
- Required citation mapping from the packet
4. Produce a draft that cites source notes inline and preserves traceability.

## Stage 4: Publish (Publisher Subagent)

Goal: 

README.md

# Zettel Brainstormer

An AI-powered skill for expanding a seed zettel into a referenced, publishable post.

This works best when paired with the `zettel-link` skill from the same repo for semantic retrieval before local link/tag retrieval.

- Local path: `../zettel-link`
- Skill doc: [`../zettel-link/SKILL.md`](../zettel-link/SKILL.md)

## Overview

This skill uses a **4-stage pipeline**:
1. **Retrieval**: pick retrieval count from config, prefer semantic candidates from `zettel-link` when available, then use local wikilink/tag retrieval.
2. **Preprocess**: run one subagent per candidate note to extract relevance and key evidence.
3. **Draft**: synthesize only relevant notes into a structured draft with citations.
4. **Publish**: rewrite into natural language and keep a final `## References` section.

## Core Docs

- Full workflow: `SKILL.md`
- Agent prompts: `agents/`
- Scripts: `scripts/`

## Quick Start

1. Configure the skill once:
```bash
python zettel-brainstormer/scripts/setup.py
```
2. (Recommended) Prepare semantic retrieval with `zettel-link`:
```bash
uv run zettel-link/scripts/embed.py --input <your-zettel-dir>
uv run zettel-link/scripts/search.py --input <your-zettel-dir> --query "<seed topic>"
```
3. Retrieve local linked/tag notes for the seed:
```bash
python zettel-brainstormer/scripts/find_links.py \
  --input "/abs/path/Seed Note.md" \
  --output /tmp/zettel_candidates.json
```
4. Preprocess candidates with subagents and save outputs into `/tmp/zettel_preprocess/*.md`.
5. Compile the draft packet from relevant preprocess results:
```bash
python zettel-brainstormer/scripts/compile_preprocess.py \
  --seed "/abs/path/Seed Note.md" \
  --preprocess-dir /tmp/zettel_preprocess \
  --output /tmp/zettel_draft_packet.json
```
6. Draft with `agents/draft.md`, then publish with `agents/publisher.md` and include `## References`.

_meta.json

{
  "ownerId": "kn72fqx2vrwq394z3tq1dkda8h816qnz",
  "slug": "zettel-brainstormer",
  "version": "1.1.2",
  "publishedAt": 1774463801358
}

agents/draft.md

# Draft Agent

## Goal
Synthesize relevant preprocessed notes into a structured draft with full traceability.

## Model Tier
- Use `agent_models.drafter` from config.
- Resolve to `models.deep` by default for synthesis quality.
- Allow `models.fast` only for lightweight early drafts.

## Input
- Seed note content
- Filtered relevant preprocess outputs
- Citation mapping (`filepath` and note title)

## Writing Requirements
- Build the draft around clear thesis and tiered argument sections.
- Build from the full set of relevant notes; the draft does not need to revolve only around the seed note.
- Keep only relevant points that support the thesis. Discard any sections that do not directly support the thesis.
- Merge overlapping points without losing source attribution.
- Avoid invented claims.
- Create short, scan-friendly section headings that read like labels, not full claims.
- Before writing full prose, create a high-level argument scaffold so the final post reads as one coherent chain.

## Heading Rules
- Prefer `##` headings that are roughly 2-6 words.
- Keep headings compact when possible (around 8 words or fewer).
- Use title case and concrete nouns.
- Avoid subtitle-style punctuation such as colons, semicolons, and em dashes.
- Do not write headings as full sentences or complete argumentative claims.
- If the draft auto-numbers subsections, keep labels compact after the number (for example: `1.1 Stories, Not Just Facts`).

## Heading Compression Examples
- Long: `Humans Coordinate Through Story, Not Just Facts`
- Better: `Stories, Not Just Facts`
- Long: `When Epistemic Habits Decay, Democracy Becomes Procedural but Empty`
- Better: `Impact on Democracy`
- Long: `Silicon Valley's Political Turn Is a Symptom of Deeper Legitimacy Fracture`
- Better: `Silicon Valley's Political Turn`

## Citation Rules
- Cite every source-backed claim inline using `[[Note Title]]`.
- Do not cite notes that are not used.
- Keep citation-title mapping consistent with input metadata.
- Ensure claims in the argument spine also point to supporting preprocessed notes.

## Argument Scaffold Requirement
- Start with a brief "argument spine" before the full draft body.
- Label this section as internal scaffolding for the publisher step.
- The spine should include:
  - central thesis (1-2 sentences),
  - ordered major claims (3-5 bullets),
  - logic of progression (how each claim leads to the next),
  - where each claim is supported by preprocessed notes and references.
- Use this scaffold to prevent disconnected sections and "frankenstein" structure.
- When merging points, preserve the chain of reasoning first, then optimize prose.

## Output
- A short high-level argument scaffold at the top, clearly marked as internal (not final blog content)
- Markdown draft with section headings
- `## References` at the end with all cited notes (unique)

agents/preprocess.md

# Preprocess Agent

## Goal
Analyze one candidate note and determine relevance to the seed note.

## Model Tier
- Use `agent_models.preprocess` from config.
- Resolve to `models.fast` by default for cost-efficient extraction.
- Use `models.deep` only when a note is dense, ambiguous, or highly technical.

## Input
- Seed note topic and key intent
- One candidate note content
- Candidate note path

## Required Output (Markdown)
1. `Relevance Score`: integer `0-10`
2. `Title`: candidate note title
3. `Filepath`: absolute path
4. `Summary`: concise summary that preserves the note's main ideas (not generic compression)
5. `Key Points`: concise bullets that add non-duplicated value
6. `Evidence`: important direct quotes when useful (keep wording accurate)
7. `References`: key links/tags/citations mentioned in the note when present
8. `Relevance Verdict`: `relevant` or `irrelevant`

## Relevance Rules
- Mark `irrelevant` when the note does not materially help the seed topic.
- Penalize weak thematic overlap and generic filler.
- Favor concrete claims, mechanisms, examples, and counterpoints.

## Fidelity Rules
- Preserve core intent and nuance from the original note.
- Do not strip out high-signal quotes that are important to later argument building.
- Keep notable references (wikilinks, tags, explicit citations) so downstream drafting can trace them.

## Format Rule
If irrelevant, keep output short but still include score, filepath, and verdict.

Sponsored

Ads related to zettel-brainstormer and adjacent AI workflows.