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

document-update文件更新

Agent Skill

document-update 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

196

周安装

8

GitHub Stars

公开资料未说明

下载量

63
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/jihunkim0/jk-skills --skill document-update

简介

在 PR 提交前自动同步更新相关文档内容。

  • 聚焦事实更正、版本更新与交叉引用维护。
  • 采用友好简洁的用户导向写作风格。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 禁止添加未经代码 diff 验证的新增信息。
  • document-update 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Document Update: Pre-PR Documentation Sync

Ensure every documentation file is accurate, up to date, and written in a friendly, succinctly, user-forward voice. Runs after a feature is completed, before a PR is opened or merged.

Autonomy Rules

You are mostly automated. The top-level rules below govern ALL steps — they are not repeated per-step.

Auto-update (never ask):

  • Factual corrections clearly supported by the diff
  • Adding items to tables/lists, updating paths/counts/versions
  • Fixing stale cross-references
  • CHANGELOG minor voice adjustments
  • Marking TODOS complete
  • Cross-doc factual inconsistencies (e.g., version mismatch)

Ask user first:

  • Narrative, philosophy, or security-related changes
  • Large rewrites or removals
  • New TODOS items to add
  • Cross-doc contradictions that are narrative (not factual)

NEVER do:

  • Overwrite, replace, or regenerate CHANGELOG entries — polish wording only, preserve all content
  • Use Write tool on CHANGELOG.md — always use Edit / Replace with exact matches

Step 1: Pre-flight & Diff Analysis

BASE_BRANCH=$(gh pr view --json baseRefName -q .baseRefName 2>/dev/null || gh repo view --json defaultBranchRef -q .defaultBranchRef.name 2>/dev/null || echo "main")

git diff $BASE_BRANCH...HEAD --stat
git log $BASE_BRANCH..HEAD --oneline
git diff $BASE_BRANCH...HEAD --name-only
find . -maxdepth 2 -name "*.md" -not -path "*/.git/*" -not -path "*/node_modules/*" | sort

Output: "Analyzing N files changed across M commits. Found K documentation files to review."


Step 2: Per-File Audit & Update

Read each doc file. Cross-reference against the diff. Apply auto-updates directly; queue risky changes for user confirmation.

FileFocus
README.mdFeatures, install/setup instructions, examples, usage descriptions still valid?
ARCHITECTURE.mdComponent descriptions match code? Be conservative — only update clear contradictions.
AGENTS.mdAgent tools, behaviors, capabilities, configurations still accurate?
CONTRIBUTING.mdWalk through setup as a new contributor — would each command succeed?
Other.md filesDetermine purpose/audience, check if diff contradicts anything.

For each file modified, output a one-line summary (e.g., "README.md: added feature X to capabilities list").

After auto-updates, present any risky/questionable changes to the user with your recommendation. Apply approved changes immediately.


Step 3: CHANGELOG Voice Polish

If CHANGELOG was modified in this branch:

  1. Read the entire CHANGELOG.md first.
  2. Review entries for voice:

- Lead with what the user can now do — not implementation details - "You can now..." not "Refactored the..." - Rewrite entries that read like commit messages

  1. Only modify wording. Never delete, reorder, or replace entries.

Step 4: Cross-Doc Consistency & Discoverability

  1. README feature list matches what other docs describe?
  2. ARCHITECTURE component list matches CONTRIBUTING project structure?
  3. Discoverability: Is every doc file reachable from README.md? Every doc should be discoverable from the main entry point.

Step 5: TODOS Cleanup

  1. Completed: Cross-reference diff against open TODO items. Move clearly completed items to "Completed" section.
  2. Stale: If a TODO references significantly changed files, ask user whether to update, complete, or leave.
  3. New: Check diff for TODO, FIXME, HACK comments. Ask user whether to capture in TODOS.md.

Step 6: Commit & Output

If no docs were modified (git status clean), output "All documentation is up to date." and exit.

Otherwise:

git add <modified doc files>
git commit -m "docs: sync documentation for recent changes"
git push

PR body update:

gh pr view --json body -q .body > /tmp/pr-body-$$.md
# Append/update a "## Documentation" section with doc diff preview
gh pr edit --body-file /tmp/pr-body-$$.md

Output a structured summary:

Documentation health:
  README.md       [Updated] (added feature X)
  CHANGELOG.md    [Voice polished] (adjusted wording)
  ARCHITECTURE.md [Current] (no changes needed)
  ...

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

39.37%
按下载量换算25

Claude

30.39%
按下载量换算19

Cursor

17.62%
按下载量换算11

Gemini CLI

9.3%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

来源信息

继续浏览同类 Skills