Agent审查
- 作者仓库星标 428
- 作者更新于 实时读取
- 作者仓库 mellea
- 领域
- AI 智能
- 兼容 Agent
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- 信任分
- 88 / 100 · 社区维护
- 作者 / 版本 / 许可
- @generative-computing · 未声明 license
- Token 消耗评级
- 低消耗
- 接入复杂程度
- 需简单配置
- 是否需要外部 API Key
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 底层运行要求
- 无特殊要求
- 文件与系统权限
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 网络行为
- 仅限本地
- 安装命令数
- 26 条
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: skill-author
description: > Create new agent skills that work across Claude Code (CLI/IDE) and IBM Bob. Skills live under…
category: AI 智能
runtime: 无特殊运行时
---
# skill-author 输出预览
## PART A: 任务判断
- 适用问题:提示词、Agent 工作流、模型评估或自动化推理。
- 输入要求:目标材料、限制条件、期望输出和验收方式。
- 证据边界:围绕“Skill Location / Workflow / SKILL.md Frontmatter Schema”读取原文规则,不把推断写成作者承诺。
## PART B: 执行结果
- **01** 任务判断:确认你的需求是否属于提示词、Agent 工作流、模型评估或自动化推理,并标出输入、限制和预期结果。
- **02** 执行计划:优先按“Skill Location / Workflow / SKILL.md Frontmatter Schema”拆成步骤,说明每一步会读取什么、修改什么、产出什么。
- **03** 交付结果:给出可复制的命令、文件改动、检查清单或内容草稿,并说明如何继续迭代。
- **04** 风险边界:结合 读取文件、写入/修改文件、执行终端命令、主要在本地完成、通常不需要额外 API Key 给出执行前确认项。
## Running Rules
- 读取文件、写入/修改文件、执行终端命令;主要在本地完成;通常不需要额外 API Key。
- 先小样例验证,再放大到真实任务。
- 交付时同时给结果、检查口径和下一步迭代建议。 原文出现了 `/slash-command`、`/name` 这类斜杠命令;如果你的 Agent 支持命令触发,优先用命令开场,再补充目标和边界。
告诉 Agent 目标文件或材料、期望结果、不可改范围、是否允许联网或执行命令。本 Skill 的权限画像是:读取文件、写入/修改文件、执行终端命令。
先用一个小任务确认它会围绕“Skill Location / Workflow / SKILL.md Frontmatter Schema”工作;涉及文件或命令时,先看 diff、日志、预览或测试结果。
检查最终产物是否包含明确结果、必要证据和下一步动作;如果输出泛泛而谈,就补充输入、边界和验收标准后重跑。
---
name: skill-author
description: > Create new agent skills that work across Claude Code (CLI/IDE) and IBM Bob. Skills live under…
category: AI 智能
source: generative-computing/mellea
---
# skill-author
## 什么时候使用
- 把 AI / Agent方向的常用动作沉淀成 Agent 可调用的技能 适合处理AI Agent、提示词、模型评估与自动化推理,核心价值是把输入、判断、执行、验证和交付边界固定下来,避免 Agent 泛泛回答。 把任务拆成可执行、可检查…
- 面向提示词、Agent 工作流、模型评估或自动化推理,优先处理能明确输入、步骤和验收标准的工作。
## 需要提供什么
- 目标材料、目录范围、期望结果和不可改动内容。
- 是否允许联网、执行命令、读写文件或调用外部服务。
## 执行规则
- 围绕「Skill Location / Workflow / SKILL.md Frontmatter Schema」组织步骤,不把推断写成作者事实。
- 读取文件、写入/修改文件、执行终端命令;主要在本地完成;通常不需要额外 API Key。
- 先跑小样例,确认结果可检查后再扩大任务范围。
## 输出要求
- 给出最终产物、关键证据、验证方式和下一步动作。
- 信息不足时标记 unknown,不编造命令、平台或依赖。 作者原文负责流程事实;仓库文件负责来源和命令;流狐只补充适用场景、限制和质量判断。
skill "skill-author" {
输入层 -> 用户目标 + 目标文件 + 禁止范围 + 验收标准
上下文层 -> Skill Location / Workflow / SKILL.md Frontmatter Schema
规则层 -> SKILL.md 触发条件 / 执行顺序 / 输出格式
运行层 -> 无特殊运行时 | 读取文件、写入/修改文件、执行终端命令 | 主要在本地完成
安全层 -> 通常不需要额外 API Key + 小任务验证 + diff / 日志复核
输出层 -> 可复制结果 + 检查清单 + 下一步迭代
} Skill Authoring Meta-Skill
Create new agent skills that work across Claude Code (CLI/IDE) and IBM Bob.
Skill Location
Skills live under .agents/skills/<name>/SKILL.md.
Discovery configuration varies by tool:
- Claude Code: Add
"skillLocations": [".agents/skills"]to.claude/settings.json. Without this, Claude Code looks in.claude/skills/by default. - IBM Bob: Discovers
.agents/skills/natively per agentskills.io convention.
Both tools read the same SKILL.md format. Use the frontmatter schema below
to maximise compatibility.
Workflow
Name the skill — kebab-case, max 64 chars (e.g.
api-tester,audit-markers).Scaffold the directory:
.agents/skills/<name>/ ├── SKILL.md # Required — frontmatter + instructions ├── scripts/ # Optional — helper scripts └── templates/ # Optional — output templatesWrite SKILL.md — YAML frontmatter + markdown body (see schema below).
Dry-run review — mentally execute the skill against a realistic scenario before finalising. Walk through the procedure on a concrete example (a real file in the repo, not a hypothetical) and check for:
- Scaling gaps: Does the procedure work for 1 file AND 100 files? If the skill accepts a directory or glob, it needs a triage strategy (e.g., "grep first to find candidates, then deep-read only files with issues") — not just "read every file fully."
- Boundary ambiguity: If the skill defines categories or classifications, test the boundaries between adjacent categories with a real example. The edges are where agents will disagree or ask the user. Sharpen definitions until two agents reading the same test would classify it the same way.
- Stale references: If the skill describes project state ("this hook needs to be added", "this marker is not yet registered"), verify those statements are still true. Embed checks ("read conftest.py to confirm") rather than assertions that rot.
- Output format at scale: Run the report template mentally against the largest expected input. A per-function report for 5 files is fine; for 165 files it's unusable. Design output for the largest scope — summary table first, per-item detail only where issues exist.
- Format coverage: If the skill operates on multiple input formats (e.g.,
pytestmarklists AND# pytest:comments), verify each format is explicitly addressed in the procedure. Implicit coverage causes agents to skip or guess. - Rigid rules: If you wrote "always X" or "never Y", find the edge case where the rule is wrong. Add the escape hatch. E.g., "per-function only" should say "module-level is acceptable when every function qualifies."
Validate:
- Check the skill is discoverable: list files in
.agents/skills/. - Confirm no frontmatter warnings from the IDE.
- Verify the skill does not conflict with existing skills or
AGENTS.md.
- Check the skill is discoverable: list files in
SKILL.md Frontmatter Schema
Use only fields from the cross-compatible set to avoid IDE warnings.
Cross-compatible fields (use these)
| Field | Type | Purpose |
|---|---|---|
name |
string | Kebab-case identifier. Becomes the /slash-command. Max 64 chars. |
description |
string | What the skill does and when to trigger it. Be specific — agents use this to decide whether to invoke the skill automatically. |
argument-hint |
string | Autocomplete hint. E.g. "[file] [--dry-run]", "[issue-number]". |
compatibility |
string | Which tools support this skill. E.g. "Claude Code, IBM Bob". |
disable-model-invocation |
boolean | true = manual /name only, no auto-invocation. |
user-invocable |
boolean | false = hidden from / menu. Use for background knowledge skills. |
license |
string | SPDX identifier if publishing. E.g. "Apache-2.0". |
metadata |
object | Free-form key-value pairs for tool-specific or custom fields. |
Tool-specific fields (put under metadata)
These are useful but not universally supported — nest them under metadata:
metadata:
version: "2026-03-25"
capabilities: [bash, read_file, write_file] # Bob/agentskills.io
Claude Code's allowed-tools and context/agent fields are recognised by
Claude Code but may trigger warnings in Bob's validator. If needed, add them
to metadata or accept the warnings.
Example frontmatter
---
name: my-skill
description: >
Does X when Y. Use when asked to Z.
argument-hint: "[target] [--flag]"
compatibility: "Claude Code, IBM Bob"
metadata:
version: "2026-03-25"
capabilities: [bash, read_file, write_file]
---
SKILL.md Body Structure
After frontmatter, write clear markdown instructions the agent follows:
- Context section — what the skill operates on, key reference files.
- Procedure — numbered steps the agent follows. Be explicit about decisions and edge cases.
- Rules / constraints — hard rules the agent must not break.
- Output format — what the agent should produce (report, edits, summary).
Guidelines
- Be specific. Vague instructions produce inconsistent results across models. "Check if markers are correct" is worse than "Compare the test's assertions to the qualitative decision rule in section 3."
- Reference project files. Point to docs, configs, and examples by relative
path so the agent can read them. E.g. "See
test/MARKERS_GUIDE.mdfor the full marker taxonomy." - Declare scope boundaries. State what the skill does NOT do. E.g. "This skill does not modify conftest.py — flag infrastructure issues as notes."
- Use
$ARGUMENTSfor user input.$ARGUMENTSis the full argument string;$1,$2etc. are positional. - Keep SKILL.md under 500 lines. Use supporting files for large reference material (link to them from the body).
- Portability: use relative paths from the repo root, never absolute paths.
- Formatting: use YYYY-MM-DD for dates, 24-hour clock for times, metric units.
- Design for variable scope. If the skill can operate on a single file or an entire directory, provide a triage strategy for the large case. Agents given "audit everything" with no prioritisation will either read every file (slow) or skip files (incomplete).
- Sharpen category boundaries. When defining classifications, the boundary between adjacent categories causes the most disagreement. Add a "key distinction from X" sentence for each pair of adjacent tiers.
- Avoid temporal assertions. Don't write "this conftest hook needs to be added" — write "check whether conftest.py already has the hook." State that goes stale silently is worse than no guidance at all.
- Qualify absolutes. "Always X" and "never Y" rules need escape hatches for the common exception. E.g., "per-function only — unless every function in the file qualifies, in which case module-level is acceptable."
先判断是否适合
作者设计意图
作者的方法与取舍
边界和复核