writing-fragments

writing-fragments is a skill for Claude Code, Codex from devcxl/mattpocock-skills-zh. It costs 21 tokens per session (921 once invoked), scanned A, original, MIT.

A writing aid for exploring ideas as raw, readable fragments and saving them to a Markdown file. It keeps the material unstructured instead of turning it into an outline or finished article.

In plain words
What is it for?
Use it to explore a writing topic through questions, collect sentences, claims, stories, code examples, quotes, observations, and memorable terms, and append them to a Markdown document.
Why use it?
It helps you capture useful thoughts before deciding what they mean or where they belong. You can keep your own edits while the conversation adds new fragments.

Skill for Claude CodeCodex

Written for Claude Code and Codex: disable-model-invocation in frontmatter, but also agents/openai.yaml present.

Part of the mattpocock-skills plugin — 37 skills shipped together

Good fit Use it to explore a writing topic through questions, collect sentences, claims, stories, code examples, quotes, observations, and memorable terms, and append them to a Markdown document.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/devcxl/mattpocock-skills-zh/writing-fragments
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add devcxl/mattpocock-skills-zh --skill writing-fragments
Clone the repo
git clone --depth 1 https://github.com/devcxl/mattpocock-skills-zh

Made for: Claude Code, Codex.

Or install mattpocock-skills, the plugin that ships this one along with the rest of its 37 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for writing-fragments

README.md
[![agentmods](https://agentmods.dev/badge/skills/devcxl/mattpocock-skills-zh/writing-fragments/github.svg)](https://agentmods.dev/skills/devcxl/mattpocock-skills-zh/writing-fragments)
Your own site
<a href="https://agentmods.dev/skills/devcxl/mattpocock-skills-zh/writing-fragments"><img src="https://agentmods.dev/badge/skills/devcxl/mattpocock-skills-zh/writing-fragments/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for writing-fragments

Your own site · 80×15
<a href="https://agentmods.dev/skills/devcxl/mattpocock-skills-zh/writing-fragments"><img src="https://agentmods.dev/badge/skills/devcxl/mattpocock-skills-zh/writing-fragments.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 921 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00021 $0.00921
Opus 5 $0.00010 $0.00461
Sonnet 5 $0.00004 $0.00184
Haiku 4.5 $0.00002 $0.00092

Measured 12d ago against content hash b18e6232da93, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

writing-fragments scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/in-progress/writing-fragments/SKILL.md · 80 lines

What it actually says

这是纯粹的 explore(探索):拓宽可被写作的空间,不承诺任何结构:承诺结构是 exploit(利用) 的任务,由另一个技能负责。进行一次产生碎片的盘问,就用户想写的任何话题不断追问。强加阶段、大纲或文章结构在此不在范围内。

当对话双方的碎片浮现时,将它们追加到一份 markdown 文件中。

如果用户没有传入保存路径,询问一次文档保存到哪里,然后在整个对话中记住它。

从用户说的第一件事(包括初始 prompt)开始就捕捉碎片。

首次写入时,在顶部放一个 H1 的工作标题(以后可以改),除此之外什么都不放:没有元数据、没有目录、没有日期。

什么是碎片

碎片是任何可能在最终文章中幸存下来的文本片段。它必须对作者具有可读性:作者能理解它的意思:但它不需要定义其术语,也不需要对陌生读者来说可以理解。标准是"这是一段好的写作吗?",而不是"这是一个完整的论证吗?"

碎片刻意保持异质化。哪些可以成为碎片的例子:

  • 一个你想用但还不知道放在哪里的犀利句子。
  • 一个带有一句话论证的主张。
  • 一个小插曲:一件发生过的事、一段代码片段、一个场景、一个类比。
  • 一个半成品想法:"某件事感觉像某件事,以后再展开。"
  • 一句引用、一段对话、一句无意中听到的话。
  • 一组凭感觉聚在一起的观察。
  • 一个抱怨、一个坦白、一个笑点。
  • 一个引导词(leading word):一个紧凑的隐喻或新造词,整个文章可以挂靠其上(用一个词来命名这个想法,就像 tracer bullets(曳光弹)fog of war(战争迷雾) 命名了一个完整模式)。

其中,引导词是最有价值的碎片。它是承重结构:在探索阶段找到恰如其分的词,就能塑造整个文章的结构、过渡和标题:在整个利用阶段持续受益。当对话反复围绕某个想法时,推动为它造一个词。

小说家的日记是这里的模式:多年来无结构的觉察,后来被开采为原始素材。碎片就是觉察。

文件格式

# 工作标题

第一个碎片放在这里。

它可以有多段。可以包含列表、代码、引用:碎片自然是什么形状就
写成什么形状。

---

第二个碎片。

---

> 用户想保留的一句引用。

对它的回应。

---

- 一组相关的观察
- 凭感觉聚在一起
- 想彼此靠近放置

碎片之间用水平分隔线(\n---\n)分隔。正文中没有标题。没有标签。没有超出添加顺序以外的排序。

写作节奏

静默追加。不要为每个碎片请求许可。顺带提一下你添加了什么("加上这个"),但不要用保存弹窗打断对话。

每次写入前:从磁盘重新读取文件。用户可能在两轮对话之间编辑、重新排序或删除了碎片:保留他们的修改。永远不要覆盖文件;只追加(或者,如果用户要求,就地编辑某个特定碎片)。

用户可以随时说"删掉最后一个"、"把那个重写得更有力一点"、"把那两个合并"。将这些视为一等指令来对待。

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 80 lines · 21 tokens per session scan A b18e6232da93

Subscribe to this mod's changes

writing-fragments is a skill published in the GitHub repository devcxl/mattpocock-skills-zh (343 stars, last pushed 7d ago), licensed MIT. It adds 21 tokens to every session and 921 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.