Token导航 LogoToken导航TokenDH.com
待分类external-servicegithub未标认证来源可访问许可证需确认审计通过

acceptance-criteria-define验收标准定义

Agent Skill

acceptance-criteria-define 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

233

周安装

10

GitHub Stars

2

下载量

82
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:acceptance-criteria-define(验收标准定义)
来源仓库:https://github.com/giladresisi/ai-dev-env
仓库路径:skills/acceptance-criteria-define
安装命令:
npx skills add https://github.com/giladresisi/ai-dev-env --skill acceptance-criteria-define
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/giladresisi/ai-dev-env --skill acceptance-criteria-define

简介

用于根据任务描述或计划文件定义验收标准,适合在开发流程中明确功能需求和完成条件。

  • 适用于需要从计划文档中提取或生成结构化验收标准的场景,支持基于 .agents/plans/*.md 文件自动识别。
  • 通过分析上下文中的任务描述或计划文件,输出清晰的验收标准列表,便于后续验证和测试。
  • 安装命令:npx skills add https://github.com/giladresisi/ai-dev-env --skill acceptance-criteria-define
  • 需确认是否读取本地文件或访问 GitHub 仓库,避免触发未授权的文件操作或网络请求。

SKILL.md

Acceptance Criteria: Define

Step 0: Check for Context

If no request or task description was provided as context (the skill was invoked with no arguments and nothing in the conversation describes a feature, task, or plan to evaluate):

  • Output: "This skill needs a request or task description as context. Please describe the feature or task you want acceptance criteria for, or point me to a plan file."
  • STOP — do not continue.

Step 1: Identify the Plan File (if any)

Check whether the context references an implementation plan file:

  • Look for a file path ending in .md mentioned in the request or conversation (e.g., .agents/plans/feature-name.md)
  • Look for any .agents/plans/*.md file that matches the feature being discussed

If a plan file is identified:

  • Read the entire plan file now
  • Scan for an existing ## ACCEPTANCE CRITERIA or ## Acceptance Criteria section
  • If found, extract and note the existing criteria — these are your starting point
  • Also scan the ## TESTING STRATEGY, ## VALIDATION COMMANDS, and ## Feature Description sections to understand the full scope

If no plan file:

  • Proceed with the request description from conversation context only

Step 2: Derive Acceptance Criteria

Based on the context (plan file, feature description, or request in conversation), derive the acceptance criteria.

Think through each of these dimensions and produce criteria for whichever apply:

Functional Correctness

  • What must the feature actually do? (the happy paths)
  • What inputs/outputs define success?
  • What specific behaviors are required vs. optional?

Error Handling & Edge Cases

  • What happens on bad input, missing data, or failures?
  • What state should the system be in after an error?

Integration & End-to-End Flow

  • What connected systems must work together for the feature to be considered complete?
  • What does "it works" look like from the user's perspective end-to-end?

Validation & Test Coverage

  • Which test levels are required: unit, integration, E2E?
  • What automated validation commands should pass before accepting the work?
  • Are there manual steps required for final verification?

Non-Functional Requirements

  • Performance: any latency, throughput, or load requirements?
  • Security: any auth, data handling, or secret management requirements?
  • Observability: logging, error reporting, tracing requirements?

Not In Scope

  • Explicitly list what is NOT expected — this prevents scope creep during review

Format each criterion as a concrete, testable statement, not a vague goal.

Good: "The /mcp/mcp endpoint returns HTTP 200 with a valid MCP tools list when the server is running" Bad: "The server should work correctly"


Step 3: Present Criteria to User

Output your derived criteria in a clear, readable list. Use this format:

## Proposed Acceptance Criteria

### Functional
- [ ] <criterion>
- [ ] <criterion>

### Error Handling
- [ ] <criterion>

### Integration / E2E
- [ ] <criterion>

### Validation
- [ ] <criterion> — verified by: `<command or test>`

### Out of Scope
- <item> — not required for this task

Then use AskUserQuestion to ask the user:

Question: "Do these acceptance criteria look right, or would you like to define them yourself?" Options:

  1. "Looks good — use these" — proceed with the proposed criteria as-is
  2. "I want to add/change something" — user will provide modifications in free text
  3. "Let me define them myself" — skip the proposed criteria entirely and wait for the user to write their own

Step 4: Finalize the Criteria

If user selected option 1 (use as-is):

  • Use the proposed criteria verbatim

If user selected option 2 (add/change):

  • Read the user's modifications from their reply
  • Merge them with the proposed criteria:

- Additions: append to the relevant section - Changes: replace the relevant criteria - Removals: remove any criteria the user rejected

  • Output the final merged list to the user before writing

If user selected option 3 (define themselves):

  • Wait for the user to provide the criteria
  • Do not invent or add criteria they did not provide
  • Use exactly what the user wrote

Step 5: Write the Criteria

Case A: A plan file was identified

Rewrite the ## ACCEPTANCE CRITERIA section at the bottom of the plan file.

  • If the section already exists: replace its entire contents with the final criteria
  • If the section does not exist: append it before ## COMPLETION CHECKLIST if that section exists, otherwise at the very end of the file
  • Use the exact heading ## ACCEPTANCE CRITERIA
  • Format each criterion as a - [] checkbox item
  • Include the "Out of Scope" list as a plain bullet list (not checkboxes) under a ### Out of Scope subsection

Use the Edit tool to make this change — read the file first if you have not already.

After writing, output: "Acceptance criteria written to <plan-file-path>."


Case B: No plan file — write to acceptance_criteria.md

Check if acceptance_criteria.md exists in .agents/ (preferred) or the project root.

If the file does NOT exist:

Create .agents/acceptance_criteria.md with this structure:

# Acceptance Criteria

---

## <short title derived from the request> — <date>

### Context
<2–4 sentence summary of the request or feature this criteria applies to>

### Criteria

#### Functional
- [ ] <criterion>

#### Error Handling
- [ ] <criterion>

#### Integration / E2E
- [ ] <criterion>

#### Validation
- [ ] <criterion> — verified by: `<command>`

#### Out of Scope
- <item>

If the file ALREADY EXISTS:

Read the file first. Append a new section after the last existing section:

---

## <short title derived from the request> — <date>

### Context
<summary>

### Criteria
...

Do NOT modify any existing sections.

After writing, output: "Acceptance criteria written to .agents/acceptance_criteria.md."


Step 6: Summary

Output a brief confirmation:

Acceptance criteria saved.

File: <path>
Criteria: <N> items
Next step: Run /execute <plan-file> to implement, or share the criteria with the agent executing this work.

If this skill was invoked as part of a planning or execution flow, return control to the calling skill now.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.37%
按下载量换算27

Claude

31.25%
按下载量换算26

Cursor

16.99%
按下载量换算14

Gemini CLI

10.18%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills