一键导入
add-skill
Create or improve agent skills. Load when creating SKILL.md files, writing skill descriptions, or structuring skill content for OpenCode or Claude.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create or improve agent skills. Load when creating SKILL.md files, writing skill descriptions, or structuring skill content for OpenCode or Claude.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Build stateful AI agents using the Cloudflare Agents SDK. Load when creating agents with persistent state, scheduling, RPC, MCP servers, email handling, or streaming chat. Covers Agent class, AIChatAgent, state management, and Code Mode for reduced token usage.
Reviews code changes for bugs, security regressions, type-safety issues, and maintainability. Use when asked to review uncommitted changes, the last commit, a PR/MR, a diff, or specific changed files.
Performs security-focused differential review of code changes (PRs, commits, diffs). Load for security audit, regression review, auth/crypto/access-control changes, validation removal, blast-radius analysis, adversarial review, or comprehensive markdown reports. Use standard code-reviewer for ordinary quick reviews.
Create and review Cloudflare Durable Objects. Use when building stateful coordination (chat rooms, multiplayer games, booking systems), implementing RPC methods, SQLite storage, alarms, WebSockets, or reviewing DO code for best practices. Covers Workers integration, wrangler config, and testing with Vitest.
Manages GitLab merge requests, CI/CD pipelines, and issues via glab CLI. Load before running glab commands, creating MRs, debugging pipeline failures, checking CI status, or any GitLab operation. Triggers on "merge request", "pipeline", "CI failure", "glab", or when git remote contains "gitlab".
Runs durable, long-running objectives through Codex-style goal continuation. Load when the user invokes /goal, creates or resumes a persistent goal, updates an active objective, asks for goal status, or needs a completion/budget/blocked audit. Uses goal runtime tools when available and prevents premature handoff by continuing checkpoint work until a real stop rule applies.
| name | add-skill |
| description | Create or improve agent skills. Load when creating SKILL.md files, writing skill descriptions, or structuring skill content for OpenCode or Claude. |
Skills extend agent capabilities with domain-specific knowledge. Use skills for procedural knowledge the agent lacks—not for concepts it already understands.
If guidance is project-specific or one-off, use INSTRUCTIONS.md or inline context instead.
Skill work is prompt engineering plus evaluation. Treat every skill as a behavioral artifact: define when it should trigger, what better behavior it should cause, how to verify that behavior, and how to avoid overfitting one example.
references/ and deterministic repeated work in scripts/.Every SKILL.md must start with YAML frontmatter on line 1:
---
name: my-skill-name
description: What this skill does and when to use it. Third-person.
---
Field requirements:
name: lowercase, hyphens only, max 64 chars, no reserved words ("anthropic", "claude")description: max 1024 chars, specific triggers + capabilitiesskill-name/
├── SKILL.md # Required. Target under 200 lines.
├── references/ # Optional detailed content, one level deep.
├── scripts/ # Optional deterministic helpers.
└── evals/ # Optional behavior/trigger tests.
Use references/ when SKILL.md exceeds 200 lines. Add scripts when multiple evals would make the agent recreate the same helper.
The description determines when the skill activates. Include both what it does and when to use it.
Always use third-person (the description is injected into the system prompt):
| Quality | Example |
|---|---|
| Good | Manages GitLab MRs and pipelines via glab CLI. Load before running glab commands. |
| Good | Analyzes web performance with Chrome DevTools MCP. Use when auditing page load or Lighthouse scores. |
| Bad | I help you with GitLab operations. |
| Bad | Useful for various tasks. |
Include key terms users might mention: tool names, file extensions, specific operations. Make descriptions slightly assertive when under-triggering would be costly: “Load before…” or “Use when…” is better than “Helpful for…”.
Also write near-miss boundaries when skills overlap: “Use X for security PR audits; use Y for normal code review.”
High freedom (multiple valid approaches):
Review code for potential bugs, readability, and adherence to project conventions.
Medium freedom (preferred pattern with variation):
Use pdfplumber for text extraction. For scanned PDFs requiring OCR, use pdf2image instead.
Low freedom (fragile operations):
Run exactly: `python scripts/migrate.py --verify --backup`
Do not modify flags.
For CLIs and APIs, provide lookup tables:
| Task | Command |
|------|---------|
| Check status | `glab ci status` |
| View logs | `glab ci trace <job>` |
| Retry job | `glab ci retry <job>` |
Check requirements before proceeding:
## FIRST: Verify Installation
Run this before any commands. If it fails, STOP—this skill doesn't apply.
\`\`\`bash
glab --version
\`\`\`
For multi-step tasks, provide a copyable checklist:
## Workflow
Copy this checklist to track progress:
\`\`\`
- [ ] Step 1: Analyze input
- [ ] Step 2: Validate mapping
- [ ] Step 3: Apply changes
- [ ] Step 4: Verify output
\`\`\`
For each new or materially changed skill, add 2-5 realistic behavior evals when practical:
{
"skill_name": "example-skill",
"evals": [
{
"id": "realistic-case",
"prompt": "Real user-style task prompt",
"expected_output": "Observable behavior that should improve with the skill",
"files": [],
"assertions": []
}
]
}
For trigger tuning, create 16-20 realistic prompts split between should_trigger: true and tricky near misses with should_trigger: false. Prefer prompts that look like real user requests, not abstract labels.
When iterating, generalize from eval failures. Do not add brittle instructions that only fix one fixture.
Show input/output pairs instead of abstract descriptions:
**Input**: Added user authentication with JWT tokens
**Output**:
\`\`\`
feat(auth): implement JWT-based authentication
\`\`\`
Before finalizing a skill:
---name is lowercase with hyphens onlydescription includes triggers and capabilities (third-person)references/ if larger)