Token导航 LogoToken导航TokenDH.com
开发external-serviceclawhub未标认证来源可访问clear审计提醒

diataxis-writing连贯写作

Agent Skill

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

总安装

15,967

周安装

672

GitHub Stars

公开资料未说明

下载量

5,591
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:diataxis-writing(连贯写作)
来源仓库:https://github.com/amumulam/diataxis-writing
安装命令:
openclaw skills install diataxis-writing
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

ClawHubOpenClaw
openclaw skills install diataxis-writing

简介

基于 Diataxis 框架优化文档结构与写作质量,提升可读性与实用性。

  • 适用于教程编写、API 文档整理或项目说明文的内容重构任务。
  • 自动分类内容类型(教程/参考/概念/原因),匹配对应模板与检查清单。
  • 保留原始事实与命令路径,避免虚构信息或夸大功能描述。
  • 输出 Markdown 格式,兼容主流静态站点生成器与版本控制系统。

SKILL.md

name
diataxis-writing
description
Diataxis documentation framework practice guide. Provides diagnosis, classification, templates, and quality assessment for four documentation types (Tutorial/How-to/Reference/Explanation).

Diátaxis Documentation Framework Practice

Quick Start

When creating or refactoring documentation:

Pre-Writing Questions (Must Ask)

Before starting, ask the user:

  1. Language Preference: "What language should this document be written in?"

- English / 中文 / Other

  1. Output Method: "After completion, how would you like to output this document?"

- Chat message (default) - Feishu document (via MCP/mcporter) - Local Markdown file - GitHub repository - Other platforms

Tool Availability Check (After User Selection)

After user selects output method, automatically check tool availability:

# Run auto-detection (script is in ./scripts/ relative to this skill)
python3 scripts/output-handler.py --detect

Check results:

  • ✅ Tool available → Proceed with selected output method
  • ⚠️ Tool not available → Inform user and suggest alternatives

For Feishu output via MCP:

  • Check if mcporter is installed
  • Check if MCP feishu server is configured (typically in /root/config/mcporter.json or ~/.mcporter/mcporter.json)
  • Test connection to Feishu MCP server

If tool not available:

  1. Inform user: "Selected output method [X] is not available"
  2. Suggest alternatives: "Available options: [list]"
  3. Ask user to confirm alternative or configure tool

Writing Workflow

After confirming language, output preference, and tool availability:

  1. Identify User Needs - Use the Diataxis Compass to determine document type
  2. Select Template - Choose the corresponding template from templates/
  3. Apply Checklist - Use the corresponding checklist during writing
  4. Quality Assessment - Use the quality framework to evaluate the final draft
  5. Execute Output - Output using the user's chosen method and language

Four Documentation Types

Diataxis identifies four fundamentally different documentation types, corresponding to four user needs:

TypeUser NeedDocument PurposeKey Characteristics
TutorialAcquire skills (study)Provide learning experiencePractice-oriented, minimize explanation, concrete steps
How-to GuideApply skills (work)Help complete tasksGoal-oriented, assume competence, handle real scenarios
ReferenceApply skills (work)Describe technical factsNeutral description, accurate and complete, structured
ExplanationAcquire skills (study)Provide understanding contextDiscursive, allows opinions, provides context

Type Details

Using the Diataxis Compass

When unsure about document type, use the compass tool: references/compass.md

Ask two questions:

  1. Content Type: Is it action guidance (action) or cognitive knowledge (cognition)?
  2. User State: Is the user acquiring skills (acquisition/study) or applying skills (application/work)?

Common Use Cases

Use Case 1: Troubleshooting Records → How-to Guide or Explanation

Troubleshooting records typically belong to:

  • How-to Guide: If it's step-by-step guidance on "how to solve X problem"
  • Explanation: If it's principle analysis on "why X problem occurred"

Template: templates/template-troubleshooting.md

Use Case 2: Experience Summary → How-to Guide or Explanation

  • Best Practices: How-to Guide (guidance on how to do things correctly)
  • Lessons Learned: Explanation (explaining why certain approaches are wrong)

Template: templates/template-best-practices.md

Use Case 3: Learning Notes → Tutorial or Explanation

  • Learning Notes: Tutorial (if containing practical steps)
  • Theory Summary: Explanation (if conceptual understanding)

Template: templates/template-learning-notes.md

Use Case 4: Exploratory Sharing → Explanation

Technical exploration, experiment records, and comparative analysis typically belong to Explanation.

Template: templates/template-exploration.md

Checklists

Use checklists during and after writing:

Quality Assessment

Use the Functional Quality and Deep Quality framework: references/quality-framework.md

Functional Quality

  • Accuracy, completeness, consistency, usability, precision

Deep Quality

  • Flow, fitting human needs, beauty, anticipating user needs

Common Mistakes

Avoid the following error patterns: references/common-mistakes.md

  1. Type Conflation - Mixing Reference content into Tutorial
  2. Misplacement - Writing Explanation as Tutorial
  3. Boundary Blur - Mixing too much explanation into How-to
  4. Structural Misalignment - Reference not reflecting product architecture

Language Style

Four types use different language styles: references/writing-language.md

  • Tutorial: "We will...", "Notice...", "Now do X..."
  • How-to: "If you want X, do Y", "Refer to X documentation for complete options"
  • Reference: "X inherits Y", "Subcommands: a, b, c", "Must use X"
  • Explanation: "The reason for X is...", "W is better than Z because..."

Output Methods

After completing the document, output using the user's chosen method:

Available Output Methods

  1. Chat Message - Display directly in conversation (default)
  2. Feishu Document - Create/update Feishu document via MCP/mcporter (requires MCP feishu server)
  3. Local Markdown - Save as .md file (built-in support)
  4. GitHub Repo - Commit to code repository (requires MCP github or git)
  5. Other Platforms - User provides platform and MCP capabilities

Important: For Feishu output, always use MCP/mcporter method, NOT channel tools.

Detect Available Tools

Use scripts/output-handler.py to auto-detect (script is in ./scripts/ relative to this skill file):

python3 scripts/output-handler.py --detect

Tool Availability Check

After user selects output method, check if tool is available:

  1. Run output-handler.py --detect
  2. Check if selected tool is configured and available
  3. If not available:

- Inform user: "Selected output method [X] is not available" - Suggest alternatives from available tools list - Ask user to confirm alternative

Choose Output Method

Must ask user: "Document completed, how would you like to output?"

Based on user selection:

  • Chat → Reply directly
  • Feishu (MCP) → Use mcporter to call Feishu MCP server
  node /path/to/mcporter/dist/cli.js call feishu doc.create '{"title":"...", "content":"..."}'
  # Note: mcporter path varies by installation, common paths:
  # - ~/.npm/_npx/*/node_modules/mcporter/dist/cli.js
  # - Or use: npx mcporter call feishu doc.create ...
  • Local → Call write tool or output-handler.py --output local
  • GitHub → Call output-handler.py --output github
  • Other → Ask user to provide MCP server information

Language Considerations

Output in the user's chosen language:

  • If English → Output in English
  • If Chinese (中文) → Output in Chinese
  • If other → Confirm translation capabilities

Output Platform Details

Complete platform list and configuration methods: references/output-platforms.md

PlatformRequired ToolsConfiguration DifficultyUse Case
ChatNone-Quick reply
Feishu (MCP)MCP feishu serverMediumTeam collaboration
Local MDwriteLowPersonal knowledge
GitHubMCP github/gitMediumTech blog
NotionMCP notionMediumKnowledge base
Google DocsMCP googleHighGoogle ecosystem

Theoretical Framework

Complete Diataxis theory:

Using Scripts (Optional)

Use the diagnosis script to automatically identify document types (script is in ./scripts/ relative to this skill):

python3 scripts/diagnose.py <document content or file path>

Skill Version: 1.0 Theory Source: https://diataxis.fr Author: Zhua Zhua (Created for Master)

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

OpenClaw

88.99%
按下载量换算4,975

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

未展示

权限和风险

external-service

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

安装前确认

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

来源信息

继续浏览同类 Skills