Token导航 LogoToken导航TokenDH.com
开发执行命令github未标认证来源可访问许可证需确认审计通过

diataxis-documentation共轴文档

Agent Skill

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

总安装

821

周安装

17

GitHub Stars

4

下载量

140
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/abatilo/vimrc --skill diataxis-documentation

简介

diataxis-documentation 用于辅助文档、README、Markdown 和内容稿件的结构化整理与改写。

  • 适用于教程编写、指南撰写与技术说明文优化等四类 Diátaxis 文档类型支持。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需确认权限与网络访问能力。
  • 使用时需注意保留原始事实,避免对未验证信息做出确定性结论。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Diataxis Documentation Skill

This skill helps you create high-quality, user-focused documentation following the Diataxis framework, which organizes documentation into four distinct types based on user needs.

When to Use This Skill

Use this skill when:

  • Creating new documentation of any kind
  • Improving existing documentation
  • Organizing documentation for a project or codebase
  • Writing tutorials, how-to guides, reference material, or explanations
  • Unsure which type of documentation is needed
  • Documentation feels unclear or serves multiple purposes poorly

The Diataxis Framework Overview

Diataxis organizes documentation along two dimensions:

User Context:

  • Study (Skill Acquisition): User is learning
  • Work (Skill Application): User is doing

Content Nature:

  • Action (Practical Steps): How to do things
  • Cognition (Theoretical Knowledge): Understanding concepts

This creates four distinct documentation types:

                Study          |          Work
           (Learning)          |         (Doing)
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━┿━━━━━━━━━━━━━━━━━━━━━━━━━━━
                                |
    TUTORIALS                   |    HOW-TO GUIDES
    Learning-oriented           |    Goal-oriented
    Guided lessons              |    Practical directions
    "Learn by doing"            |    "Achieve a goal"
                                |
Action ━━━━━━━━━━━━━━━━━━━━━━━━┼━━━━━━━━━━━━━━━━━━━━━━━━━━ Action
                                |
    EXPLANATION                 |    REFERENCE
    Understanding-oriented      |    Information-oriented
    Background & context        |    Technical description
    "Why & how it works"        |    "Facts about machinery"
                                |
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━┿━━━━━━━━━━━━━━━━━━━━━━━━━━━
Cognition                       |                    Cognition

How to Use This Skill

1. Identify the Documentation Type Needed

Ask these two questions:

  1. Action or Cognition? Does the user need to DO something or UNDERSTAND something?
  2. Study or Work? Is the user learning something new or applying existing knowledge?

Decision Tree:

  • Action + Study = Tutorial (learning by doing)
  • Action + Work = How-to Guide (solving a problem)
  • Cognition + Work = Reference (looking up facts)
  • Cognition + Study = Explanation (understanding concepts)

2. Load the Appropriate Reference File

Based on the documentation type identified, load the relevant reference for detailed guidance:

For Tutorials: Load Tutorials Reference when you need to:

  • Guide a learner through a complete, practical lesson
  • Teach basic skills and concepts through hands-on experience
  • Create a learning-oriented "first steps" experience
  • Help someone gain confidence with a new tool or technology

For How-to Guides: Load How-to Guides Reference when you need to:

  • Provide step-by-step instructions to achieve a specific goal
  • Help solve a particular real-world problem
  • Write task-oriented documentation for competent users
  • Address a "How do I..." question

For Reference Documentation: Load Reference Documentation Reference when you need to:

  • Document APIs, functions, classes, or configuration options
  • Provide accurate technical descriptions
  • Create lookup material for factual information
  • Write information-oriented content structured like the product

For Explanations: Load Explanations Reference when you need to:

  • Explain concepts, design decisions, or architectural choices
  • Provide background and context
  • Discuss alternatives and trade-offs
  • Answer "why" questions about how things work

For Framework Overview: Load Framework Overview Reference when you need:

  • Detailed understanding of Diataxis principles
  • Guidance on maintaining distinctness between types
  • Common mistakes to avoid
  • The iterative improvement workflow

3. Follow the Iterative Improvement Process

Diataxis emphasizes continuous, incremental improvement:

  1. Choose: Select a small piece of documentation (page, paragraph, or sentence)
  2. Assess: Evaluate it against Diataxis standards:

- What user need does it serve? - How well does it serve that need? - Does it belong in the right documentation type? - Is it using the right style and approach?

  1. Decide: Determine one specific improvement that aligns with Diataxis
  2. Do: Complete that single improvement and publish immediately

Important: Focus on small, immediate improvements rather than large restructuring efforts.

Key Principles

Maintain Distinctness

  • Each documentation type has a specific purpose - don't blur them
  • Tutorials teach through doing, not explaining
  • How-to guides solve problems, not teach concepts
  • Reference describes facts, not guide users through tasks
  • Explanations provide context, not instructions

User-Centered Approach

  • Always consider: What does the user need right now?
  • Match the documentation type to the user's context (study vs. work)
  • Match the content to the user's need (action vs. cognition)

Organic Structure

  • Don't create empty documentation structures upfront
  • Let structure emerge from content improvements
  • Create documentation types only when content demands it

Link Between Types

  • Tutorials can link to explanations for deeper understanding
  • How-to guides can reference relevant reference material
  • Keep each type focused; use links for cross-cutting needs

Quick Documentation Type Selector

User says "How do I..."

  • If they're learning → Tutorial
  • If they're working → How-to Guide

User needs facts about something → Reference

User asks "Why..." or "What is..." → Explanation

User is frustrated or stuck

  • Check recent tasks → How-to Guide
  • Check understanding → Explanation
  • Check syntax/parameters → Reference

Creating first-time user content → Tutorial

Common Patterns

Tutorial Example Scenarios

  • "Build your first web app"
  • "Getting started with X"
  • "Introduction to Y"
  • "Your first Z project"

How-to Guide Example Scenarios

  • "How to deploy to production"
  • "Implementing authentication"
  • "Optimizing database queries"
  • "Troubleshooting connection errors"

Reference Example Scenarios

  • API documentation
  • Configuration file reference
  • Command-line options
  • Class/function documentation

Explanation Example Scenarios

  • "Understanding the architecture"
  • "Why we chose X over Y"
  • "How the authentication system works"
  • "Database design decisions"

Important Notes

  • Load specific reference files only when needed to keep context manageable
  • Each documentation type requires different writing styles and structures
  • Avoid mixing purposes - if documentation tries to do multiple things, split it
  • The framework is descriptive, not prescriptive - adapt to your project's needs
  • Iterate continuously rather than attempting complete restructuring
  • Quality comes from alignment with user needs, not from following rigid templates

Remember: The goal is to serve user needs effectively. Use the Diataxis compass to identify what users need, then load the appropriate reference file for detailed guidance on creating that documentation type.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.99%
按下载量换算50

Claude

28.54%
按下载量换算40

Cursor

17.43%
按下载量换算24

Gemini CLI

9.43%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/abatilo/vimrc --skill diataxis-documentation 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills