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.
In this repository6 other files it gives its agents.
- build-MOCSkill
- connect-ideasSkill
- daily-summarySkill
- find-orphansSkill
- refactor-tag-treeSkill
- review-and-linkSkill
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
- Very specific: line 19
Call read_notes_batch(paths=[top 10–15 candidates]) respecting the 200K-char cap.
- Very specific: line 22
Write the scratchpad to Writing/<slug>.md (use the topic as a slugified filename).
- Distinctive: line 55
Don't write the draft. Stop at the outline.
- Distinctive: line 56
Don't paraphrase quotes. Use the user's actual words.
- Very specific: line 57
Don't include more than ~15 sources.
- Distinctive: line 58
Don't auto-publish or auto-commit anywhere.
- Very specific: line 59
Don't run this skill against .canvas or .base files.
≈ “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.
Files
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
- Capture the topic from the user. If absent, ask.
- Optionally capture: target length ("1500 words"), audience ("PKM-curious devs"), and angle ("personal essay" vs "tutorial"). Defaults: unspecified.
- Call
find_related(seed=topic, top_k=25). - Call
read_notes_batch(paths=[top 10–15 candidates])respecting the 200K-char cap. - 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.
- 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.
- Write the scratchpad to
Writing/<slug>.md(use the topic as a slugified filename). Frontmatter:status: drafting,topic,created,target_lengthif given. Body uses the template in §Output format. - Surface the scratchpad path and a one-paragraph top-line. Suggest the user open it in Obsidian; remind them to flip
statustopublished(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_hubsconstrained 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
.canvasor.basefiles; they're not body text.
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.

