Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计通过

documentation-authoring文档创作

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

235

周安装

10

GitHub Stars

3

下载量

82
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:documentation-authoring(文档创作)
来源仓库:https://github.com/practicalswan/agent-skills
仓库路径:skills/documentation-authoring
安装命令:
npx skills add https://github.com/practicalswan/agent-skills --skill documentation-authoring
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/practicalswan/agent-skills --skill documentation-authoring

简介

提供结构化高质量文档创作的全流程指导。

  • 覆盖 PRD、设计文档与实施计划等类型。
  • 内置多语言写作规范与风格检查机制。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 根据用户请求动态匹配最合适的写作路径。
  • documentation-authoring 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Documentation Authoring Master

Expert guidance for creating structured, high-quality documentation across all types of technical and business documents.

Skill Paths

  • Workspace skills: .github/skills/
  • Global skills: C:/Users/LOQ/.codex/skills/ for Codex or C:/Users/LOQ/.agents/skills/ for the shared mirror

Activation Conditions

Trigger Conditions:

  • User mentions writing documentation: "write a doc", "draft a proposal", "create a spec", "write up"
  • User mentions specific doc types: "PRD", "design doc", "decision doc", "RFC"
  • User asks to "create an implementation plan", "document requirements", "plan a feature"
  • Creating technical specifications or business requirements
  • Starting a new product or feature development cycle
  • Translating vague ideas into concrete technical specifications
  • Stakeholders need unified "source of truth" for project scope

Part 2: Context Gathering

Initial Questions

Start by asking for meta-context about the document:

  1. What type of document is this?

- Technical spec, decision doc, proposal, RFC, PRD, knowledge base

  1. Who's the primary audience?

- Developers, executives, stakeholders, end-users? Understanding affects tone and depth

  1. What's the desired impact when someone reads this?

- Make a decision, implement a feature, understand a concept?

  1. Is there a template or specific format to follow?

- Company templates, industry standards, regulatory requirements

  1. Any other constraints or context to know?

- Deadlines, sensitive information, existing related documents

Inform them they can answer in shorthand or dump information however works best for them.

Template Handling

If user provides a template:

  • Analyze structure and requirements
  • Adapt co-authoring workflow to template format
  • Ensure all required sections are covered

If user mentions editing an existing document:

  • Fetch the existing document
  • Understand current state and gaps
  • Plan revisions strategically

Part 3: Refinement & Structure

Collaborative Building

Process:

  1. Brainstorm each section together - let ideas flow without judgment
  2. Organize and refine - structure ideas into coherent sections
  3. Edit for clarity - improve readability and flow
  4. Add professional polish - formatting, consistency, tone

Guiding Principles:

  • Active voice: Use direct, clear language
  • Show, don't just tell: Use examples and scenarios
  • Progressive disclosure: Start with overview, then dive deeper
  • Visual aids: Include diagrams, tables, and examples where helpful

Section-by-Section Approach

Work through document methodically:

## Recommended Section Structure

### 1. Executive Summary (for decision-makers)
- What is this about?
- Why does it matter?
- What are we recommending/deciding?

### 2. Background & Context (for implementers)
- What led us here?
- What problem are we solving?
- What constraints exist?

### 3. Requirements/Objectives
- What must we achieve?
- What are success criteria?
- What are non-goals?

### 4. Proposed Solution/Design
- What are we proposing?
- How does it work?
- What are alternatives considered?

### 5. Implementation Plan
- How do we build this?
- What are the steps?
- Who needs to do what?

### 6. Risks & Considerations
- What could go wrong?
- How do we mitigate?
- What decisions are still needed?

Part 4: Reader Testing

The Fresh Eye Test

Before finalizing, put yourself in the reader's shoes:

Test Questions:

  1. Can I understand the goal without knowing context?
  2. Are technical terms explained or linked?
  3. Is there a logical flow from problem to solution?
  4. Would a skeptical reader be convinced?
  5. Is action clear - what should I do next?

Blind Spot Detection

Common issues to catch:

  • Context assumptions: "We already discussed this" but wasn't documented
  • Missing alternatives: Only one option presented (shows lack of thoroughness)
  • Unanswered questions: Reader left with "what about X?"
  • Unclear responsibilities: Who needs to do what is vague
  • Missing examples: Abstract concepts without concrete illustration

Part 5: Product Requirements Document (PRD)

PRD Structure

When users specifically request PRDs or feature planning, use this structure:

# [Feature/Product Name] - PRD

## Executive Summary
**Goal**: [What problem are we solving?]
**Impact**: [Why does this matter now?]
**Success Metrics**: [How will we know it worked?]

## Background
**Current State**: [What's the situation today?]
**Problem Statement**: [What pain points exist?]
**Constraints**: [Budget, timeline, tech stack limitations?]

## Requirements

### Functional Requirements
- User stories with acceptance criteria
- Core features and capabilities
- Integration requirements

### Non-Functional Requirements
- Performance requirements
- Security requirements
- Compliance and regulatory needs

### User Stories

As a [persona], I want to [action], So that [benefit].

**Acceptance Criteria**:
- [ ] [Specific, measurable criterion]
- [ ] [Another criterion]

Proposed Solution

Architecture Overview

[High-level system architecture or approach]

Technical Specifications

[API contracts, data models, interfaces]

UI/UX Requirements

[Wireframes or flow descriptions if applicable]

Implementation Plan

Phases

PhaseTasksOwnersTimeline
Phase 1
Phase 2

Dependencies

  • External APIs or services
  • Other teams or systems
  • Third-party libraries

Risk Analysis

RiskImpactProbabilityMitigation
[Risk]High/Med/LowHigh/Med/Low[Mitigation]

Alternatives Considered

OptionProsConsWhy Not Chosen
Alt 1

Success Criteria

Quantitative

  • [Measurable metric: e.g., "reduce load time by 50%"]
  • [Another metric]

Qualitative

  • [User feedback threshold]
  • [Stakeholder alignment]

Open Questions

  • [Decision still needed]
  • [Information to gather]
### PRD Creation Workflow

**Phase 1: Discovery (The Interview)**
Before writing a single line, you **MUST** interrogate user to fill knowledge gaps. Do not assume context.

**Ask about:**
- **The Core Problem**: Why are we building this now?
- **Success Metrics**: How do we know it worked?
- **Constraints**: Budget, tech stack, or deadline?
- **Stakeholders**: Who needs to approve? Who will use?

**Phase 2: Analysis & Scoping**
Synthesize user input. Identify dependencies and hidden complexities.
- **Map out User Flow**
- **Define Non-Goals** to protect timeline

**Phase 3: Technical Drafting**
Generate document using strict structure above.

---

## Part 6: Common Document Types

### Implementation Plans

**Purpose**: Guide building process with clear phases, responsibilities, and timeline.

**Structure:**
- **Overview**: What are we building and why?
- **Phases**: Break into logical chunks with dependencies
- **Tasks**: Trackable, specific implementation items
- **Timeline**: Realistic dates with buffers
- **Dependencies**: What must happen before what?

### Design Docs

**Purpose**: Document technical decisions and architecture.

**Structure:**
- **Problem Statement**: What problem are we solving?
- **Alternatives**: What did we consider?
- **Decision**: What did we choose and why?
- **Implications**: What does this mean for the system?
- **Risks**: What could go wrong?

### Decision Records

**Purpose**: Capture important decisions for future reference.

**Template:**

Decision - [DATE]

Decision: [What was decided] Context: [Situation and driving data] Options: [Alternatives with pros/cons] Rationale: [Why selected option is superior] Impact: [Anticipated consequences] Review: [Reassessment conditions/trigger]


### Knowledge Base Articles

**Purpose**: Reusable reference material, not project-specific docs.

**Structure:**

- **Quick Reference**: TL;DR summary at top
- **Problem**: What question does this answer?
- **Solution**: How do you solve it?
- **Examples**: Concrete, runnable examples
- **Common Pitfalls**: What mistakes do people make?
- **Related Topics**: Links to related info

---

## Part 7: Best Practices

### For All Documentation

✅ **DO**:

- Use active voice and clear language
- Structure information progressively (simple to complex)
- Include examples and concrete scenarios
- Define terms before using them
- Add diagrams for complex systems
- Maintain consistent formatting and style

❌ **DON'T**:

- Write without clear audience in mind
- Mix jargon without explanation
- Skip alternatives or trade-offs analysis
- Assume readers have context they don't
- Create long paragraphs without breaks

### For Technical Docs

- Include code snippets that actually run
- Link to external references for deeper dives
- Use standard terminology when possible
- Version specific code/commands (e.g., "for node v16+")

### For Business/Stakeholder Docs

- Start with executive summary
- Use business impact metrics
- Hide unnecessary technical detail
- Include clear next steps or approvals needed
- Highlight risks and mitigations prominently

---

## Part 8: Action Documentation Format

Use this format for tracking implementation work and decisions:

### [TYPE] - [ACTION] - [TIMESTAMP]

**Objective**: [Goal being accomplished]

**Context**: [Current state, requirements, reference to prior steps]

**Decision**: [Approach chosen and rationale]

**Execution**: [Steps taken with parameters and commands]

**Output**: [Complete results, logs, metrics]

**Validation**: [Success verification and results]

**Next**: [Continuation plan to next action]

---

## Part 9: Summary Formats

### Streamlined Action Log (for changelogs)

`[TYPE][TIMESTAMP] Goal: [X] → Action: [Y] → Result: [Z] → Next: [W]`

### Quick Summary (for updates)

**What**: [Brief description] **Why**: [Context/rationale] **How**: [Approach taken] **Status**: [Current state] **Next**: [Upcoming step]

---

## Documentation Quality Checklist

### Completeness

- All required sections filled
- Context and background provided
- Alternatives considered where applicable
- Examples and diagrams included where helpful

### Clarity

- Language is clear and direct
- Technical terms defined or linked
- Flowlogical and easy to follow
- Active voice used consistently

### Accuracy

- Technical details are correct
- Links work and are up-to-date
- Code examples actually run
- No contradictory information

### Accessibility

- Multiple levels of detail for different readers
- Executive summary for decision-makers
- Deep-dive sections for implementers
- Visual aids for complex concepts

---

## References & Resources

### Documentation

- [Document Templates](https://github.com/practicalswan/agent-skills/blob/HEAD/documentation-authoring/./references/document-templates.md) — Templates for PRD, RFC, ADR, Tech Spec, Design Doc, Runbook, Postmortem, KB Article
- [Writing Style Guide](https://github.com/practicalswan/agent-skills/blob/HEAD/documentation-authoring/./references/writing-style-guide.md) — Technical writing best practices, formatting conventions, and readability

### Scripts

- [Doc Structure Validator](https://github.com/practicalswan/agent-skills/blob/HEAD/documentation-authoring/./scripts/doc-structure-validator.py) — Python script to validate markdown document quality

### Examples

- [PRD Example](https://github.com/practicalswan/agent-skills/blob/HEAD/documentation-authoring/./examples/prd-example.md) — Complete PRD for Recipe Search Enhancement in Kitchen Odyssey

---

## Cross-Client Portability

This skill is written to stay usable across GitHub Copilot, Claude Code, Codex, and Gemini CLI.

- GitHub Copilot: keep the folder in a Copilot-visible skill or plugin path, or wrap the workflow as project instructions if the host does not support portable skill folders directly.
- Claude Code: keep the folder in a local skills directory or a compatible plugin or marketplace source.
- Codex: install or sync the folder into `$CODEX_HOME/skills/<skill-name>` and restart Codex after major changes.
- Gemini CLI: this repository generates a project command named `/skills:documentation-authoring` from this skill. Rebuild commands with `python scripts/export-gemini-skill.py documentation-authoring` and then run `/commands reload` inside Gemini CLI.

## MCP Availability And Fallback

No dedicated MCP server is required for the normal workflow in this skill.

- If the current host lacks an equivalent tool surface, use the bundled scripts, standard shell or editor tooling, and the manual workflow already described in this skill.
- Treat local verification as the fallback evidence path before closing the task.

## Related Skills

| Skill | Relationship |
| --- | --- |
| [documentation-patterns](https://github.com/practicalswan/agent-skills/blob/HEAD/documentation-authoring/../documentation-patterns/SKILL.md) | Apply templates when structuring new docs |
| [documentation-quality](https://github.com/practicalswan/agent-skills/blob/HEAD/documentation-authoring/../documentation-quality/SKILL.md) | Enforce quality standards on authored docs |
| [documentation-verification](https://github.com/practicalswan/agent-skills/blob/HEAD/documentation-authoring/../documentation-verification/SKILL.md) | Validate docs before publishing or merging |
| [notion-docs](https://github.com/practicalswan/agent-skills/blob/HEAD/documentation-authoring/../notion-docs/SKILL.md) | Publish authored docs to Notion workspaces |

---

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

39.22%
按下载量换算32

Claude

32.22%
按下载量换算26

Cursor

17.08%
按下载量换算14

Gemini CLI

8.73%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills