Community编程与开发github.com

文档协同撰写

引导用户通过结构化流程协同撰写文档。当用户需要编写文档、提案、技术规格、决策文档或类似结构化内容时使用。

文档协同撰写 是什么?

该技能定义了一个完整的协作文档创作工作流,专为AI编程助手(如Claude Code、Cursor、Codex等)与人类用户协同编写结构化文档而设计。工作流分为三个阶段:上下文收集(缩小知识差距)、精炼与结构(逐节构建)、读者测试(验证文档的可读性)。它支持多种集成(Slack、Teams、Google Drive、SharePoint等)以拉取上下文,并能在Claude Code等支持子代理的平台自动执行测试,或在Claude.ai等Web界面中指导用户手动测试。该技能的主要价值在于:确保文档在他人阅读或粘贴到Claude中时能清晰传达信息,避免因作者盲点导致读者困惑。工作流要求AI主动提问、提供5-20个选项供筛选、进行差距检查,并通过批量编辑优化内容,最后用无上下文的“新鲜Claude”实例测试文档,确保其独立可读。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/anthropics/skills/tree/main/skills/doc-coauthoring

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

文档协同撰写工作流

该技能提供结构化工作流,引导用户完成协作文档创作。作为主动引导者,带领用户经历三个阶段:上下文收集、精炼与结构、读者测试。

何时提供此工作流

触发条件:

  • 用户提到编写文档:“写文档”、“起草提案”、“创建规范”、“记录下来”
  • 用户提到特定文档类型:“PRD”、“设计文档”、“决策文档”、“RFC”
  • 用户似乎要开始一项重要的写作任务

初始提议: 向用户提供一个结构化的协同撰写工作流。解释三个阶段的含义:

  1. 上下文收集:用户提供所有相关上下文,同时Claude提出澄清性问题
  2. 精炼与结构:通过头脑风暴和编辑迭代构建每个章节
  3. 读者测试:用全新的Claude(无上下文)测试文档,在他人阅读之前发现盲点

解释这种方法有助于确保文档在他人阅读时(包括当他们将文档粘贴到Claude中时)效果良好。询问用户是否愿意尝试此工作流,或者更喜欢自由创作。

如果用户拒绝,则自由创作。如果用户接受,则进入第一阶段。

第一阶段:上下文收集

目标: 缩小用户所知和Claude所知之间的差距,以便后续提供智能引导。

初始问题

首先询问用户关于文档的元上下文:

  1. 这是哪种类型的文档?(例如:技术规范、决策文档、提案)
  2. 主要受众是谁?
  3. 读者阅读后希望产生什么影响?
  4. 是否有模板或特定格式需要遵循?
  5. 还有其他约束或上下文需要了解吗?

告知用户可以采用简写或任何他们最方便的方式提供信息。

如果用户提供了模板或提到了文档类型:

  • 询问是否有模板文档可以分享
  • 如果提供了共享文档的链接,使用适当的集成获取它
  • 如果提供了文件,读取它

如果用户提到要编辑现有的共享文档:

  • 使用适当的集成读取当前状态
  • 检查是否有缺少alt文本的图片
  • 如果存在没有alt文本的图片,解释当其他人使用Claude理解文档时,Claude将无法看到它们。询问是否需要生成alt文本。如果需要,请他们逐张粘贴图片到聊天中以生成描述性alt文本。

信息倾倒

一旦回答了初始问题,鼓励用户倾倒所有上下文。请求以下信息:

  • 项目/问题的背景
  • 相关的团队讨论或共享文档
  • 为什么没有采用其他解决方案
  • 组织上下文(团队动态、过往事件、政治因素)
  • 时间压力或约束
  • 技术架构或依赖关系
  • 利益相关者关注点

建议他们不必担心组织——全部倾倒出来即可。提供多种提供上下文的方式:

  • 意识流式信息倾倒
  • 指向团队频道或讨论串以供阅读
  • 链接到共享文档

如果集成可用(例如:Slack、Teams、Google Drive、SharePoint或其他MCP服务器),提及可以使用这些工具直接拉取上下文。

如果未检测到集成,且在claude.ai或Claude应用中: 建议他们可以在Claude设置中启用连接器,以便直接从消息应用和文档存储中拉取上下文。

告知用户一旦完成初始倾倒,将提出澄清性问题。

在上下文收集期间:

  • 如果用户提到团队频道或共享文档:

    • 如果集成可用:告知将读取内容,然后使用适当的集成
    • 如果集成不可用:解释无法访问。建议他们在Claude设置中启用连接器,或直接粘贴相关内容。
  • 如果用户提到未知的实体/项目:

    • 询问是否应搜索已连接的工具以了解更多
    • 在用户确认之前不要搜索
  • 当用户提供上下文时,记录正在学习的内容和仍不清楚的内容

提出澄清性问题:

当用户表示已完成初始倾倒后(或在提供了大量上下文之后),提出澄清性问题以确保理解:

基于上下文中的空白生成5-10个编号问题。

告知用户可以使用简写回答(例如:“1: 是, 2: 参见#频道, 3: 不因为向后兼容”),链接到更多文档,指向频道以供阅读,或者继续信息倾倒。选择对他们最有效的方式。

退出条件: 当问题显示出理解——能够询问边缘情况和权衡而无需解释基础概念时,说明已收集到足够的上下文。

过渡: 询问用户是否还有更多上下文需要提供,或者是否可以开始起草文档。

如果用户想添加更多,让他们添加。准备就绪后,进入第二阶段。

第二阶段:精炼与结构

目标: 通过头脑风暴、筛选和迭代精炼逐节构建文档。

向用户说明: 解释文档将逐节构建。对于每个部分:

  1. 提出澄清性问题以确定要包含什么
  2. 头脑风暴出5-20个选项
  3. 用户指出保留/删除/合并哪些
  4. 起草该部分
  5. 通过精准编辑进行精炼

从未知最多的部分开始(通常是核心决策/提案),然后处理其余部分。

章节顺序:

如果文档结构清晰: 询问用户想从哪个部分开始。

建议从未知最多的部分开始。对于决策文档,通常是核心提案。对于规范文档,通常是技术方法。总结部分最好最后做。

如果用户不知道需要哪些章节: 根据文档类型和模板,建议适用于该文档类型的3-5个章节。

询问该结构是否可行,或者是否需要调整。

一旦结构确定:

创建包含所有章节占位文本的初始文档结构。

如果可以使用Artifacts(工件): 使用create_file创建一个工件。这为Claude和用户都提供了可用的脚手架。

告知用户将创建包含所有章节占位符的初始结构。

创建包含所有章节标题和简要占位文本(例如“[待编写]”或“[内容在此]”)的工件。

提供脚手架链接,并表示是时候填充每个部分了。

如果不能使用Artifacts: 在工作目录中创建一个markdown文件。适当命名(例如:决策文档.md、技术规范.md)。

告知用户将创建包含所有章节占位符的初始结构。

创建包含所有章节标题和占位文本的文件。

确认文件已创建,并表示是时候填充每个部分了。

对于每个部分:

第一步:澄清性问题

宣布将开始处理[章节名称]部分。提出5-10个关于应包含内容的澄清性问题:

根据上下文和章节目的生成5-10个具体问题。

告知用户可以使用简写回答,或者直接指出哪些内容需要覆盖。

第二步:头脑风暴

对于[章节名称]部分,根据章节复杂度头脑风暴可能包含的5-20个要点。寻找:

  • 可能被遗忘的已共享上下文
  • 尚未提及的角度或考量

根据章节复杂度生成5-20个编号选项。最后,询问是否需要更多选项以进行额外头脑风暴。

第三步:筛选

询问哪些要点应该保留、删除或合并。要求提供简要理由,以便为后续章节学习优先级。

提供示例:

  • “保留 1,4,7,9”
  • “删除 3(重复1)”
  • “删除 6(受众已知)”
  • “合并 11 和 12”

如果用户给出自由格式反馈(例如:“看起来不错”或“大部分还行,但是...”)而不是编号选择,提取他们的偏好并继续。解析他们想要保留/删除/更改的内容并应用。

第四步:差距检查

根据他们选择的内容,询问[章节名称]部分是否遗漏了任何重要内容。

第五步:起草

使用str_replace将此部分的占位文本替换为实际起草的内容。

宣布将根据用户选择的内容起草[章节名称]部分。

如果使用Artifacts: 起草后,提供工件的链接。

要求用户通读并指出需要更改的内容。注意:具体说明有助于为后续章节学习。

如果使用文件(无Artifacts): 起草后,确认完成。

告知用户[章节名称]部分已在[文件名]中起草。要求他们通读并指出需要更改的内容。注意:具体说明有助于为后续章节学习。

给用户的关键说明(在起草第一个部分时包含): 提供一条提示:不要直接编辑文档,而是请他们指出要更改的内容。这有助于学习他们对于未来章节的风格。例如:“删除X要点——已被Y覆盖”或“使第三段更简洁”。

第六步:迭代精炼

当用户提供反馈时:

  • 使用str_replace进行编辑(切勿重印整个文档)
  • 如果使用Artifacts: 每次编辑后提供工件链接
  • 如果使用文件: 仅确认编辑完成
  • 如果用户直接编辑文档并要求阅读:在心里记下他们所做的更改,并在未来章节中牢记(这显示了他们的偏好)

继续迭代直到用户对该部分满意。

质量检查

连续3次迭代没有实质性更改后,询问是否可以删除某些内容而不丢失重要信息。

当部分完成后,确认[章节名称]已完成。询问是否准备好进入下一个部分。

重复对所有部分执行上述步骤。

接近完成

当接近完成(80%+的部分已完成)时,宣布将通读整个文档并检查:

  • 各章节之间的流畅性和一致性
  • 冗余或矛盾
  • 任何感觉像“废料”或通用填充的内容
  • 是否每个句子都有分量

阅读整个文档并提供反馈。

当所有部分都起草并精炼完成时: 宣布所有部分已起草完毕。表示将再审查一次完整文档。

检查整体连贯性、流畅性、完整性。

提供任何最终建议。

询问是否准备好进入读者测试,或者是否还有其他内容需要精炼。

第三阶段:读者测试

目标: 使用全新的Claude(无上下文泄露)测试文档,验证它对读者是否有效。

向用户说明: 解释现在将进行测试,以检查文档是否对读者有效。这可以发现盲点——对作者有意义但可能使他人困惑的内容。

测试方法

如果可以使用子代理(例如在Claude Code中):

直接执行测试,无需用户参与。

第一步:预测读者问题

宣布将预测读者在试图查找此文档时可能提出的问题。

生成5-10个读者实际会提出的问题。

第二步:使用子代理测试

宣布将使用全新的Claude实例(无本对话上下文)测试这些问题。

对于每个问题,使用仅包含文档内容和问题的子代理。

总结Reader Claude针对每个问题的回答正确/错误情况。

第三步:运行额外检查

宣布将执行额外检查。

调用子代理检查歧义、错误假设、矛盾。

总结发现的任何问题。

第四步:报告并修复

如果发现问题: 报告Reader Claude在特定问题上存在困难。

列出具体问题。

表示将修复这些差距。

对存在问题的部分回到精炼阶段。


如果无法使用子代理(例如claude.ai网页界面):

用户需要手动进行测试。

第一步:预测读者问题

询问人们在试图查找此文档时可能会问什么问题。他们会向Claude.ai输入什么?

生成5-10个读者实际会提出的问题。

第二步:设置测试

提供测试说明:

  1. 打开一个新的Claude对话:https://claude.ai
  2. 粘贴或分享文档内容(如果使用启用了连接器的共享文档平台,则提供链接)
  3. 向Reader Claude询问生成的问题

对于每个问题,指示Reader Claude提供:

  • 答案
  • 是否有任何内容含糊不清或不明确
  • 文档假设读者已经知道哪些知识/上下文

检查Reader Claude是否给出正确答案或误解了什么。

第三步:额外检查

同时向Reader Claude提问:

  • “这篇文档中哪些内容可能对读者含糊不清或不明确?”
  • “这篇文档假设读者已经具备哪些知识或上下文?”
  • “是否存在任何内在矛盾或不一致之处?”

第四步:根据结果迭代

询问Reader Claude回答错误或困难的问题。表示将修复这些差距。

对任何存在问题的部分回到精炼阶段。


退出条件(两种方法通用)

当Reader Claude持续正确回答问题,并且没有发现新的差距或歧义时,文档即可发布。

最终审查

当读者测试通过时: 宣布文档已通过Reader Claude测试。在完成之前:

  1. 建议用户自己进行最终通读——他们拥有此文档并对其质量负责
  2. 建议仔细检查任何事实、链接或技术细节
  3. 要求他们确认文档达到了他们想要的效果

询问

Individual skills in this repo

This repo contains 19 individual skills — each has its own dedicated page.

academy-guide

Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content.

algorithmic-art

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists

anthropics/template-skill

Replace with description of the skill and when Claude should use it.

brand-guidelines

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

canvas-design

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists

claude-api

|-

discernment-nudge

After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals, or emails, estimates or projections, analysis or interpretation of data, factual claims they may rely on, or a multi-step argument — invoke this skill BEFORE finalizing your reply and then, if it applies, append 2-3 short follow-up questions, each tied to something specific in what you just produced, that help the user check key facts, probe the reasoning or assumptions, and notice missing context. Do this at most once per conversation. Skip it when the user asked a trivial how-to or simple lookup, wants a purely educational explanation, asked you only to format, convert, or assemble a file from content they provided, is writing code they will run, is doing creative writing or casual chat, or already asked you to double-check, cite, or review — the skill file explains these boundaries and the exact output format.

docx

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.

frontend-design

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

internal-comms

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

mcp-builder

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

pdf

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.

pptx

Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.

skill-creator

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill

slack-gif-creator

Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like

theme-factory

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

web-artifacts-builder

Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

xlsx

Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.

相关技能