agentleFS
bettyguobettyguo/obsidian_mcp/skills/prep-for-writing/SKILL.md

prep-for-writing

Skill8 starsChanged 11 months agoMITView on GitHub

Given a writing topic, gather the relevant notes from the vault and assemble a writing scratchpad with quotes and citations.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    Call read_notes_batch(paths=[top 10–15 candidates]) respecting the 200K-char cap.

    line 19
  2. Very specific:

    Write the scratchpad to Writing/<slug>.md (use the topic as a slugified filename).

    line 22
  3. Distinctive:

    Don't write the draft. Stop at the outline.

    line 55
  4. Distinctive:

    Don't paraphrase quotes. Use the user's actual words.

    line 56
  5. Very specific:

    Don't include more than ~15 sources.

    line 57
  6. Distinctive:

    Don't auto-publish or auto-commit anywhere.

    line 58
  7. Very specific:

    Don't run this skill against .canvas or .base files.

    line 59

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

When to use

The user is about to write a long-form piece (essay, blog post, talk, paper) on a topic where their vault already has the raw material. Output is a single scratchpad note with quoted excerpts, source wikilinks, and an outline scaffold.

Procedure

  1. Capture the topic from the user. If absent, ask.
  2. Optionally capture: target length ("1500 words"), audience ("PKM-curious devs"), and angle ("personal essay" vs "tutorial"). Defaults: unspecified.
  3. Call find_related(seed=topic, top_k=25).
  4. Call read_notes_batch(paths=[top 10–15 candidates]) respecting the 200K-char cap.
  5. From the bodies, extract 1–3 high-signal quotes per source. A quote is high-signal if it makes a specific claim or expresses a striking phrase. Cap each quote at ~3 sentences.
  6. Propose a writing outline: 3–6 sections, each with a one-sentence claim and 2–4 supporting quotes. The outline structure depends on the user's angle if specified.
  7. Write the scratchpad to Writing/<slug>.md (use the topic as a slugified filename). Frontmatter: status: drafting, topic, created, target_length if given. Body uses the template in §Output format.
  8. Surface the scratchpad path and a one-paragraph top-line. Suggest the user open it in Obsidian; remind them to flip status to published (or delete the scratchpad) when done.

Output format

# Scratchpad: {topic}

> Target: {length / angle / audience} (or "unspecified")
> Generated: {YYYY-MM-DD}

## Outline

### 1. {Section claim}
- Quote from [[Source A]]:
  > {quoted text}
- Quote from [[Source B]]:
  > {quoted text}

### 2. {Section claim}
- ...

## Bibliography
- [[Source A]] — {one-line summary}
- [[Source B]] — {one-line summary}
- ...

## Draft
(empty — the user writes here)

Anti-patterns

  • Don't write the draft. Stop at the outline. The user writes the draft.
  • Don't paraphrase quotes. Use the user's actual words. Misattribution to oneself is a small disaster.
  • Don't include more than ~15 sources. If the user's vault has 40+ relevant notes, pick the most central via find_hubs constrained to the topic — and tell the user you down-selected.
  • Don't auto-publish or auto-commit anywhere. The scratchpad is private until the user moves it.
  • Don't run this skill against .canvas or .base files; they're not body text.

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.