writing-shape
- 信任分
- 88/100
- 兼容 Agent
- 1
- 领域
- 文档
- 兼容 Agent
- Claude Code
- 信任分
- 88 / 100 · 社区维护
- 作者 / 版本 / 许可
- @mattpocock · 未声明 license
- 安装命令数
- 1 条
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
想读作者英文原文? ↓ 滚到正文区切换 · 在 GitHub 查看 ↗
writing-shape 把一份原料 pile(整理过的 fragment 列表 / 一大坨散文 / 转录稿都行)shape 成文章——不动原料,单独写到一份新的文章文件,按段落级生长。和 writing-beats 不同:这里以「段 / 段间过渡」为单位,更适合论说性文章。
设计思路
作者把 shape 当成「论点的 grilling 过程倒过来」:在 ideation 里问"你到底注意到了什么?",在这里问"这篇文章到底在论证什么、读者需要按什么顺序听?"——逼问、拒绝弱过渡、不让没赚到席位的段落留下。
Loop(5 步)
1 读完 pile:把输入文件全文读完,形成对里面有什么的整体感受;2 起 2–3 个候选 opening:每个 opening 暗含不同 thesis / 角度,全列出来让用户挑或自己合一个 hybrid——选定的 opening 决定后续要做什么;3 段落级生长:opening 落地后问"基于这个 opening,读者下面需要听到什么?",从 pile 里抽材料回答;与用户辩论:下一步是段落、列表、表格、callout、引用还是 code block?每个格式选择都要 deliberate 且 defensible;4 边走边 append 到文章文件——不批处理,每一段写定就立即写到文件里让用户看到雏形;5 循环 3 直到用户决定结束。
Conversational feel
要持续追问的几个 move:
- 「这一段比上一段多给读者什么?」
- 「我把它砍掉,什么会断?」
- 「这段是 prose 还是该改成 list?为什么 prose?」
- 「这一句在干两件事——拆,或选一件。」
- 「opening 承诺了 X,我们已经偏到 Y。要么把 X 重新接回来,要么换 opening。」
Pulling from the pile
原料是采石场,不是剧本:取一个 fragment,按所在段的需要重塑、放进去;一个 fragment 可被切成多段使用。绝不复制粘贴整段——那让文章成了 pile 的二手副本。
写作节奏
write 之前先 re-read 文章文件保留用户编辑;Out of scope:不写 TOC、不调整原料、不替用户决定文章主旨——主旨用户在 opening 阶段就决定了。
适合的场景
- 把笔记 / fragment 长成一篇结构化的论说文 / 技术 essay
- 长素材(访谈转录、长会议纪要)shape 成可发表文章
- 多次 session 接力写作,每次推进一段
何时不要用
- 想以「单步动作」感推进:用
writing-beats更顺 - 还没有原料:先
writing-fragments攒料
配套
writing-fragments(前置原料)、writing-beats(更小颗粒的 beat 节奏)、writing-skills(写作语调)、ubiquitous-language(术语锚定)。
The user has passed (or will pass) a markdown file of raw material. Treat it as the input pile — anything from a tidy list of fragments to a wall of unstructured prose to a transcript. The format does not matter. Read it end-to-end before doing anything else.
Then run a shaping session that produces a separate article document. Do not edit the raw material file — it is read-only to this skill.
If the user did not say where to save the article, ask once and remember the path. The user will be editing the article file during the session; always re-read it before writing so their edits are preserved.
The loop
- Read the pile. Read the input file in full. Form a sense of what's in it.
- Draft 2–3 candidate openings. Each opening should imply a different thesis or angle for the article. Show all of them. Force the user to pick or compose a hybrid. The chosen opening defines what the rest of the article must do.
- Grow paragraph by paragraph. After the opening lands, ask "given this opening, what does the reader need to hear next?" Pull material from the pile to answer. Argue about whether the next beat is a paragraph, a list, a table, a callout, a quote, a code block. Each format choice should be deliberate and defensible.
- Append to the article file as you go. Don't batch. Write each agreed paragraph or block immediately so the user can see the article taking shape.
- Loop step 3 until the article is done. The user decides when it's done.
Conversational feel
This is a grilling session inverted. In ideation, the question was "what are you actually noticing?" Here it's "what is this article actually arguing, and in what order does the reader need to hear it?" Push back. Refuse to let weak transitions slide. If a paragraph doesn't earn its place, cut it.
Specific moves to keep using:
- "What does this paragraph do for the reader that the previous one didn't?"
- "If I cut this, what breaks?"
- "Is this prose, or should it be a list? Why prose?"
- "This sentence is doing two jobs — split it or pick one."
- "The opening promised X. We've drifted to Y. Either re-thread it or change the opening."
Pulling from the pile
Treat the raw material as a quarry, not a script. Pull a fragment, rework it to fit the surrounding paragraph, and place it. A fragment may be split across multiple paragraphs, merged with another, or paraphrased. The pile's job is to be mined; the article's job is to read as one voice.
If the pile lacks something the article needs, name the gap explicitly: "We need an example here and the pile doesn't have one — give me one now or we cut this section."
Format arguments to actually have
When choosing how to render a beat, weigh these tradeoffs out loud with the user, not silently:
- Prose vs. list. Prose carries argument; lists carry parallel items. If items aren't truly parallel, prose is better. If they are, a list is faster to scan.
- Inline vs. callout. Tips, warnings, and asides go in callouts (
> [!TIP],> [!NOTE]) — but only if they'd genuinely derail the main argument inline. Otherwise leave them inline. - Table vs. repeated structure. If the same shape repeats 3+ times with the same fields, a table. Otherwise prose with bold leads.
- Quote vs. paraphrase. Quote when the original wording is the point. Paraphrase when only the idea matters.
- Code block vs. inline code. Multi-line, runnable, or illustrative → block. Single token or identifier → inline.
Writing rhythm
Append to the article file as each block is agreed. Re-read the file from disk before every write — the user may have edited between turns. Never overwrite blindly. If the user wants a paragraph rewritten, edit that specific paragraph in place; leave the rest alone.
Out of scope
- Mining for new fragments that aren't in the pile (the pile is the input — if it's incomplete, name the gap and either get the user to fill it or cut the section).
- Editing the raw material file.
- Publishing, formatting for a specific platform, or adding frontmatter the user didn't ask for.