Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

diataxis-organize-docsdiataxis 组织文档

Agent Skill

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

总安装

1,088

周安装

44

GitHub Stars

公开资料未说明

下载量

341
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/trogonstack/agentskills --skill diataxis-organize-docs

简介

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

  • 适用于文档四象限归类与知识库层级结构重建任务。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需确认权限与网络访问能力。
  • 使用时需注意保留原始事实,避免对未验证信息做出确定性结论。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Diataxis Documentation Organization

Reorganize documentation by classifying content into the four Diataxis quadrants and creating a structured documentation hierarchy.

The Four Quadrants

QuadrantOrientationPurposeUser Need
TutorialLearningTeach through doing"I want to learn"
How-toTaskSolve specific problems"I want to accomplish X"
ReferenceInformationDescribe the machinery"I need facts about Y"
ExplanationUnderstandingClarify concepts"I want to understand why"

Step 1: Analyze Existing Documentation

Scan the documentation directory and classify each file or section:

For each document/section, determine:
- Does it walk through steps to learn? → Tutorial
- Does it solve a specific problem? → How-to
- Does it describe APIs/configs/specs? → Reference
- Does it explain concepts/rationale? → Explanation

Step 2: Create Directory Structure

Organize docs into this hierarchy:

docs/
├── tutorials/           # Learning-oriented
│   ├── getting-started/
│   └── {topic}/
├── how-to/              # Task-oriented
│   ├── {task-category}/
│   └── troubleshooting/
├── reference/           # Information-oriented
│   ├── api/
│   ├── configuration/
│   └── architecture/
├── explanation/         # Understanding-oriented
│   ├── concepts/
│   ├── decisions/
│   └── background/
└── README.md            # Navigation hub

Step 3: Classification Criteria

Tutorials (Learning)

Characteristics:

  • Step-by-step instructions for beginners
  • Builds toward a working example
  • Focuses on "what the user does"
  • Has a concrete end goal

Example titles:

  • "Your First Application"
  • "Getting Started with X"
  • "Building a Sample Project"

DO NOT include:

  • Exhaustive options or configurations
  • Theoretical explanations
  • Edge cases

How-to Guides (Tasks)

Characteristics:

  • Assumes basic knowledge
  • Addresses a specific problem
  • Provides actionable steps
  • May have multiple valid approaches

Example titles:

  • "How to Deploy to Production"
  • "Migrating from v1 to v2"
  • "Configuring Authentication"

DO NOT include:

  • Teaching fundamentals
  • Complete API documentation
  • Philosophical discussions

Reference (Information)

Characteristics:

  • Accurate and complete
  • Consistent structure
  • Describes what IS (not how to use)
  • Dry, factual tone

Example content:

  • API endpoints and parameters
  • Configuration options
  • CLI commands and flags
  • Data schemas

DO NOT include:

  • Explanations of why
  • Step-by-step tutorials
  • Opinions or recommendations

Explanation (Understanding)

Characteristics:

  • Discusses context and background
  • Explains design decisions
  • Connects concepts together
  • Can be discursive

Example titles:

  • "Understanding the Event Loop"
  • "Why We Chose X over Y"
  • "Architecture Overview"

DO NOT include:

  • How-to instructions
  • Reference specifications
  • Beginner tutorials

Step 4: Split Mixed Documents

When a document contains multiple types:

  1. Identify boundaries - Mark where content shifts purpose
  2. Extract sections - Move each type to its proper location
  3. Add cross-references - Link related content across quadrants
  4. Preserve context - Ensure each piece stands alone

Example Split

Before (mixed document):

# Authentication

Authentication uses JWT tokens. (explanation)

## Quick Start
1. Install the package... (tutorial)

## API Reference
- `authenticate(user, pass)` - Returns token (reference)

## Troubleshooting
### Token Expired
If you see error X, do Y... (how-to)

After (split):

tutorials/authentication-quickstart.md
how-to/troubleshooting/token-expired.md
reference/api/authentication.md
explanation/concepts/authentication.md

Step 5: Create Navigation Index

Always use README.md as the root navigation file — never index.md.

Build a documentation hub that helps users find content by their need:

# Documentation

## Learning
New here? Start with our tutorials:
- [Getting Started](tutorials/getting-started.md)
- [Your First App](tutorials/first-app.md)

## Guides
Solve specific problems:
- [Deployment](how-to/deployment/)
- [Troubleshooting](how-to/troubleshooting/)

## Reference
Technical specifications:
- [API Reference](reference/api/)
- [Configuration](reference/configuration/)

## Understanding
Deep dives and background:
- [Architecture](explanation/architecture.md)
- [Design Decisions](explanation/decisions/)

Quality Checklist

After reorganization, verify:

  • Each document serves ONE purpose
  • Tutorials have clear learning outcomes
  • How-to guides solve specific problems
  • Reference is complete and accurate
  • Explanations provide genuine insight
  • Cross-references connect related content
  • Navigation makes user intent clear
  • No orphaned or duplicated content

Anti-Patterns to Fix

ProblemSolution
Tutorial with exhaustive optionsMove options to reference, link to it
How-to explaining fundamentalsExtract to tutorial, assume knowledge
Reference with usage examplesMove examples to how-to
Explanation with code snippetsKeep only conceptual snippets
One giant READMESplit into proper quadrants

Output Format

After analysis, report:

## Documentation Audit

### Current State
- Total documents: X
- Mixed documents: Y
- Missing quadrants: [list]

### Classification Results
| Document | Current Type | Recommended Type | Action |
|----------|--------------|------------------|--------|
| ... | ... | ... | Split/Move/Keep |

### Proposed Structure
[Directory tree with file placements]

### Cross-References Needed
- [doc A] should link to [doc B]
- ...

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.35%
按下载量换算121

Claude

31.95%
按下载量换算109

Cursor

19.61%
按下载量换算67

Gemini CLI

9.8%
按下载量换算33

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills