acceptance-criteria-gen
Generates acceptance criteria tied to observable outcomes. Use when a request enters planning or solutioning and the brief has goals but not enough precise behavior to verify.
- License 许可
- MIT
- 所属仓库
- Eliyce/paqad-ai
- 最近更新
- 2026-11-13
- Stars
- ★ 8
- Forks
- 0
01 前言 Front Matter
- name
- acceptance-criteria-gen
- metadata
- { "cacheable": "false", "model_tier": "reasoning", "paqad-meta": "skill.meta.yaml", "output_format": "markdown" }
- description
- Generates acceptance criteria tied to observable outcomes. Use when a request enters planning or solutioning and the brief has goals but not enough precise behavior to verify.
02 资源文件 7
- 参考文档agents/openai.yaml130 B
- 资产文件assets/output.template.md294 B
- 参考文档references/criteria-template.md315 B
- 脚本scripts/extract-ac-ids.sh681 B
- 脚本scripts/lint-ac-output.sh2.2 KB
- 脚本scripts/next-ac-id.sh799 B
- 参考文档skill.meta.yaml348 B
03 SKILL.md 正文
What It Does
Turns a scoped request into testable acceptance criteria that describe observable behavior, guardrails, and failure handling without relying on implied implementation details.
Use This When
When a request is entering planning or solutioning and the current brief has goals but not enough precise behavior to verify. It is especially important before stories, test mapping, or handoff artifacts are written.
Inputs
- Read the active request, tracker entry, or plan summary first.
- Read the canonical module docs or feature spec that defines the current behavior.
- Read
references/criteria-template.mdbefore drafting criteria so wording stays consistent.
Procedure
- Run
scripts/extract-ac-ids.sh <spec-file>to get the set of AC ids already taken; never reuse a removed id. - For each new criterion, run
scripts/next-ac-id.sh <spec-file>to allocate the next free flat id. - List the user-visible outcomes and constraints; convert each into one observable Given/When/Then line using
assets/output.template.mdas the shape, ending each line with an explicit(proof: automated|manual|visual)tag. - Surface negative and edge paths with the shared rubric instead of relying on the happy path alone: run
edge-case-detection(runtime/base/skills/edge-case-detection/SKILL.md) over the same request as a sub-step. It is reused as-is (do not clone it) and its category set (empty, stale, loading, retry, permission, concurrency, rollback, integration, overflow, state-skip) already covers the paths acceptance criteria must guard. Follow each returned case'sApply To:routing: fold a case that changes an error, empty, or permission path the request actually touches into a flatAC-nnegative-path criterion here (Given the failing/empty/unauthorized condition, when …, then the observable guard holds); record a case that is a deliberate exclusion (an edge behaviour the change will not handle) under the spec's## Non-goalssection (parsed intoFeatureSpec.non_goals) rather than as a criterion. Drop cases that are not credible for this request, and drop criteria that describe implementation choices instead of behavior. - Validate the draft with
scripts/lint-ac-output.sh <draft-file>: exit 0 means the structural contract is met; non-zero means fix and re-lint before returning.
Output Contract
- Match
assets/output.template.md: a## Acceptance criteriaheading, then one flat- AC-N: Given …, when …, then … (proof: automated|manual|visual).bullet per criterion, ending with a## Coverage Notesblock. - Use FLAT
AC-Nidentifiers only. Dotted two-levelAC-N.Nids are forbidden: the freeze parser reads flat ids and would renumber or drop a dotted one, so a block passing this skill can never fail the freeze on shape. - Every criterion line carries an explicit
(proof: …)tag so the frozen criterion has a proof type. - Identifiers must be stable across spec revisions: removed criteria do not have their identifier reused.
- The output must pass
scripts/lint-ac-output.shwith exit 0 before returning.
Escalate / Stop Conditions
- Ask for clarification when the request does not define the actor, trigger, or expected result.
- Warn when canonical docs conflict with the requested behavior and note the drift explicitly.
- Stop short of inventing hidden business rules; record the gap instead.
Resources
references/criteria-template.mdscripts/extract-ac-ids.shscripts/next-ac-id.shscripts/lint-ac-output.shassets/output.template.mdruntime/base/skills/edge-case-detection/SKILL.mdruntime/capabilities/coding/checklists/edge-cases-coding.mdagents/openai.yaml
04 同仓库更多 Skills
sample-skill
Sample bundled skill fixture
processing-invoices
Turns a supplier invoice into one ledger line. Use when a supplier invoice arrives and needs booking.
processing-invoices
Turns a supplier invoice into one ledger line. Use when a supplier invoice arrives and needs booking.
understand-idea
Chat and Claude Code: Step 1 of the discover journey: clarifies the goal, who benefits, success and constraints into the idea block. Use when the journey directs it to step 1, not directly.
size-work
Chat and Claude Code: Suggest a size for a ticket from comparable finished work, as a labelled suggestion the team still owns. Use it when someone asks "how big is this?", "roughly how much work is ABC-12?", or wants a backlog item sized. It finds the team's sizing scale at first use, picks two to five of the closest finished tickets with links, and gives a size or range with the drivers behind it and a confidence of low, medium or high, lowered and explained when the area's documents are template text. Every result is labelled a suggested size, never a date or a commitment. It writes nothing into the size field unless the user says "set it", and it refuses to overwrite an existing size unless the user asks to replace it. Produces the sizing block of the record.
refine-ticket
Chat and Claude Code: Improve one or more existing tracker tickets without losing the author's intent. Use it when someone wants a ticket read, diagnosed and tidied up ("this ticket is vague", "fix up ABC-12", "split this, it's too big"). It reads each ticket in full and snapshots it with its last-updated time, says what is wrong with evidence, and proposes a field-by-field before and after change set limited to summary, description, labels, parent, links and new child tickets on a split. It writes nothing until an explicit "apply it" bound to that exact change set, re-checks the ticket for conflicting edits just before writing, never replaces rich descriptions with plain text, never deletes or closes a ticket, and reads each ticket back after applying. Produces the existing and changes blocks of the record.