AGENT SKILL

writing-fragments

写作,发散:挖掘原始片段,暂不搭结构。

License 许可
MIT
所属仓库
luestr/skills
最近更新
2026-11-14
Stars
★ 94
Forks
1

01 前言 Front Matter

name
writing-fragments
metadata
{ "language": "zh-CN", "disable-model-invocation": true }
description
写作,发散:挖掘原始片段,暂不搭结构。

02 资源文件 1

03 SKILL.md 正文

<what-to-do>

这是纯粹的发散:拓宽可写内容的范围,而不锁定结构。锁定结构是_收敛_,那是另一个技能的工作。运行一场以产出片段为目标的拷问式访谈,围绕用户想写的任何内容不留情面地访谈他们。强加阶段、大纲或文章结构,不在本技能的范围内。

当片段从对话的任何一方浮现时,把它们追加到一个 markdown 文件里。

如果用户没有传入路径,问一次文档保存到哪里,然后在本次会话余下的时间里记住它。

从用户说的第一句话开始捕捉片段,包括最初的提示词。

第一次写入时,在顶部放一个 H1 作为暂定标题(之后可以改),别的什么都不放:没有元数据、没有目录、没有日期。

</what-to-do>

<supporting-info>

什么是片段

片段是任何有可能留到最终文章里的文字。它必须_对作者可读_(作者能看出它是什么意思),但不需要定义术语,也不需要让毫无背景的读者读懂。标准是“这是一段好文字吗?”,而不是“这是一个自成一体的论证吗?”

片段刻意保持异质。可能成为片段的例子:

  • 一句锋利的句子,你想用在某处,但还不知道是哪里。
  • 一个主张,配一行理由。
  • 一个小场景:发生过的一件事、一段代码、一个情境、一个类比。
  • 一个半成型的想法:“关于 X 怎么感觉像 Y 的某种东西,以后再想清楚。”
  • 一句引文、一段对话、一句偶然听到的话。
  • 一串凭感觉聚在一起的观察。
  • 一句抱怨、一次坦白、一句点睛的话。
  • 一个引导词:整篇文章可以挂靠的紧凑隐喻或自造词(一个给想法命名的词,就像_writing-fragments_或_fog of war_命名了整个模式那样)。

其中,引导词是最值得落定的片段。它是承重的:在发散阶段命对了一个词,它之后会塑造结构、过渡和标题,在整个收敛阶段持续带来回报。当对话反复绕回同一个想法时,推动为它造一个词。

小说家的日记就是范本:多年不成体系的随手记录,后来被开采为素材。片段就是随手记录。

文件格式

# 暂定标题

第一个片段放在这里。

它可以是多个段落。它可以包含列表、代码、引文:片段自然
是什么形态就是什么形态。

---

第二个片段。

---

> 一行用户想保留的引文。

对它的反应。

---

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

片段之间用水平分隔线(\n---\n)隔开。正文里没有标题。没有标签。除了添加顺序之外没有别的顺序。

写作节奏

静默追加。不要为每个片段征求许可。顺口提一句你加了什么(“这个加进去了”),但不要用保存对话框打断对话。

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

用户可以随时说“删掉最后一条”“把那条改得更锋利”“把那两条合并”。把这些话当作一等指令。

</supporting-info>

04 同仓库更多 Skills

luestr
luestr/skills

write-ublock-origin-filters

完整的 uBlock Origin (uBO) 静态过滤语法参考。编写 uBlock Origin 自定义过滤规则时使用此技能,涵盖广告拦截、隐私保护或内容过滤。包含基础网络过滤模式(||、*、^、|)、所有网络过滤选项($domain、$third-party、$important、$redirect、$removeparam、$csp、$replace、$header、$method、$denyallow、$badfilter、$all 等)、内容类型选项($script、$image、$stylesheet、$font、$media、$xhr、$popup、$document、$frame 等)、元素隐藏规则(## 选择器、实体匹配、主机名正则)、过程式元素隐藏过滤器(:has、:has-text、:matches-css、:upward、:xpath、:matches-path、:watch-attr 等)、动作操作符(:remove、:style、:remove-attr、:remove-class)、HTML 过滤器(##^)、响应头过滤(##^responseheader)、脚本注入(##+js())以及预处理指令(!#include、!#if)。当用户提到 uBlock Origin 过滤规则、uBO 语法、广告拦截规则、元素隐藏规则、过程式选择器、脚本注入或希望编写/调试任何 uBO 兼容过滤列表时触发。即使用户只是在编写或调试 uBlock Origin 过滤规则、创建自定义过滤列表或从 AdBlock Plus/AdGuard 迁移过滤规则到 uBO,也应使用此技能。

★ 94
luestr
luestr/skills

write-ublock-origin-filters

Complete uBlock Origin (uBO) static filter reference. Use this skill when writing or debugging uBO custom filters or filter lists for ad blocking, privacy or content filtering, or when migrating filters from AdBlock Plus/AdGuard. Covers network patterns (||, *, ^, |) and options ($domain, $third-party, $important, $redirect, $removeparam, $csp, $replace, $header, $method, $badfilter, $all), content-type options ($script, $image, $stylesheet, $font, $media, $xhr, $popup, $document, $frame), cosmetic filters (##, CSS selectors, entity matching), procedural filters (:has, :has-text, :matches-css, :upward, :xpath, :matches-path, :watch-attr), action operators (:remove, :style, :remove-attr), HTML filters (##^), response-header filtering (##^responseheader), scriptlet injection (##+js()), and pre-parsing directives (!#include, !#if). Trigger whenever the user mentions uBO syntax, ad blocking rules, element hiding, procedural selectors, scriptlet injection, or a uBO-compatible filter list.

★ 94
luestr
luestr/skills

write-tampermonkey-scripts

引导 AI 代理规划、编写、调试、测试和维护 Tampermonkey 用户脚本。当用户请求用户脚本、浏览器页面自动化、DOM 增强、Tampermonkey 元数据、GM_* API、@match、@grant、@run-at、@connect、跨源请求、SPA 页面集成或脚本注入任务时使用此技能,即使用户没有明确提及 Tampermonkey。

★ 94
luestr
luestr/skills

write-tampermonkey-scripts

Guide an AI agent through planning, writing, debugging, testing, and maintaining Tampermonkey userscripts. Use this skill whenever a user asks for a userscript, browser-page automation, DOM enhancement, Tampermonkey metadata, GM_* API, @match, @grant, @run-at, @connect, cross-origin request, SPA page integration, or script injection task, even when Tampermonkey is not named explicitly.

★ 94
luestr
luestr/skills

write-adguard-filters

编写 AdGuard 自定义过滤规则时使用此技能。涵盖基本规则语法、所有修饰符($domain/$third-party/$important/$redirect/$replace/$removeparam/$cookie/$csp 等)、外观规则(元素隐藏/CSS/Extended CSS 选择器)、HTML 过滤、JavaScript/脚本片段规则、非基本规则修饰符、预处理器指令和调试技巧。当用户提及 AdGuard 过滤规则、广告拦截规则语法、过滤器列表编写、ABP 语法兼容、元素隐藏规则、Extended CSS 选择器(:has/:contains/:matches-css 等)时触发。即使用户只是在编写或调试任何类型的广告过滤规则,也应使用此技能。

★ 94
luestr
luestr/skills

write-adguard-filters

Complete AdGuard filtering rules syntax reference. Use this skill when writing AdGuard custom filters. Covers basic rule syntax, all modifiers ($domain/$third-party/$important/$redirect/$replace/$removeparam/$cookie/$csp etc.), cosmetic rules (element hiding/CSS/Extended CSS selectors), HTML filtering, JavaScript/scriptlet rules, non-basic rule modifiers, preprocessor directives, and debugging. Trigger when user mentions AdGuard filtering rules, ad blocking rule syntax, filter list authoring, ABP syntax compatibility, element hiding rules, Extended CSS selectors (:has/:contains/:matches-css etc.). Use this skill even when the user is just writing or debugging any type of ad filtering rules.

★ 94