Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

docs-sync文档同步

Agent Skill

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

总安装

1,247

周安装

53

GitHub Stars

28

下载量

437
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/laurigates/claude-plugins --skill docs-sync

简介

docs-sync 用于辅助文档、README、Markdown 和内容稿件的整理与改写,适合在 Codex、Claude、Cursor、Gemini CLI 中提炼结构、补齐章节或统一术语。

  • 使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需控制语气,避免过度营销或夸大能力。
  • 它可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 当前顶部介绍为空,需参考原始 SKILL.md 进一步了解功能细节。
  • docs-sync 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

/docs:sync [OPTIONS]

Scan the codebase for skills, commands, and agents, then update all documentation to reflect the current state. Fixes count mismatches, adds missing entries, and removes stale references.

Usage

/docs:sync                        # Sync all documentation
/docs:sync --scope skills         # Only sync skill documentation
/docs:sync --scope commands       # Only sync command documentation
/docs:sync --scope agents         # Only sync agent documentation
/docs:sync --dry-run              # Show what would change without modifying
/docs:sync --verbose              # Show detailed scanning output

Parameters

  • --scope <type> - Limit sync to specific type: skills, commands, agents, or all (default)
  • --dry-run - Preview changes without modifying files
  • --verbose - Show detailed progress during scanning

Execution

Execute this documentation sync workflow:

Step 1: Discover codebase items

  1. Scan source directories: # Skills find.claude/skills -name "SKILL.md" -type f # Commands find.claude/commands -name "*.md" -type f! -name "CLAUDE.md" # Agents find.claude/agents -name "*.md" -type f
  2. Extract metadata from each item:

- Skills: Parse YAML frontmatter for name and description - Commands: Parse description from frontmatter, infer namespace from path - Agents: Parse frontmatter for name, description, tools

  1. Parse existing documentation:

- .claude/skills/CLAUDE.md - Current skill catalog with categories - .claude/skills/CLAUDE.md - Command reference with namespaces - Root CLAUDE.md - Summary counts and highlights

Step 2: Analyze differences

  1. Compare actual vs documented:

- Find items in directories but not in documentation (NEW) - Find items in documentation but not in directories (STALE) - Check if counts match

  1. Categorize new items: For skills, determine category by: For user-invocable skills, determine namespace from directory name: For agents, determine domain from description keywords

- Name patterns: ux-*, git-*, python-* → matching category - Description keywords: "accessibility", "testing", "infrastructure" - Similar existing skills in same domain - If uncertain, suggest "Uncategorized" for manual review - skills/git-commit/SKILL.mdgit: namespace - skills/handoffs/SKILL.md → Root level

  1. Identify documentation sections to update:

- Count patterns: **N skills**, N total, (N skills) - List sections by category/namespace - Summary tables

Step 3: Apply updates

  1. Update counts throughout documentation:

- Search for patterns like **63 skills** or 63 specialized skills - Replace with accurate count - Update category counts like ### Core Development (9 skills)

  1. Add new items to appropriate sections: Skills catalog format: ### Category Name (N skills) - **skill-name** - Description from SKILL.md frontmatter Command table format: ` | Namespace | Commands | Purpose | | /command | Description | Usage context | **Agent inventory format**: | Agent | Purpose | Key Tools | | agent-name | Description | Tool1, Tool2 |`
  2. Remove stale entries that no longer exist in codebase
  3. Update cross-references:

- "See also" sections - Related skills/commands lists

Step 4: Report results

Generate summary of changes:

## Documentation Sync Report

### Skills
- ✅ Added N new skills to catalog
  - skill-name → Category Name
- ✅ Removed N stale skills
- ✅ Updated skill count: OLD → NEW

### Commands
- ✅ Added N new commands
  - /namespace:command → Description
- ✅ Updated command counts

### Agents
- ✅ Added N new agents
  - agent-name → Domain
- ✅ Updated agent inventory

### Files Modified
- path/to/file.md (N changes)

### Manual Review Needed
- item-name: Could not determine category

Documentation Files to Update

Primary targets (always check):

  • .claude/skills/CLAUDE.md - Skills catalog
  • .claude/skills/CLAUDE.md - Commands reference
  • CLAUDE.md (root) - Repository overview

Secondary targets (if they exist):

  • README.md - Project README
  • docs/ directory content
  • Any file containing skill/command/agent counts

Categorization Rules

Skill Categories

PatternCategory
ux-*, accessibility-*, design-*UX & Accessibility
git-*, github-*Version Control & GitHub
python-*, uv-*, ruff-*Python Development
typescript-*, nodejs-*, vitest-*TypeScript/JavaScript
rust-*, cpp-*, embedded-*Systems Languages
container-*, kubernetes-*, helm-*, terraform-*Infrastructure & DevOps
test-*, playwright-*, mutation-*Testing & Quality
agent-*, multi-agent-*Meta & Coordination

Skill Namespaces

Determined by skill directory name prefix:

  • skills/git-*/SKILL.mdgit: namespace
  • skills/docs-*/SKILL.mddocs: namespace
  • skills/*/SKILL.md (no prefix) → Root level skills

Error Handling

  • Missing documentation file: Create from template with discovered content
  • Malformed YAML frontmatter: Warn and skip item, report in summary
  • Ambiguous categorization: Add to "Uncategorized" section, flag for review
  • Duplicate entries: Warn and keep first occurrence

Best Practices

  1. Run after adding features - Keep docs in sync with implementation
  2. Review dry-run first - Verify categorization before applying
  3. Commit docs separately - Use docs: conventional commit prefix
  4. Check cross-references - Ensure "See also" sections are updated

Example Session

# After adding new skills
/docs:sync --dry-run

# Review output, then apply
/docs:sync

# Commit the documentation updates
git add .claude/
git commit -m "docs: sync documentation with new UX implementation features"

See Also

  • Commands: /docs:generate for generating new documentation
  • Skills: release-please-protection for automated versioning
  • Workflow: Run after /project:new or major feature additions

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

31.73%
按下载量换算139

Claude

29.73%
按下载量换算130

Cursor

19.13%
按下载量换算84

Gemini CLI

9.64%
按下载量换算42

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills