跳到主内容
智客 ZICQ

技能库 智客分类:文档办公 docs-review

文件审查

审查文档更改是否符合Metabase写作风格指南. 用于审查拖动请求、文件或包含文档标记下文件的 diffs .

1934 安装量

官方网址:skills.sh

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

审查文件更改是否符合Metabase编写样式指南

何时用

审查拖动请求、文件或包含文档标记下文件的 diffs

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:Documentation Review Skill、Review mode detection、Review process、Review checklist、Quick scan table、Feedback format。

文件分析

文件分析:这是一份仅含 SKILL.md 的指令型技能,代理激活后整份正文进入上下文。

官方 description(原文)

Review documentation changes for compliance with the Metabase writing style guide. Use when reviewing pull requests, files, or diffs containing documentation markdown files.

Documentation Review SkillReview mode detectionReview processReview checklistQuick scan tableFeedback formatLocal review mode formatIssuesPR review mode formatFinal check

· allowed-tools:Read, Grep, Bash, Glob

来源分类:skills.sh agent-skill

SKILL.md 与 Agent 调用

官方规范 ↗
name
docs-review
description
Review documentation changes for compliance with the Metabase writing style guide. Use when reviewing pull requests, files, or diffs containing documentation markdown files.
allowed-tools
Read, Grep, Bash, Glob实验字段,支持情况取决于客户端;字段声明本身不会授予工具权限。
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「docs-review」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-4c019cd9ed09170c-%E6%96%87%E4%BB%B6%E5%AE%A1%E6%9F%A5.html
请存为 .cursor/skills/docs-review/SKILL.md 或 .claude/skills/docs-review/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。

GitHub 完整包 ↗

终端安装 · Skills CLI

需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。

npx skills add 'https://github.com/metabase/metabase' --list

npx skills add 'https://github.com/metabase/metabase' --skill 'docs-review'

CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。

阅读排版

name: docs-review description: Review documentation changes for compliance with the Metabase writing style guide. Use when reviewing pull requests, files, or diffs containing documentation markdown files. allowed-tools: Read, Grep, Bash, Glob

Documentation Review Skill

@./../_shared/metabase-style-guide.md

Review mode detection

IMPORTANT: Before starting the review, determine which mode to use:

  1. PR review mode: If the mcp__github__create_pending_pull_request_review tool is available, you are reviewing a GitHub PR

    • Use the pending review workflow to post all issues as one cohesive review
    • Follow the workflow steps in "PR review mode format" below
  2. Local review mode: If the MCP tool is NOT available, output issues in the conversation

    • Format all issues in a numbered markdown list (as described in "Feedback format" below)

Review process

  1. Detect review mode - Check if mcp__github__create_pending_pull_request_review is available
  2. Read the changes through once to understand intent
  3. Check all issues that violate style guide or significantly impact readability
  4. Only flag issues worth mentioning - if it won't make a material difference to the reader, skip it
  5. REQUIRED: Number ALL feedback sequentially - Start from Issue 1 and increment for each issue found

Review checklist

Run through the diff looking for these issues:

Tone and voice:

  • [ ] Formal/corporate language ("utilize" not "use", "offerings", etc.)
  • [ ] "Users" instead of "people" or "companies"
  • [ ] Excessive exclamation points or overly peppy tone
  • [ ] Telling readers something is cool instead of showing them

Structure and clarity:

  • [ ] Important information buried instead of leading
  • [ ] Verbose text that adds little value
  • [ ] Paragraphs without clear purpose
  • [ ] Vague headings that don't convey the point
  • [ ] Instructions explain "why" before telling "what to do"
  • [ ] Tasks described as "easy" or "simple"

Links and references:

  • [ ] Linking the word "here" instead of descriptive text
  • [ ] Links in headings (unless entire heading is a link)

Formatting:

  • [ ] Ampersands as "and" substitute (except proper nouns)
  • [ ] Inconsistent list formatting

Code and examples:

  • [ ] Code examples that don't work or would error
  • [ ] Commands not in execution order
  • [ ] Full-width screenshots instead of scoped UI elements
  • [ ] Excessive or unnecessary images

Sentence construction:

  • [ ] Overuse of pronouns when introducing new terms

Quick scan table

| Pattern | Issue | | ----------------------------- | --------------------------------------------- | | we can do X, our feature | Should be "Metabase" or "it" | | click here, read more here | Need descriptive link text | | easy, simple, just | Remove condescending qualifiers | | users | Should be "people" or "companies" if possible |

Feedback format

MANDATORY REQUIREMENT: Every single issue MUST be numbered sequentially starting from Issue 1.

This numbered format is NON-NEGOTIABLE. It allows users to efficiently reference specific issues (e.g., "fix issues 1, 3, and 5") and track which feedback has been addressed.

Local review mode format

When outputting issues in the conversation (local mode), use this format:

## Issues

**Issue 1: [Brief title]**
Line X: Succinct description of the issue
[code or example]
Suggested fix or succinct explanation

**Issue 2: [Brief title]**
Line Y: Description of the issue
Suggested fix or explanation

**Issue 3: [Brief title]**
...

Examples:

Issue 1: Formal tone Line 15: This could be more conversational. Consider: "You can't..." instead of "You cannot..."

Issue 2: Vague heading Line 8: The heading could be more specific. Try stating the point directly: "Run migrations before upgrading" vs "Upgrade process"

PR review mode format

When posting to GitHub (PR mode), use the pending review workflow:

Workflow steps:

  1. Start a review: Use mcp__github__create_pending_pull_request_review to begin a pending review

    • This creates a draft review that won't be visible until submitted
  2. Get diff information: Use mcp__github__get_pull_request_diff to understand the code changes and line numbers

    • This helps you determine the correct file paths and line numbers for comments
  3. Identify ALL issues: Read through all changes and identify every issue worth mentioning

    • Collect all issues before posting any comments
    • Number them sequentially (Issue 1, Issue 2, Issue 3, etc.)
  4. Add review comments: Use mcp__github__add_pull_request_review_comment_to_pending_review for each issue

    • CRITICAL: Post ALL comments in a SINGLE response using multiple tool calls in parallel
    • Each comment should reference a specific file path and line number from the diff
    • Start each comment body with **Issue N: [Brief title]**
    • Include the description and suggested fix
  5. Submit the review: Use mcp__github__submit_pending_pull_request_review to publish all comments at once

    • Use event type "COMMENT" (NOT "REQUEST_CHANGES") to make it non-blocking
    • Do NOT include a body message - Leave the body empty or omit it entirely
    • All comments will appear together as one cohesive review

Comment format example:

**Issue 1: Formal tone**

This could be more conversational. Consider: "You can't..." instead of "You cannot..."

IMPORTANT:

  • Each issue gets its own review comment attached to the pending review
  • Number ALL comments sequentially (Issue 1, Issue 2, Issue 3, etc.)
  • Always start the comment body with **Issue N: [Brief title]**
  • MUST add all comments in parallel in a single response - Do NOT add them one after another in separate responses
  • Do NOT output a summary message to the conversation - only post GitHub review comments
  • When submitting the review, do NOT include a body parameter (or leave it empty) to avoid cluttering the PR with summary text
  • The review will appear as a single review with multiple comments when submitted

Final check

  1. Remove any issues from your assessment that won't make a material difference to the reader if addressed. Only flag issues worth the author's time to fix.
  2. Verify all issues are numbered sequentially starting from Issue 1 with no gaps in numbering.
  3. Confirm the format exactly matches: **Issue N: [Brief title]** where N is the issue number.
  4. In PR mode: Verify each issue was posted as a separate GitHub comment (not output to conversation).

相关技能

文档办公

肿瘤Ontology

为结构化的代理内存和可堆肥技能所打入的知识图. 在创建/征服实体(Person, project, Task, Evention, Document)时使用,链接相关对象,强制约束,规划多步动作作为图变,或技能需要共享状态时使用. 触发到"记住","我知道什么","链接X到Y",…

文档办公

纳诺PdfNano Pdf

使用纳米-pdf CLI编辑带有自然语言指令的PDF.

文档办公

单词 / DOCXWord / DOCX

创建,检查,并编辑有可靠样式的Microsoft Word文档和DOCX文件,编号,跟踪更改,表格,章节,并进行相容性检查. 当 (1) 任务涉及 Word 或 ".docx " 时使用; (2) 文件包括跟踪的更改,评论,字段,表格,模板,或页面布局限制; (3) 文档必须在不…

文档办公

百度搜索Baidu Search

使用Baidu AI搜索引擎(BDSE)搜索网页. 用于实时信息、文件或研究专题.