先看看示例
作者提供的示例,实际效果取决于你的输入和使用工具。
输入
审查 docs 目录下的说明文档,检查语气、标题大小写、代码块语言标记与占位符写法。
输出
预期交付:按文件分组、带行号的规范问题清单(编辑说明,非实际运行结果)
方法说明
---
name: writing-guidelines
description: |
Review docs/prose for Writing Guidelines compliance. Use when asked to "review my docs", "check writing style", "audit prose", "review docs voice and tone", or "check this page against the writing handbook".
triggers:
- "review my docs"
- "check writing style"
- "audit prose"
- "review docs voice and tone"
- "writing handbook"
- "文档审查"
metadata:
author: vercel
version: "1.0.0"
argument-hint: <file-or-pattern>
od:
mode: prototype
surface: web
platform: desktop
category: documentation
upstream: "https://github.com/vercel-labs/writing-guidelines"
source-commit: 83e2316b034cf572400513538e4e4da01c4cc742
preview:
type: markdown
example_prompt: |
Review my documentation files for compliance with the Vercel Writing Guidelines — check voice, tone, formatting, and structure.
---
# Writing Guidelines
Review files for compliance with Writing Guidelines.
## How It Works
1. Load the pinned guidelines from [`references/guidelines.md`](references/guidelines.md) — this is the default, reproducible execution path
2. Optionally, fetch the latest guidelines from the upstream URL below and diff against the pinned snapshot to see if anything has changed
3. Read the specified files (or prompt user for files/pattern)
4. Check against all rules in the guidelines
5. Output findings in the terse `file:line` format
## Guidelines Source
**Default (pinned):** The vendored copy at [`references/guidelines.md`](references/guidelines.md) is the default execution path. It is a pinned snapshot of the upstream guidelines and guarantees the skill produces reproducible results in any runtime environment.
**Upstream (live):** For users who want the very latest rules, the live source is available at:
```
https://raw.githubusercontent.com/vercel-labs/writing-guidelines/main/command.md
```
Fetching the live version is optional — the pinned snapshot is always the baseline.
## Usage
When a user provides a file or pattern argument:
1. Load [`references/guidelines.md`](references/guidelines.md) as the default source
2. Optionally fetch the upstream URL to check for updates
3. Read the specified files
4. Apply all rules from the guidelines
5. Output findings using the format specified in the guidelines
If no files specified, ask the user which files to review.