用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Melvynx/benchmarks --skill add-documentation命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Run reproducible coding-model benchmarks from a model name, CLI harness, and task list. Use when creating, executing, resuming, or verifying benchmark runs with Codex, Claudex via ccx, Claude Code, or Cursor Agent in this repository.
Launch and verify the live Faultline earthquake explorer in a real browser.
Use when optimizing Convex database read bandwidth, documents-read cost, query indexes, full-table scans, function-level usage dashboard findings, or code that uses .filter(), unbounded .collect(), N+1 reads, or expensive reactive Convex queries.
基于 SOC 职业分类
正在显示 SKILL.md
| name | add-documentation |
| description | Add or update documentation in content/docs/ for features, APIs, or tools |
<quick_start> MANDATORY: Use the script to create new documentation files:
.agents/skills/add-documentation/scripts/create-doc.sh <filename> "<title>" "<description>"
# Example
.agents/skills/add-documentation/scripts/create-doc.sh dialog-system "Dialog System" "Global dialog system for modals"
This creates content/docs/<filename>.mdx with proper structure.
Template structure (auto-generated by script):
---
title: "Feature Name"
description: "Brief description of what this feature does"
keywords: ["keyword1", "keyword2", "feature"]
tags: ["developer", "components"]
order: 10
subcategory: "Components"
---
Brief introduction explaining what this feature does and why it's useful.
## Installation
How to set up or enable this feature (if needed).
## Import
\`\`\`tsx
import { Component } from "@/features/feature-name";
\`\`\`
## Usage
### Basic Example
\`\`\`tsx
<Component prop="value" />
\`\`\`
### Advanced Example
\`\`\`tsx
<Component
prop="value"
onAction={async () => {
await doSomething();
}}
/>
\`\`\`
## API Reference
| Option | Type | Description |
| ------ | -------- | ----------------------- |
| `prop` | `string` | Description of the prop |
## Best Practices
- Tip 1
- Tip 2
Run to verify: pnpm dev and check /docs/[slug]
</quick_start>
<before_writing> CRITICAL: Think before documenting
Ask yourself these questions:
<frontmatter_reference>
| Field | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Display title for the doc |
description | string | Yes | Brief description (shown in search, SEO) |
keywords | string[] | Yes | Search keywords |
tags | string[] | Yes | Categories: developer, guide, api, components |
order | number | Yes | Sort order in navigation (lower = first) |
subcategory | string | Yes | Grouping: Guide, Components, API, Tools |
| </frontmatter_reference> |
<structure_guidelines> <section_order>
<code_examples>
<anti_patterns> Documentation without context:
## Usage
Use `dialogManager.confirm()` to show a dialog.
Documentation with context and example:
```mdx
## Usage
The Dialog Manager handles confirmation dialogs with automatic loading states.
```tsx dialogManager.confirm({ title: "Delete Item", description: "This cannot be undone.", action: { label: "Delete", onClick: async () => { await deleteItem(); }, }, }); ```
</right>
<wrong>
Overly complex first example:
```mdx
## Basic Usage
\`\`\`tsx
<Component
prop1="value"
prop2={42}
prop3={{ nested: true }}
onAction={handleAction}
variant="complex"
/>
\`\`\`
Start with minimal example:
```mdx
## Basic Usage
\`\`\`tsx
\`\`\`
```tsx ```
</right>
</anti_patterns>
<existing_docs>
Current documentation files in `content/docs/`:
- `getting-started.mdx` - Project setup guide
- `auth-components.mdx` - Authentication components
- `changelog.mdx` - Changelog page documentation
- `contact-components.mdx` - Contact form components
- `dialog-manager.mdx` - Dialog system documentation
- `zod-route.mdx` - Route validation with Zod
- `layout-components.mdx` - Layout components
- `markdown-components.mdx` - Markdown rendering
- `embedding.mdx` - Testimonial embedding
- `file-adapters.mdx` - File storage adapters
- `api-testimonials-*.mdx` - API documentation
</existing_docs>
<reference_guides>
For detailed documentation patterns and complete examples:
- **`references/documentation-format.md`** - Complete frontmatter reference and structure guidelines
- **`templates/doc-template.mdx`** - Base template used by the script
</reference_guides>
<critical_rules>
**NEVER create documentation files manually. ALWAYS use the script:**
```bash
.agents/skills/add-documentation/scripts/create-doc.sh <filename> "<title>" "<description>"
Then edit the generated file to add content. </critical_rules>
<success_criteria>
content/docs/ with .mdx extension