Token导航 LogoToken导航

Agent Skill · 研究检索

update-docs(更新文档)

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

update-docs 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 47,337。

总安装 737周安装 31GitHub Stars 公开资料未说明下载 258核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/cygnusfear/agent-skills --skill update-docs

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

update-docs 在修改文档前必须咨询 Oracle 获取现有信息。适用于 README、AGENTS.md 等技术文档的维护与更新。强调保留历史知识,避免盲目覆盖导致信息丢失。使用前应确认 Oracle 可用性,防止在无上下文时误删关键内容。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/update-docs

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/cygnusfear/agent-skills --skill update-docs;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

update-docs 怎么安装?

在终端执行 npx skills add https://github.com/cygnusfear/agent-skills --skill update-docs。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

update-docs 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

update-docs 需要什么权限?

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

update-docs 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

update-docs 用的人多吗?

公开数据是累计安装 737 次,近一周安装 31 次,下载 258 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

update-docs 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
update-docs

更新文档 · 本页

737—需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Update Documentation

CRITICAL: Oracle-First Protocol

BEFORE making ANY changes to documentation, you MUST consult the Oracle to understand what exists and what must be preserved.

Documentation often contains hard-won knowledge, historical context, and decisions that aren't obvious from code alone. Blindly updating docs risks losing this irreplaceable information.

Mandatory Pre-Update Oracle Consultation

For EACH significant document (especially AGENTS.md, architecture docs, decision records):

teams(action: 'delegate', tasks: [{
  text: 'You are The Oracle - analyze this documentation before it gets updated.\n\nDOCUMENT PATH: [path]\nDOCUMENT CONTENT:\n[full content]\n\nANALYSIS REQUIRED:\n\n1. **Critical Knowledge Inventory**\n   - What unique insights/decisions does this document contain?\n   - What historical context would be lost if overwritten?\n   - What hard-won lessons or gotchas are documented?\n   - What non-obvious information exists that code doesn\'t reveal?\n\n2. **Preservation Requirements**\n   - List specific sections/paragraphs that MUST be preserved\n   - Identify any warnings, caveats, or "don\'t do X" guidance\n   - Note any project-specific conventions explained here\n   - Flag any links to external resources or related docs\n\n3. **Safe to Update**\n   - What sections are purely factual and safe to update from code?\n   - What sections are demonstrably outdated based on codebase?\n   - What can be verified objectively vs. requires human judgment?\n\n4. **Update Recommendations**\n   - Specific guidance for updating this document safely\n   - Sections to leave untouched without human approval\n   - Suggested merge strategy (preserve + add vs. replace)\n\nBe thorough. Assume any knowledge lost here is lost forever.',
  assignee: 'doc-oracle'
}])

When Oracle Consultation is MANDATORY

  • ALWAYS for: AGENTS.md files, architecture docs, decision records, onboarding guides
  • ALWAYS for: Any doc >200 lines or last modified >30 days ago
  • ALWAYS for: Docs with sections titled "Why", "History", "Decisions", "Gotchas", "Warnings"
  • RECOMMENDED for: All other significant documentation

When You Can Skip Oracle (rare)

  • Trivial typo fixes
  • Adding new sections (not modifying existing)
  • Updating version numbers or dates
  • Fixing broken links to known-good targets

Instructions

Systematically review and update all project documentation to ensure accuracy, completeness, and alignment with current codebase state.

Phase 0: Oracle Pre-Analysis (NEW - MANDATORY)

Before touching ANY documentation:

  1. Identify high-value documents - AGENTS.md, architecture docs, decision records
  2. Run Oracle analysis on each high-value document
  3. Create preservation checklist from Oracle findings
  4. Add preservation requirements to TodoWrite - these are non-negotiable

Example TodoWrite entries from Oracle:

- [ ] PRESERVE: Authentication decision rationale in AGENTS.md (lines 45-67)
- [ ] PRESERVE: Database migration warnings in architecture.md
- [ ] PRESERVE: "Why we don't use X" section in conventions.md
- [ ] SAFE TO UPDATE: API endpoint list (verify against code)

Phase 1: Discovery & Analysis

  1. Find all documentation files:

- Plan tickets (tagged plan) - search with tk list --tag plan - **/AGENTS.md - Agent-specific guidelines - docs/**/* - General documentation - Any other doc files the user specifies

  1. Git analysis (if applicable):

- Check when docs were last modified - Identify code changes since last doc update - Use git log to understand what changed

  1. Create comprehensive todo list - One item per document to review

- Include Oracle preservation requirements from Phase 0

Phase 2: Systematic Document Review

For EACH document in the todo list:

Step 1: Read & Understand
  • Fully read the document
  • Understand its purpose and scope
  • Note any references to code, features, or architecture
  • Check Oracle preservation list for this document
Step 2: Validate Against Codebase

Audit the codebase to check if documentation is:

  • Misleading: Claims something that isn't true
  • Outdated: References old code, deprecated patterns, or removed features
  • Wrong: Contains factual errors about implementation
  • Missing: Lacks important information about current state
  • Redundant: Duplicates information found elsewhere

CRITICAL: Cross-reference with Oracle preservation list. If something seems outdated but Oracle flagged it as "preserve", DO NOT modify without explicit confirmation.

Step 3: Check Compliance

Verify document follows guidelines in AGENTS.md:

  • Naming conventions
  • Architecture patterns
  • Code style requirements
  • File organization rules
Step 4: Special Handling for Plan Documents

Plan tickets require careful status tracking:

Investigation:

  • Thoroughly audit codebase to determine implementation status
  • Check each item in the plan against actual code
  • NEVER assume - verify everything with code inspection

Status Categorization:

  • Open: Plan not yet implemented or partially implemented
  • Closed: Plan completely implemented and verified (close with tk close <id>)
  • Obsolete: Plan no longer relevant or superseded (close with note)

Progress Marking:

  • Add progress notes to plan tickets using tk add-note <id> "<progress>"
  • Be conservative - only close with 100% confirmation

CRITICAL: NEVER close a plan ticket until you have 100% confirmation through code audit that EVERY item is implemented.

Step 5: Update Document (WITH PRESERVATION PROTOCOL)

Before ANY edit, verify:

  • Oracle preservation requirements are honored
  • No "Why", "History", or "Decision" sections are being removed
  • Warnings and gotchas are being kept
  • You're ADDING to existing knowledge, not replacing it

Safe update patterns:

  • Fix factual errors (wrong file paths, outdated API signatures)
  • Add new information alongside existing
  • Update status markers and dates
  • Fix broken links

Dangerous patterns (require confirmation):

  • Deleting any paragraph >2 sentences
  • Rewriting explanatory sections
  • Removing "deprecated" or "don't use" warnings
  • Changing architectural guidance
Step 6: Validate Changes
  • Ensure changes are accurate
  • Verify Oracle preservation requirements were followed
  • Verify no information was lost
  • Check that references/links still work
Step 7: Document Changes

Add to running change log:

  • File: [path]
  • Changes made: [description]
  • Reason: [why it was updated]
  • Preserved sections: [what was kept per Oracle guidance]
Step 8: Mark Complete

Update todo list to mark this document as completed

Phase 3: Cross-Document Analysis

After reviewing all individual documents:

  1. Consistency check:

- Ensure all docs use consistent terminology - Verify no conflicting information between docs - Check that cross-references are valid

  1. Coverage analysis:

- Identify features/code that lack documentation - Find orphaned docs (no corresponding code) - Note gaps in documentation coverage

  1. Link validation:

- Verify internal references point to existing files - Check that example code paths are correct - Validate any external links

Phase 4: Summary & Recommendations

  1. Generate update summary:
# Documentation Update Summary - [Date]

## Oracle Consultation
- Documents analyzed: X
- Critical sections preserved: Y
- Preservation requirements followed: ✅/❌

## Files Updated: X
## Changes Made:

### Plans Status
- ✅ Done: [list]
- 📋 Todo: [list]
- ⚠️ Obsolete: [list]

### Updates by Document
- **[file path]**
  - Fixed: [what was wrong]
  - Added: [what was missing]
  - Removed: [what was redundant]
  - **Preserved**: [what was kept per Oracle]

### Coverage Gaps
- [Undocumented features]
- [Orphaned documentation]

### Recommendations
1. [Suggested improvements]
2. [New docs needed]
  1. Save summary as a tk ticket tagged docs via todos_oneshot(title: "Docs update summary", description: "<summary>", tags: "docs", type: "task")

Phase 5: Validation

  1. Build check - Ensure any doc-related code samples build correctly
  2. Link check - Verify all internal references work
  3. Completeness check - Confirm all todos were addressed
  4. Preservation check - Verify Oracle requirements were honored

Critical Principles

  • ORACLE FIRST - Always consult Oracle before modifying significant docs
  • PRESERVE OVER REPLACE - Add new info, don't delete old wisdom
  • 100% VERIFICATION REQUIRED - Never mark plans as done without complete code audit
  • NEVER SKIP DOCUMENTS - Review every file in the todo list
  • BE CONSERVATIVE - When in doubt about plan status, keep as todo
  • THOROUGH INVESTIGATION - Actually read the code to verify claims
  • PRESERVE INTENT - Keep the original purpose while updating facts
  • TRACK CHANGES - Document what was changed and why
  • COMPLIANCE FIRST - ALWAYS follow AGENTS.md guidelines
  • NO ASSUMPTIONS - Verify everything against actual code

The Documentation Preservation Hierarchy

NEVER delete without explicit approval:

  1. Architectural decisions and their rationale
  2. "Why we did X" explanations
  3. Warnings, gotchas, and "don't do this" guidance
  4. Historical context and migration notes
  5. Non-obvious conventions and their reasons

Safe to update freely:

  1. Code examples (verify against actual code)
  2. File paths and line numbers
  3. Version numbers and dates
  4. Status markers and checkboxes
  5. Broken links (to known-good targets)

Plan Status Decision Tree

Is EVERY item in the plan implemented?
├─ YES (verified in code) → Mark items with ✅
│  └─ Are ALL items marked ✅?
│     ├─ YES → Rename to .done.md
│     └─ NO → Rename to .todo.md (still has work)
│
├─ NO (some items not implemented) → Rename to .todo.md
│  └─ Mark implemented items with ✅
│
└─ Plan is superseded or irrelevant → Rename to .obsolete.md

Mermaid Diagrams in Documentation

When updating documentation, add or update Mermaid diagrams to visualize complex concepts.

When to Add Diagrams

Document TypeDiagram Use
Architecture docsComponent relationships, data flow
API documentationRequest/response sequences
Process guidesWorkflow flowcharts
Decision recordsBefore/after state diagrams

Diagram Maintenance

When updating docs:

  1. Check existing diagrams - Are they still accurate?
  2. Update outdated diagrams - Reflect current architecture
  3. Add missing diagrams - Where text alone is insufficient
  4. Remove obsolete diagrams - If they show removed features

Example: Architecture Update

## Current Architecture

flowchart TD subgraph Frontend A[React App] --> B[API Client] end subgraph Backend B --> C[Express Server] C --> D[PostgreSQL] C --> E[Redis Cache] end

Note: Diagrams in documentation should be verified against actual code, just like text.


Supporting Tools Integration

  • Use Task (Oracle) to analyze docs before modification
  • Use Grep to search for TODOs or implementation evidence
  • Use Glob to find related files
  • Use Bash for git operations
  • Use Read to examine code thoroughly
  • Use Edit to update documentation
  • Use TodoWrite to track review progress AND preservation requirements

平台分布

Codex

37.9%
按下载量换算98

Claude

30.26%
按下载量换算78

Cursor

19.31%
按下载量换算50

Gemini CLI

10.39%
按下载量换算27

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills