agentleFS
chrisblattmanchrisblattman/claudeblattman/skills/dr-synthesize/SKILL.md

dr-synthesize

Skill479 starsChanged 22 days agoMITView on GitHub

Combine two or more saved research reports into a synthesis while preserving links to their original sources.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If --topic is not provided, infer from frontmatter (must match across inputs.

    line 36
  2. Very specific:

    If all inputs share the same parent raw-inputs/ directory → write synthesis there.

    line 39
  3. Distinctive:

    If inputs span multiple project folders → use the *commissioning* project (the folder of the first argument).

    line 40
  4. Distinctive:

    If a source path no longer exists at synthesis time, fail loud — do not silently drop it.

    line 123
  5. Very specific:

    Project folder bases: Default ~/projects/<name>/raw-inputs/.

    line 144

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md
<!-- dr-synthesize v1 | sanitized from private skill -->

/dr-synthesize

Synthesize 2+ deep-research raw reports into a single markdown synthesis with a mandatory ## Source Reports header preserving absolute paths to originals.

Combine 2+ deep-research raw reports into a single synthesis. The synthesis is always a new file — raw inputs are never edited.

Companion to /deep-research. This skill consumes /deep-research outputs (or any deep-research raw reports with the canonical frontmatter). Called automatically by /deep-research --synthesize, but also usable standalone for ad-hoc synthesis of older reports.

Argument hint

<archived-path-1> <archived-path-2> [<archived-path-N>...] [--out <output-path>] [--topic <override>]

You need at least 2 input paths. Reports must already be archived in canonical project locations (frontmatter with date:, topic:, tool: fields).

Risk escalation: Auto for synthesis writes (new file in archive). Per-item confirm if --out overwrites an existing file.


Phase 1 — Validate inputs

For each path argument:

  • Exists and is non-empty
  • Has YAML frontmatter (date, topic, tool fields present)
  • Lives in a project raw-inputs/ folder, e.g.:
    • ~/projects/*/raw-inputs/
    • ~/Documents/research/*/raw-inputs/
    • ~/Documents/research/*/<paper-folder>/raw-inputs/
  • Legacy paths (e.g., a single central archive directory) are warned about; the central directory should hold INDEX only after federated migration.

If --topic is not provided, infer from frontmatter (must match across inputs; warn on mismatch).

Determine output project folder (Phase 3 --out default):

  • If all inputs share the same parent raw-inputs/ directory → write synthesis there.
  • If inputs span multiple project folders → use the commissioning project (the folder of the first argument). Cross-project synthesis stubs are out of scope for v1.

Phase 2 — Build synthesis prompt

Construct an internal prompt that:

  1. Lists each input with its absolute path + tool + date + 1-line preview
  2. Asks the model to identify: agreements, contradictions, gaps, unique insights per source
  3. Produces a synthesis matching the schema in Phase 3

Phase 3 — Write synthesis file

Output: $PROJECT_DIR/${DATE}_${SLUG}_synthesis.md where $PROJECT_DIR is the resolved project folder from Phase 1 (or --out override).

Frontmatter must include project: <name> so the INDEX row in Phase 4 can be generated without re-parsing the path.

Required schema — first section MUST be ## Source Reports with absolute paths:

---
date: YYYY-MM-DD
topic: <topic>
type: synthesis
sources: <count>
project: <project-name>
---

# <Topic> — Synthesis

## Source Reports
- [<tool> run, <date>] <abs-path-to-input-1>
- [<tool> run, <date>] <abs-path-to-input-2>
- [Original prompt] <abs-path-to-prompt>   # if available

## Headline Findings
<2-4 bullet points; what every source agreed on or what was the most important emergent insight>

## Agreements
<where sources converge; cite which sources>

## Contradictions
<where sources disagree; cite which sources said what; do NOT pick a winner unless evidence is clearly one-sided>

## Gaps & Open Questions
<what no source addressed; what still needs investigation>

## Unique Per-Source Insights
### From <tool-1>
- <insight>
### From <tool-2>
- <insight>

Phase 4 — INDEX update (pointer rows)

Append a pointer row to the central INDEX.md and a JSONL companion row. The path column is the canonical project location, expressed relative to $HOME for portability.

INDEX=~/research-archive/INDEX.md
JSONL=~/research-archive/INDEX.jsonl

REL_PATH="${SYNTH_PATH/#$HOME\//~/}"

echo "| $DATE | $TOPIC | synthesis | — | $PROJECT | [$(basename "$SYNTH_PATH")]($REL_PATH) |" >> "$INDEX"

jq -nc \
  --arg date "$DATE" --arg topic "$TOPIC" --arg project "$PROJECT" \
  --arg path "$REL_PATH" --arg sources "$COUNT" \
  '{date:$date, topic:$topic, tool:"synthesis", project:$project, path:$path, sources:($sources|tonumber)}' \
  >> "$JSONL"

Phase 5 — Telemetry

echo "$(date +%Y-%m-%d),dr-synthesize,$TOOL_CALLS,${COUNT}-sources" >> ~/.claude-assistant/logs/skill-performance.csv

Invariants

  • Synthesis NEVER overwrites or modifies raw inputs.
  • The ## Source Reports block is mandatory and must use absolute paths (not relative).
  • If a source path no longer exists at synthesis time, fail loud — do not silently drop it.
  • Synthesis is markdown only; no embedded raw-input content (paths are pointers, not copies).

Smoke test

/dr-synthesize \
  ~/projects/working-notes/raw-inputs/2026-04-17_long-context-risks_claude.md \
  ~/projects/working-notes/raw-inputs/2026-04-17_long-context-risks_codex.md

Verify:

  • Synthesis at ~/projects/working-notes/raw-inputs/2026-04-17_long-context-risks_synthesis.md exists (same project folder as inputs)
  • First section is ## Source Reports with both absolute paths listed
  • Frontmatter includes project: working-notes
  • Raw inputs unchanged (compare hash before/after)
  • INDEX.md row appended; INDEX.jsonl row appended (verify with jq -c '.tool=="synthesis"' ~/research-archive/INDEX.jsonl | tail -1)
  • No .md content file created in ~/research-archive/

Customization Points

  • Project folder bases: Default ~/projects/<name>/raw-inputs/. Adjust to match your /deep-research routing config.
  • Central index location: ~/research-archive/INDEX.md and INDEX.jsonl. Should match the /deep-research skill's index paths.
  • Synthesis model: Whatever model is available in your runtime — typically the same as your default Claude Code model. No special config needed; the synthesis runs in-context.

Related skills

  • /deep-research — produces the raw reports this skill consumes. Pass --synthesize to chain them automatically.
  • /prompt — useful for refining the synthesis topic if --topic override is needed.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.