Token导航 LogoToken导航

Agent Skill · 研究检索

docs-check-zh-cn(文档检查 zh cn)

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

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

总安装 461周安装 19GitHub Stars 18下载 150核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/openharmonyinsight/openharmony-skills --skill docs-check-zh-cn

这个 Skill 是做什么的

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

用于执行 OpenHarmony API 文档质量检查,强调模板合规性和实现对齐。聚焦于错误码覆盖率和文档一致性,仅输出存在问题部分。自动推断公共和系统 API 文档路径,减少人工输入需求。适用于 OpenHarmony 项目文档维护和标准化管理。可集成到 CI/CD 流程中以自动化文档审核。

docs-check-zh-cn 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/docs-check-zh-cn

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

docs-check-zh-cn 怎么安装?

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

docs-check-zh-cn 支持哪些 AI 工具?

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

docs-check-zh-cn 需要什么权限?

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

docs-check-zh-cn 是免费的吗?

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

docs-check-zh-cn 用的人多吗?

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

docs-check-zh-cn 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

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

值得选的地方

  • 同时适配 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调用外部服务未明确有提醒
docs-check-zh-cn

文档检查 zh cn · 本页

46118需要联网未明确有提醒

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

SKILL.md 原文

Documentation Check

Run OpenHarmony API documentation quality checks with emphasis on template compliance, documentation consistency, error code coverage, and implementation alignment. Focus the output on issues only. Do not repeat content that already complies.

Input Collection

Infer paths from the user context, current working directory, and repository layout whenever possible. Ask the user only if the needed files still cannot be located.

Collect or infer the following inputs:

  • public API doc path, optional, usually under /docs
  • system API doc path, optional, usually under /docs
  • error code doc path, optional, usually under /docs
  • API definition path, usually under /interface
  • repository root path, only if interface implementations cannot be found from the current workspace

By default, resolve /docs first from the workspace root, then /interface.

If the user provides a path starting with /docs/... or /interface/..., interpret it as a repository-root path first, not as a path relative to the current module directory.

If the user provides only part of the paths, start from the known inputs and continue auto-discovery under the workspace root /docs and /interface. Explicitly state any unchecked scope in the report.

Workflow

Follow this order.

  1. Locate the documents, interface declarations, and implementation code.
  2. Run scripts/check_api_doc_consistency.py first for the stable automatable checks.
  3. Read the relevant templates and extract the actual writing requirements.
  4. Perform manual review for issues that cannot be checked reliably by script.
  5. Cross-check documentation against implementation behavior when needed.
  6. Output a Markdown report containing issues, impact, and fixes only.

Use this lookup order by default:

  1. User-provided paths
  2. Walk upward from the current working directory to locate the workspace root that contains docs and interface
  3. Workspace root /docs
  4. Workspace root /interface
  5. Other source directories that may contain related implementations

If the current directory is a submodule, do not assume /docs or /interface exists under the current directory. Find the workspace root first.

Template Selection

Use this template priority:

  1. In-repo template
  2. External documentation link
  3. Default templates bundled with this skill

In-repo template paths:

  • JS API template: /docs/blob/master/zh-cn/contribute/template/native-template.md
  • ArkTS component API template: /docs/blob/master/zh-cn/contribute/template/ts-template.md
  • Error code template: /docs/blob/master/zh-cn/contribute/template/errorcodes-template.md

External links:

  • JS API template: https://gitcode.com/openharmony/docs/blob/master/zh-cn/contribute/template/native-template.md
  • ArkTS component API template: https://gitcode.com/openharmony/docs/blob/master/zh-cn/contribute/template/ts-template.md
  • Error code template: https://gitcode.com/openharmony/docs/blob/master/zh-cn/contribute/template/errorcodes-template.md

Bundled fallback templates:

  • references/js-template.md
  • references/ts-template.md
  • references/errorcodes-template.md

Try the in-repo template first. If it does not exist, try the external link. If that is still unavailable, fall back to the bundled template under references/. State the actual template source used in the final report.

Choose the template based on the interface category:

  • Regular JS APIs, C APIs, or module-oriented API docs: use the JS API template
  • ArkTS component interface docs: use the ArkTS component template
  • Error code docs: use the error code template

For ArkTS component detection, prefer the owning Kit:

  • If the interface belongs to ArkUI, treat it as an ArkTS component interface and use ts-template
  • If the interface clearly uses ArkUI component semantics such as component, property, event, Builder, or Modifier concepts, also treat it as an ArkTS component interface
  • For non-ArkUI Kits, default to regular API documentation unless the existing documentation structure clearly follows the ArkTS component template

Do not choose a template from the filename alone. Consider the Kit, interface type, current document structure, and d.ts content together.

Manual Review Focus

After the script finishes, focus manual review on the parts that are not reliable to automate:

  • prose clarity, ambiguity, terminology consistency, and typo-level language quality
  • whether examples are genuinely useful, runnable, and well explained
  • whether the document structure really follows the template in spirit, not just in surface markers
  • whether scenarios, constraints, preconditions, and failure modes are explained well enough for developers
  • whether the documented causes for each error code are truly the union of real triggering scenarios
  • whether the documentation matches implementation behavior, capability boundaries, and product changes
  • whether ArkTS component docs provide enough guidance on parameters, defaults, ranges, and edge behavior

Implementation Alignment Checks

Use implementation code to identify missing or incorrect documentation such as:

  • Incomplete feature scenarios, sub-scenarios, or functional coverage
  • Missing concept, principle, or usage-scenario explanations that leave developers without enough context
  • Product, interface, or behavior changes that were not synchronized into the docs
  • Missing environment requirements, specification limits, preconditions, or failure scenarios

If the implementation cannot be located from the current repository, pause this part and ask the user for the correct repository path.

Output Requirements

Produce a Markdown report with the following rules:

  • Do not list content that already complies
  • For each issue, include line number or location, issue description, reasoning or impact, suggested fix, and concrete wording when possible
  • If you can provide corrected text directly, do so
  • Separately note unchecked scope, missing inputs, or anything that cannot be confirmed

Preferred issue fields:

  • Location
  • Issue
  • Suggestion
  • Proposed Fix

Resource Usage

Read files under references/ only when needed. Do not load everything by default. If a template is long, search for the relevant section first and then read only the needed part.

Use scripts/check_api_doc_consistency.py whenever the user provides a d.ts file together with public/system/error Markdown paths. The script already covers the repetitive high-confidence checks, including:

  • d.ts tag extraction and @throws parsing
  • public/system placement and direction-of-link checks
  • structured field checks for @syscap, @permission, @atomicservice, @systemapi, model-only tags, @deprecated, and @useinstead
  • section-level and document-level error-code coverage
  • -sys.md naming, title, and Readme-CN.md entry checks
  • mixed-module note checks for system docs
  • required block checks in error-code documents
  • basic version-marker checks such as module since notes and <sup>x+</sup> presence
  • in-page and relative Markdown link resolution

For field-style checks, prefer the script result over manual keyword search. The current script parses labeled documentation fields such as 系统接口, 模型约束, and 需要权限, which reduces noise from unrelated prose matches.

For @since handling, interpret tags from the dynamic-API documentation perspective only:

  • @since x means the dynamic API starts at version x
  • @since x dynamic means the dynamic API starts at version x
  • @since x dynamic&static means both dynamic and static forms start at version x; for the current checker, use x as the dynamic version
  • @since x static is ignored by the current doc checker
  • @since x dynamiconly means the API is dynamic-only and starts at version x
  • @since x staticonly is ignored by the current doc checker

Do not treat static-only version tags as documentation-version requirements for the current checks.

Do not hardcode evolving template wording in SKILL.md. The script reads its change-prone literals from scripts/doc_check_rules.json.

When the in-repo template or external template changes:

  1. Compare the new template wording against scripts/doc_check_rules.json.
  2. Update scripts/doc_check_rules.json first if only the expected text or required blocks changed.
  3. Update scripts/check_api_doc_consistency.py only when the rule logic itself is no longer valid.
  4. When template files are available locally, run the script with --js-template, --ts-template, and --error-template so it can warn when the configured rules no longer match the current template text.

Run it like this:

python3 scripts/check_api_doc_consistency.py \
  --api /path/to/file.d.ts \
  --public-doc /path/to/public.md \
  --system-doc /path/to/system.md \
  --error-doc /path/to/error.md \
  --readme-doc /path/to/Readme-CN.md \
  --js-template /path/to/native-template.md \
  --ts-template /path/to/ts-template.md \
  --error-template /path/to/errorcodes-template.md

--readme-doc is optional. If omitted, the script tries to infer Readme-CN.md from the public/system doc directory. The template arguments are also optional, but provide an additional guard that warns when the rule file no longer matches the current template wording.

Treat the script output as the first pass. Do not duplicate those low-level rules manually in the report unless you are clarifying or confirming a script finding. Spend manual review time on semantic gaps, explanation quality, and implementation alignment instead.

平台分布

Claude

32.4%
按下载量换算49

Codex

31.54%
按下载量换算47

Cursor

17.53%
按下载量换算26

Gemini CLI

9.45%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills