Token导航 LogoToken导航TokenDH.com
研究检索执行命令clawhub未标认证来源可访问clear审计通过

docs-organization文档组织

Agent Skill

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

总安装

3,599

周安装

147

GitHub Stars

公开资料未说明

下载量

1,164
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install docs-organization

简介

按项目规模、受众群体和时效性整理文档结构。

  • 适用于新项目初始化或现有文档体系重构场景。
  • 自动分类文件并推荐目录层级与阅读路径。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。
  • 保留原有事实与链接,不擅自修改内容实质。
  • docs-organization 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
docs-organization
description
>-
version
1.1.0
metadata
author
zning1994
openclaw
homepage
https://github.com/zning1994/docs-organization
os

Documentation Organization

A practical guide for organizing project documentation so that every fact has one home, AI agents load only what they need, and humans can find things without grep.

Why This Matters

Poor doc organization creates three problems that compound over time:

  1. Drift — the same fact copied into 3 files eventually becomes 3 different "truths"
  2. Context waste — a 2000-line CLAUDE.md burns AI tokens on every conversation, most of it irrelevant
  3. Lost docs — flat directories with 20+ files make everything hard to find

The fix is simple: organize by who reads it and whether it stays current.

Step 0: Root-Level Noise Audit

Before touching docs, clean non-documentation clutter from the project root. Root-level noise (screenshots, recordings, debug logs, AI chat exports) is often the biggest source of visual chaos — and it has nothing to do with documentation structure.

Run ls | wc -l and capture the count. Then identify and relocate:

What to look forWhere it goes
Screenshots, recordings (.png, .mov, .mp4)archive/media/ or screenshots/ if curated
Debug/build logs (*.log, firebase-debug.log)archive/ or delete
AI chat exports, temp markdown dumpsarchive/ or delete
One-off config experimentsarchive/ or delete

Do this first — it dramatically reduces root-level item count and makes the real structure visible before you start reorganizing docs.

Step 1: Assess Project Size

Ask yourself (or the user) these questions:

QuestionSmallMediumLarge
Source files< 55-5050+
Has deployment target?NoYesYes, multiple
Has API or database?NoYesYes
Ongoing operations (cron, monitoring)?NoMaybeYes
Multiple services/containers?NoNoYes

Pick the column that best matches. When in doubt, start smaller — you can always add structure later.

Step 2: Apply the Right Template

Small Project

Single-service tools, scripts, simple packages.

project/
├── CLAUDE.md    # 50-100 lines: what it does, how to run, gotchas
└── README.md    # For humans / GitHub

No docs/ directory needed. Everything fits in two files.

Medium Project

Multi-component apps with deployment targets and external integrations.

project/
├── CLAUDE.md    # 100-200 lines: constraints + doc index
└── docs/
    ├── plans/       # Implementation plans
    ├── design/      # Design specs
    └── reference/   # API tables, config reference, schema

Add directories only when you have 2+ files that belong there. One API doc doesn't need a reference/ folder — just put it in docs/api.md.

Large Project

Systems with operational burden: multiple services, cron jobs, monitoring, multi-environment deployment.

project/
├── CLAUDE.md    # 200-250 lines: constraints + doc index + key gotchas
└── docs/
    ├── README.md      # Documentation map
    ├── reference/     # API endpoints, DB schema, CLI commands, config reference
    ├── runbooks/      # Deploy, operations, troubleshooting, known issues
    ├── guides/        # How-to guides for users and operators
    ├── product/       # Roadmap, product direction
    ├── design/        # Design specs (frozen after implementation)
    ├── plans/         # Implementation plans (frozen after execution)
    ├── research/      # Investigation notes, audits, system reviews
    ├── decisions/     # Architecture Decision Records (ADRs)
    └── archive/       # Superseded docs, old logs, historical patches

Multi-Repo / Monorepo Workspace

An umbrella directory containing multiple independent repos (often not a git repo itself). The key rule: umbrella-level docs are for cross-repo concerns only.

workspace/                          # NOT a git repo
├── CLAUDE.md                       # Repo map + cross-repo conventions + doc index
├── docker-compose.yml              # Cross-repo orchestration (lives at root)
├── .env / .env.example             # Shared secrets (lives at root)
│
├── repo-a/                         # Independent git repo
├── repo-b/                         # Independent git repo
│
├── deploy/                         # Cross-repo: nginx, infra configs, deploy scripts
├── scripts/                        # Cross-repo: shared tooling
├── tools/                          # Cross-repo: shared CLI utilities
│
├── docs/                           # Cross-repo documentation ONLY
│   ├── design/                     #   System-wide architecture specs
│   ├── research/                   #   Cross-cutting investigations
│   ├── runbooks/                   #   Deploy, ops, incident response
│   └── plans/                      #   Cross-repo implementation plans
│
├── screenshots/                    # Curated product screenshots (if needed)
└── archive/                        # Superseded docs + one-off media
    ├── media/                      #   Old screenshots, recordings
    └── docs/                       #   Outdated documents

Key differences from single-repo Large template:

  • Repo-specific docs stay inside each repo (e.g., repo-a/docs/)
  • Umbrella docs/ only holds docs that span multiple repos
  • Orchestration files (docker-compose.yml, .env) live at workspace root
  • deploy/ holds all infra/nginx configs — don't scatter them in root

Step 3: Apply the Core Principles

Principle 1: Single Source of Truth

Every fact lives in exactly one place. Other docs can *link* to it, never *copy* it.

Bad: API endpoint table in CLAUDE.md AND roadmap.md AND usage-guide.md Good: API endpoint table in docs/reference/api-endpoints.md, others link to it

When you change something, update the one canonical location. Not two files, not three — one.

Principle 2: CLAUDE.md Is an Instruction Manual, Not an Encyclopedia

CLAUDE.md (or AGENTS.md) is loaded into every AI conversation. Keep it under 250 lines. The reason is simple: every token in CLAUDE.md is consumed on every single conversation, whether relevant or not. A bloated CLAUDE.md wastes context and money.

What belongs in CLAUDE.md:

  • Behavioral constraints (naming conventions, rules, gotchas)
  • Architecture summary (what connects to what)
  • Documentation index (where to find details)
  • Key file paths

What does NOT belong:

  • Full API tables → move to reference/
  • Historical changelogs → move to product/roadmap.md
  • Deployment procedures → move to runbooks/
  • CLI command references → move to reference/
  • Design specs → move to design/

If CLAUDE.md is over 250 lines, extract the largest non-essential sections first.

Principle 3: Organize by Audience + Freshness

Two questions determine where any doc belongs:

QuestionOptions
Who reads it?agent (AI), operator (maintainer), user (end-user), contributor
Does it stay current?canonical (kept updated), snapshot (frozen in time), archived (superseded)

This maps directly to directories:

DirectoryStatusAudienceContains
reference/canonicalagent, operatorLook-up tables: API, DB, CLI, config
runbooks/canonicaloperatorDeployment, ops, incident response
guides/canonicaluser, contributorHow-to instructions
product/canonicaloperatorRoadmap, direction, milestones
design/snapshotagent, contributorFeature design specs
plans/snapshotagent, contributorImplementation plans
research/snapshotoperatorOne-off investigations, audits
decisions/snapshotcontributorArchitecture Decision Records
archive/archivedOld/superseded docs

Principle 4: No Cross-Doc Mirroring

This rule prevents drift:

After code or config changes, update the affected canonical doc only. Do not mirror the same fact across multiple docs.

If you find yourself maintaining a rule like "always update roadmap, deploy, known-issues, AND CLAUDE.md" — that's a sign of mirroring. Pick one canonical location for each fact.

Document Metadata

Add this frontmatter to any non-trivial doc:

---
status: canonical | snapshot | archived
audience: agent | operator | user | contributor
last_reviewed: YYYY-MM-DD
---
  • canonical: Must stay current. If code changes, this doc must be updated.
  • snapshot: True at time of writing. Never updated. Dated filename is its version.
  • archived: Superseded or obsolete. Kept for reference only.

Anti-Patterns to Watch For

Anti-PatternWhy It's BadFix
Same fact in 3+ filesGuaranteed driftPick one canonical location, link from others
2000-line CLAUDE.mdWastes AI context every conversationKeep < 250 lines, extract reference docs
Flat docs/ with 20+ filesCan't find anythingGroup by audience/purpose
Research notes in docs/ rootPollutes navigationMove to research/ or archive/
Chat logs in docs/Not documentationMove to archive/ or delete
"Always update these 4 files" ruleCreates busywork and drift"Update the one canonical source"
Empty directories "for later"Confusing, no content to navigateCreate directories when you have content
Flat archive/ dumping groundArchive itself becomes a junk drawerUse archive/media/ for images/video, archive/docs/ for old text

Migration Checklist

When reorganizing existing docs:

  1. Snapshot before state: Run ls | wc -l at root and docs/. Save the counts for a before/after comparison.
  2. Root-level noise audit: Move stray media, logs, and temp files out of root first (see Step 0).
  3. Measure docs: Count lines in CLAUDE.md, count files in docs/, identify duplicated facts.
  4. Classify: For each doc, determine audience + freshness status.
  5. Create structure: Make only the directories you need right now.
  6. Check implicit references before moving: rg <filename> (or grep -r <filename>) across the project to find references in docker-compose.yml, CI/CD configs, Makefile, shell scripts, .gitignore, etc. Moving a file that is referenced by a config will cause silent runtime failures.
  7. Move files: Relocate docs to their new homes.
  8. Update implicit references: Fix all paths found in step 6 (docker volume mounts, script paths, etc.).
  9. Extract from CLAUDE.md: Pull reference tables, procedures, and specs into dedicated files.
  10. Add doc index: Update CLAUDE.md with a table pointing to where things moved.
  11. Add metadata: Put frontmatter on each non-trivial doc.
  12. Remove duplicates: Delete mirrored content, keep only the canonical copy.
  13. Verify links: Make sure markdown cross-references still work.
  14. Show before/after: Compare root item count before vs. after. This validates the effort and gives the user a tangible result.

Example: CLAUDE.md Doc Index

After extracting content, add a table like this to CLAUDE.md:

## Documentation Index

| What you need | Where to find it |
|---------------|-----------------|
| API endpoints | `docs/reference/api-endpoints.md` |
| Database schema | `docs/reference/database-schema.md` |
| Deployment guide | `docs/runbooks/deploy.md` |
| Known issues | `docs/runbooks/known-issues.md` |
| Roadmap | `docs/product/roadmap.md` |

This keeps CLAUDE.md as a routing table rather than trying to contain everything.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

86.4%
按下载量换算1,006

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install docs-organization 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills