[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M736J6BQJAEV8H7DZGXW5AF6":3,"skill-same:01M736J6BQJAEV8H7DZGXW5AF6":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M736J6BQJAEV8H7DZGXW5AF6","criteria",null,"Translate a resolved feature specification into complete, traceable acceptance criteria in EARS form. For decomposed features, process each use case independently and write acceptance criteria beside its spec while using the feature-level spec for shared context and constraints. Use after the spec step and before rules, review, and planning.","markpollack\u002Fagent-judge-tutorial","markpollack","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F247466?v=4","01M736J0CPEDMTXXKE50KECFAD","Mark Pollack","01M736J0DRJPW0DPFSK9A0JZVN",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmarkpollack\u002Fagent-judge-tutorial\u002Fblob\u002Fmain\u002Fcase-studies\u002Fspec-driven-petclinic\u002Ffixtures\u002Fpetclinic\u002Fappointment-scheduling-spec-with-usecases\u002F.agents\u002Fskills\u002F02-criteria\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: criteria\ndescription: Translate a resolved feature specification into complete, traceable acceptance criteria in EARS form. For decomposed features, process each use case independently and write acceptance criteria beside its spec while using the feature-level spec for shared context and constraints. Use after the spec step and before rules, review, and planning.\n---\n\n# Acceptance Criteria Skill\n\nTranslate the resolved specification into independently testable, implementation-agnostic acceptance criteria using EARS templates.\n\nFor decomposed features, treat each use case as the primary unit of acceptance criteria and traceability.\n\nPipeline position:\n\nproposal → spec → **criteria** → rules → review → plan\n\n# Role\n\nTranslate specified behaviors into testable acceptance criteria.\n\nDo not invent product decisions.\n\nIf a behavior cannot be expressed as a testable criterion without making a new product decision, route the gap back to the spec step.\n\n# Inputs\n\nSpecifications live under:\n\n```text\nspec\u002F\n└── \u003Cfeature-name>\u002F\n    ├── proposal.md\n    ├── spec.md\n    ├── \u003Cuse-case-name>\u002F\n    │   └── spec.md\n    ├── \u003Cuse-case-name>\u002F\n    │   └── spec.md\n    └── ...\n```\n\nThe feature-level spec is:\n\n`spec\u002F\u003Cfeature-name>\u002Fspec.md`\n\nThe proposal is:\n\n`spec\u002F\u003Cfeature-name>\u002Fproposal.md`\n\nFor decomposed features, each use-case spec is:\n\n`spec\u002F\u003Cfeature-name>\u002F\u003Cuse-case-name>\u002Fspec.md`\n\nThe `Behaviors to verify` section of each use-case spec is the primary contract.\n\nThe feature-level spec provides shared context such as:\n\n- cross-cutting decisions\n- explicit feature-wide assumptions\n- use-case relationships\n- out-of-scope decisions\n- external dependencies\n\nSpec takes precedence over proposal where they disagree.\n\n# Determine Processing Mode\n\nRead the feature-level spec first.\n\nIf it contains use cases, process each use case independently.\n\nFor each use case:\n\n1. Read the feature-level spec.\n2. Read the use-case spec.\n3. Read the proposal only when additional context is useful.\n4. Extract acceptance criteria for that use case.\n5. Write `criteria.md` beside that use-case spec.\n\nExample:\n\n```text\nspec\u002F\n└── smart-appointment-scheduling\u002F\n    ├── proposal.md\n    ├── spec.md\n    │\n    ├── request-appointment\u002F\n    │   ├── spec.md\n    │   └── criteria.md\n    │\n    ├── suggest-appointment-slot\u002F\n    │   ├── spec.md\n    │   └── criteria.md\n    │\n    └── confirm-appointment\u002F\n        ├── spec.md\n        └── criteria.md\n```\n\nDo not produce one feature-wide `criteria.md` when the feature has separate use cases.\n\nIf the feature was intentionally not decomposed, write:\n\n`spec\u002F\u003Cfeature-name>\u002Fcriteria.md`\n\n# Scope Isolation\n\nWhen processing a use case, generate criteria only for behaviors owned by that use case.\n\nDo not copy criteria from other use cases merely because they are related.\n\nUse feature-level decisions only when they constrain the current use case.\n\nExample:\n\nIf the feature-level spec states:\n\n> Only one appointment slot may be presented at a time.\n\nand that constraint affects `suggest-appointment-slot`, create acceptance criteria for it there.\n\nDo not repeat the same criterion in unrelated use cases.\n\n# Cross-Use-Case Behavior\n\nSome observable behavior may arise specifically from the relationship between use cases.\n\nAssign the criterion to the use case where the observable outcome occurs.\n\nFor example:\n\n- rejecting a slot causes another slot to become eligible  \n  → belongs to `reject-suggested-slot`\n\n- confirming a slot prevents it from being offered again  \n  → belongs to `confirm-appointment`\n\nDo not create a feature-level criterion solely because multiple use cases participate in the behavior.\n\nIf ownership cannot be determined without a product decision, route the ambiguity back to the spec step.\n\n# EARS Templates\n\nUse the smallest template that fits the requirement.\n\nDo not invent new templates.\n\n## Ubiquitous\n\nAlways-true behavior:\n\n`The \u003Csystem> shall \u003Cresponse>.`\n\n## Event-driven\n\nTriggered by an event:\n\n`When \u003Ctrigger>, the \u003Csystem> shall \u003Cresponse>.`\n\n## State-driven\n\nActive during a state:\n\n`While \u003Cstate>, the \u003Csystem> shall \u003Cresponse>.`\n\n## Optional feature\n\nApplies when a feature is included:\n\n`Where \u003Cfeature is included>, the \u003Csystem> shall \u003Cresponse>.`\n\n## Unwanted behavior\n\nExplicit handling of an undesired trigger:\n\n`If \u003Ctrigger>, then the \u003Csystem> shall \u003Cresponse>.`\n\n## Combined\n\nState plus event:\n\n`While \u003Cstate>, when \u003Ctrigger>, the \u003Csystem> shall \u003Cresponse>.`\n\nExample:\n\n```text\nIf an appointment request contains no usable availability constraints,\nthen the scheduling system shall reject the request and report that\navailability information is required.\n```\n\n# Patterns\n\n## Boundary\n\nFor any bounded value, write three criteria:\n\n1. one within bounds\n2. one at the boundary\n3. one beyond the boundary\n\nDo this only when the specification defines or clearly implies the bound.\n\nDo not invent numeric limits.\n\n## Error\n\nUse the Unwanted behavior template.\n\nSpecify what the system shall do, not merely what it shall avoid.\n\nDefine atomicity when relevant:\n\n- all-or-nothing\n- partial completion with reported failures\n\n## State transition\n\nWrite one criterion per transition.\n\nExample:\n\n`While an appointment proposal is pending, when the pet owner confirms it, the scheduling system shall transition the appointment to confirmed.`\n\nIf the spec requires an observable event or side effect, give that outcome its own criterion unless it is inseparable from the transition.\n\n## Negative\n\nFor authorization, forbidden actions, or side-effect-sensitive paths, use the Unwanted behavior template and explicitly state the prohibited outcome.\n\nExample:\n\n`If an unauthorized user attempts to confirm an appointment, then the system shall reject the request and shall not modify the appointment.`\n\nThe explicit prohibited outcome is required for negative criteria.\n\n## Non-functional\n\nUse the same EARS templates with measurable thresholds and operating context.\n\nExample:\n\n`When 100 concurrent scheduling requests are sustained for 60 seconds, the scheduling system shall return responses with p95 latency below 200 ms.`\n\nNever invent thresholds that are absent from the spec, codebase, or established project requirements.\n\n# Anti-Patterns\n\nBad:\n\n`The system SHALL store appointments in PostgreSQL using JDBC.`\n\nBetter:\n\n`The system SHALL persist confirmed appointments such that they survive application restart.`\n\nDo not prescribe implementation.\n\nBad:\n\n`The system SHALL validate the request AND select a veterinarian AND create the appointment.`\n\nBetter:\n\nCreate separate criteria for distinct observable outcomes.\n\nCompound criteria are not independently testable.\n\nBad:\n\n`The system SHALL be fast and intuitive.`\n\nBetter:\n\nUse measurable requirements only.\n\nIf no measurable requirement exists, record the category under `Coverage exclusions`.\n\nBad:\n\n`When the user clicks the blue button in the bottom-right...`\n\nBetter:\n\n`When the user confirms the proposed appointment...`\n\nDescribe user intent, not incidental UI implementation.\n\n# Granularity\n\nUse one observable outcome per criterion.\n\nIf a SHALL clause naturally contains multiple independently observable outcomes, split it.\n\nA criterion may include a necessary negative clause when both parts describe one atomic contract.\n\nExample:\n\n`If the slot is no longer available, then the scheduling system shall reject confirmation and shall not create an appointment.`\n\nDo not split this if the absence of creation is part of the same atomic failure contract.\n\n# Traceability\n\nEvery criterion must have:\n\n- a stable acceptance-criterion ID\n- a `Covers:` line\n- exactly one EARS statement\n\nFor decomposed features, behavior IDs are already scoped by use case:\n\n- `UC1-B1`\n- `UC1-B2`\n- `UC2-B1`\n\nAcceptance-criterion IDs are scoped the same way:\n\n- `UC1-AC1`\n- `UC1-AC2`\n- `UC2-AC1`\n\nUse the use-case number declared in the feature-level spec.\n\nExample:\n\n```markdown\n### UC2-AC1: Return one appointment proposal\n\n**Covers:** UC2-B1\n\nWhen an eligible appointment slot exists, the scheduling system shall return one appointment slot to the pet owner.\n```\n\nKeep IDs stable once written unless the corresponding criterion is removed.\n\n# Traceability to Shared Decisions\n\nNormally, every criterion should cover at least one behavior ID.\n\nIf a feature-level decision implies runtime behavior but does not map to a behavior ID, do not silently derive a criterion from it.\n\nFlag this as a spec gap.\n\nExample:\n\n```text\nSpec gap:\nCross-cutting decision \"Only one slot may be exposed at a time\"\nimplies observable runtime behavior but is not represented by any UC\u003CN>-B\u003CN>.\n```\n\nRoute this back to the spec step so the behavior has explicit ownership.\n\nDo not use section-heading references as a substitute for missing behavior IDs when the content implies runtime behavior.\n\nThe behaviors are the contract.\n\n# Coverage Rule\n\nEvery behavior in the current use-case spec must be covered by at least one acceptance criterion.\n\nOne behavior may require several criteria.\n\nThis is expected for:\n\n- multiple triggers\n- boundary cases\n- error paths\n- state transitions\n- negative outcomes\n\nOne criterion may cover multiple behavior IDs only when they describe the same indivisible observable contract.\n\nPrefer one primary behavior per criterion.\n\n# Codebase Resolution\n\nIf a missing detail can be resolved from existing code, configuration, tests, or established project conventions:\n\n1. inspect the codebase\n2. use the discovered value\n3. note the source during analysis\n4. generate the corresponding criterion\n\nDo not route back to the spec merely because the spec omitted something already authoritative in the project.\n\nHowever, if existing code conflicts with the resolved specification, the specification wins unless explicitly marked otherwise.\n\n# Route-Back Threshold\n\nRoute back to the spec step when any of the following is true:\n\n- A behavior cannot be phrased as a testable trigger\u002Fresponse without inventing a product decision.\n- Two or more behaviors depend on the same unresolved decision.\n- A boundary value is required but unspecified.\n- An error path is implied but its behavior is undefined.\n- A state transition is implied but its resulting state is undefined.\n- A feature-level decision implies runtime behavior but no use case owns it.\n- A behavior appears to belong to multiple use cases and ownership matters.\n- A required interaction between use cases is ambiguous.\n\nDo not create `criteria.md` with guessed decisions merely to avoid returning to the spec step.\n\n# Non-Functional Coverage\n\nFor every use case, consider whether these categories apply:\n\n- performance\n- security\n- authorization\n- observability\n- accessibility\n- compatibility\n- reliability\n\nCreate acceptance criteria only when the specification, project requirements, or codebase establishes a measurable contract.\n\nOtherwise record the relevant category under `Coverage exclusions`.\n\nDo not mechanically add every category to every use case.\n\nOnly list categories that were considered and are plausibly relevant.\n\n# Success Criteria\n\nComplete a use case only when all of the following hold:\n\n- Every behavior ID in the use-case spec is covered by at least one acceptance criterion.\n- Every criterion traces to at least one behavior ID.\n- Every bounded value requiring validation has the three-criterion boundary pattern.\n- Every specified error path uses the Unwanted behavior template.\n- Error criteria define observable behavior and atomicity where relevant.\n- Every specified state transition has a transition criterion.\n- Every authorization-relevant path has a negative criterion.\n- Relevant non-functional categories are either covered or recorded under `Coverage exclusions`.\n- Every criterion uses an EARS template.\n- Every criterion has one observable SHALL outcome.\n- No criterion prescribes implementation.\n- No criterion contains rationale.\n- No new product decision has been invented.\n- No cross-use-case behavior lacks clear ownership.\n\nRun a verification pass before writing.\n\nDo not write a partial `criteria.md`.\n\nIf verification fails because the spec is incomplete, route the issue back to the spec step instead.\n\n# Output: Decomposed Feature\n\nFor each use case, write:\n\n`spec\u002F\u003Cfeature-name>\u002F\u003Cuse-case-name>\u002Fcriteria.md`\n\nUse:\n\n```markdown\n# Acceptance Criteria: UC\u003CN> — \u003CUse Case Title>\n\n## Functional\n\n### UC\u003CN>-AC1: \u003Ctitle>\n\n**Covers:** UC\u003CN>-B1\n\n\u003CEARS statement>\n\n### UC\u003CN>-AC2: \u003Ctitle>\n\n**Covers:** UC\u003CN>-B2\n\n\u003CEARS statement>\n\n## Non-functional\n\n### UC\u003CN>-AC\u003CN>: \u003Ctitle>\n\n**Covers:** UC\u003CN>-B\u003CN>\n\n\u003CEARS statement>\n\n## Coverage exclusions\n\n- \u003Ccategory>: \u003Creason>\n```\n\nOmit an empty `Non-functional` section.\n\nOmit `Coverage exclusions` when there are no meaningful exclusions to record.\n\n# Output: Non-Decomposed Feature\n\nIf the feature has no separate use cases, write:\n\n`spec\u002F\u003Cfeature-name>\u002Fcriteria.md`\n\nUse the original feature-wide identifiers:\n\n- `B-1`, `B-2`, ...\n- `AC-1`, `AC-2`, ...\n\nStructure:\n\n```markdown\n# Acceptance Criteria: \u003CFeature>\n\n## Functional\n\n### AC-1: \u003Ctitle>\n\n**Covers:** B-1\n\n\u003CEARS statement>\n\n### AC-2: \u003Ctitle>\n\n**Covers:** B-2\n\n\u003CEARS statement>\n\n## Non-functional\n\n### AC-N: \u003Ctitle>\n\n**Covers:** B-N\n\n\u003CEARS statement>\n\n## Coverage exclusions\n\n- \u003Ccategory>: \u003Creason>\n```\n\n# Final Verification Pass\n\nBefore completing each `criteria.md`:\n\n1. Re-read the feature-level spec.\n2. Re-read the current use-case spec.\n3. Enumerate every behavior ID.\n4. Verify that every behavior is covered.\n5. Verify that every criterion maps back to an owned behavior.\n6. Check boundaries, error paths, state transitions, and negative paths.\n7. Check feature-wide constraints that apply to this use case.\n8. Check that no criterion belongs more naturally to another use case.\n9. Check that no implementation detail has leaked into the criteria.\n10. Check that no criterion requires an unstated product decision.\n\nFor a decomposed feature, repeat this verification independently for every use case.\n\nOnly consider the criteria step complete when every use case passes verification.\n","# Acceptance Criteria Skill\n\nTranslate the resolved specification into independently testable, implementation-agnostic acceptance criteria using EARS templates.\n\nFor decomposed features, treat each use case as the primary unit of acceptance criteria and traceability.\n\nPipeline position:\n\nproposal → spec → **criteria** → rules → review → plan\n\n# Role\n\nTranslate specified behaviors into testable acceptance criteria.\n\nDo not invent product decisions.\n\nIf a behavior cannot be expressed as a testable criterion without making a new product decision, route the gap back to the spec step.\n\n# Inputs\n\nSpecifications live under:\n\n```text\nspec\u002F\n└── \u003Cfeature-name>\u002F\n    ├── proposal.md\n    ├── spec.md\n    ├── \u003Cuse-case-name>\u002F\n    │   └── spec.md\n    ├── \u003Cuse-case-name>\u002F\n    │   └── spec.md\n    └── ...\n```\n\nThe feature-level spec is:\n\n`spec\u002F\u003Cfeature-name>\u002Fspec.md`\n\nThe proposal is:\n\n`spec\u002F\u003Cfeature-name>\u002Fproposal.md`\n\nFor decomposed features, each use-case spec is:\n\n`spec\u002F\u003Cfeature-name>\u002F\u003Cuse-case-name>\u002Fspec.md`\n\nThe `Behaviors to verify` section of each use-case spec is the primary contract.\n\nThe feature-level spec provides shared context such as:\n\n- cross-cutting decisions\n- explicit feature-wide assumptions\n- use-case relationships\n- out-of-scope decisions\n- external dependencies\n\nSpec takes precedence over proposal where they disagree.\n\n# Determine Processing Mode\n\nRead the feature-level spec first.\n\nIf it contains use cases, process each use case independently.\n\nFor each use case:\n\n1. Read the feature-level spec.\n2. Read the use-case spec.\n3. Read the proposal only when additional context is useful.\n4. Extract acceptance criteria for that use case.\n5. Write `criteria.md` beside that use-case spec.\n\nExample:\n\n```text\nspec\u002F\n└── smart-appointment-scheduling\u002F\n    ├── proposal.md\n    ├── spec.md\n    │\n    ├── request-appointment\u002F\n    │   ├── spec.md\n    │   └── criteria.md\n    │\n    ├── suggest-appointment-slot\u002F\n    │   ├── spec.md\n    │   └── criteria.md\n    │\n    └── confirm-appointment\u002F\n        ├── spec.md\n        └── criteria.md\n```\n\nDo not produce one feature-wide `criteria.md` when the feature has separate use cases.\n\nIf the feature was intentionally not decomposed, write:\n\n`spec\u002F\u003Cfeature-name>\u002Fcriteria.md`\n\n# Scope Isolation\n\nWhen processing a use case, generate criteria only for behaviors owned by that use case.\n\nDo not copy criteria from other use cases merely because they are related.\n\nUse feature-level decisions only when they constrain the current use case.\n\nExample:\n\nIf the feature-level spec states:\n\n> Only one appointment slot may be presented at a time.\n\nand that constraint affects `suggest-appointment-slot`, create acceptance criteria for it there.\n\nDo not repeat the same criterion in unrelated use cases.\n\n# Cross-Use-Case Behavior\n\nSome observable behavior may arise specifically from the relationship between use cases.\n\nAssign the criterion to the use case where the observable outcome occurs.\n\nFor example:\n\n- rejecting a slot causes another slot to become eligible  \n  → belongs to `reject-suggested-slot`\n\n- confirming a slot prevents it from being offered again  \n  → belongs to `confirm-appointment`\n\nDo not create a feature-level criterion solely because multiple use cases participate in the behavior.\n\nIf ownership cannot be determined without a product decision, route the ambiguity back to the spec step.\n\n# EARS Templates\n\nUse the smallest template that fits the requirement.\n\nDo not invent new templates.\n\n## Ubiquitous\n\nAlways-true behavior:\n\n`The \u003Csystem> shall \u003Cresponse>.`\n\n## Event-driven\n\nTriggered by an event:\n\n`When \u003Ctrigger>, the \u003Csystem> shall \u003Cresponse>.`\n\n## State-driven\n\nActive during a state:\n\n`While \u003Cstate>, the \u003Csystem> shall \u003Cresponse>.`\n\n## Optional feature\n\nApplies when a feature is included:\n\n`Where \u003Cfeature is included>, the \u003Csystem> shall \u003Cresponse>.`\n\n## Unwanted behavior\n\nExplicit handling of an undesired trigger:\n\n`If \u003Ctrigger>, then the \u003Csystem> shall \u003Cresponse>.`\n\n## Combined\n\nState plus event:\n\n`While \u003Cstate>, when \u003Ctrigger>, the \u003Csystem> shall \u003Cresponse>.`\n\nExample:\n\n```text\nIf an appointment request contains no usable availability constraints,\nthen the scheduling system shall reject the request and report that\navailability information is required.\n```\n\n# Patterns\n\n## Boundary\n\nFor any bounded value, write three criteria:\n\n1. one within bounds\n2. one at the boundary\n3. one beyond the boundary\n\nDo this only when the specification defines or clearly implies the bound.\n\nDo not invent numeric limits.\n\n## Error\n\nUse the Unwanted behavior template.\n\nSpecify what the system shall do, not merely what it shall avoid.\n\nDefine atomicity when relevant:\n\n- all-or-nothing\n- partial completion with reported failures\n\n## State transition\n\nWrite one criterion per transition.\n\nExample:\n\n`While an appointment proposal is pending, when the pet owner confirms it, the scheduling system shall transition the appointment to confirmed.`\n\nIf the spec requires an observable event or side effect, give that outcome its own criterion unless it is inseparable from the transition.\n\n## Negative\n\nFor authorization, forbidden actions, or side-effect-sensitive paths, use the Unwanted behavior template and explicitly state the prohibited outcome.\n\nExample:\n\n`If an unauthorized user attempts to confirm an appointment, then the system shall reject the request and shall not modify the appointment.`\n\nThe explicit prohibited outcome is required for negative criteria.\n\n## Non-functional\n\nUse the same EARS templates with measurable thresholds and operating context.\n\nExample:\n\n`When 100 concurrent scheduling requests are sustained for 60 seconds, the scheduling system shall return responses with p95 latency below 200 ms.`\n\nNever invent thresholds that are absent from the spec, codebase, or established project requirements.\n\n# Anti-Patterns\n\nBad:\n\n`The system SHALL store appointments in PostgreSQL using JDBC.`\n\nBetter:\n\n`The system SHALL persist confirmed appointments such that they survive application restart.`\n\nDo not prescribe implementation.\n\nBad:\n\n`The system SHALL validate the request AND select a veterinarian AND create the appointment.`\n\nBetter:\n\nCreate separate criteria for distinct observable outcomes.\n\nCompound criteria are not independently testable.\n\nBad:\n\n`The system SHALL be fast and intuitive.`\n\nBetter:\n\nUse measurable requirements only.\n\nIf no measurable requirement exists, record the category under `Coverage exclusions`.\n\nBad:\n\n`When the user clicks the blue button in the bottom-right...`\n\nBetter:\n\n`When the user confirms the proposed appointment...`\n\nDescribe user intent, not incidental UI implementation.\n\n# Granularity\n\nUse one observable outcome per criterion.\n\nIf a SHALL clause naturally contains multiple independently observable outcomes, split it.\n\nA criterion may include a necessary negative clause when both parts describe one atomic contract.\n\nExample:\n\n`If the slot is no longer available, then the scheduling system shall reject confirmation and shall not create an appointment.`\n\nDo not split this if the absence of creation is part of the same atomic failure contract.\n\n# Traceability\n\nEvery criterion must have:\n\n- a stable acceptance-criterion ID\n- a `Covers:` line\n- exactly one EARS statement\n\nFor decomposed features, behavior IDs are already scoped by use case:\n\n- `UC1-B1`\n- `UC1-B2`\n- `UC2-B1`\n\nAcceptance-criterion IDs are scoped the same way:\n\n- `UC1-AC1`\n- `UC1-AC2`\n- `UC2-AC1`\n\nUse the use-case number declared in the feature-level spec.\n\nExample:\n\n```markdown\n### UC2-AC1: Return one appointment proposal\n\n**Covers:** UC2-B1\n\nWhen an eligible appointment slot exists, the scheduling system shall return one appointment slot to the pet owner.\n```\n\nKeep IDs stable once written unless the corresponding criterion is removed.\n\n# Traceability to Shared Decisions\n\nNormally, every criterion should cover at least one behavior ID.\n\nIf a feature-level decision implies runtime behavior but does not map to a behavior ID, do not silently derive a criterion from it.\n\nFlag this as a spec gap.\n\nExample:\n\n```text\nSpec gap:\nCross-cutting decision \"Only one slot may be exposed at a time\"\nimplies observable runtime behavior but is not represented by any UC\u003CN>-B\u003CN>.\n```\n\nRoute this back to the spec step so the behavior has explicit ownership.\n\nDo not use section-heading references as a substitute for missing behavior IDs when the content implies runtime behavior.\n\nThe behaviors are the contract.\n\n# Coverage Rule\n\nEvery behavior in the current use-case spec must be covered by at least one acceptance criterion.\n\nOne behavior may require several criteria.\n\nThis is expected for:\n\n- multiple triggers\n- boundary cases\n- error paths\n- state transitions\n- negative outcomes\n\nOne criterion may cover multiple behavior IDs only when they describe the same indivisible observable contract.\n\nPrefer one primary behavior per criterion.\n\n# Codebase Resolution\n\nIf a missing detail can be resolved from existing code, configuration, tests, or established project conventions:\n\n1. inspect the codebase\n2. use the discovered value\n3. note the source during analysis\n4. generate the corresponding criterion\n\nDo not route back to the spec merely because the spec omitted something already authoritative in the project.\n\nHowever, if existing code conflicts with the resolved specification, the specification wins unless explicitly marked otherwise.\n\n# Route-Back Threshold\n\nRoute back to the spec step when any of the following is true:\n\n- A behavior cannot be phrased as a testable trigger\u002Fresponse without inventing a product decision.\n- Two or more behaviors depend on the same unresolved decision.\n- A boundary value is required but unspecified.\n- An error path is implied but its behavior is undefined.\n- A state transition is implied but its resulting state is undefined.\n- A feature-level decision implies runtime behavior but no use case owns it.\n- A behavior appears to belong to multiple use cases and ownership matters.\n- A required interaction between use cases is ambiguous.\n\nDo not create `criteria.md` with guessed decisions merely to avoid returning to the spec step.\n\n# Non-Functional Coverage\n\nFor every use case, consider whether these categories apply:\n\n- performance\n- security\n- authorization\n- observability\n- accessibility\n- compatibility\n- reliability\n\nCreate acceptance criteria only when the specification, project requirements, or codebase establishes a measurable contract.\n\nOtherwise record the relevant category under `Coverage exclusions`.\n\nDo not mechanically add every category to every use case.\n\nOnly list categories that were considered and are plausibly relevant.\n\n# Success Criteria\n\nComplete a use case only when all of the following hold:\n\n- Every behavior ID in the use-case spec is covered by at least one acceptance criterion.\n- Every criterion traces to at least one behavior ID.\n- Every bounded value requiring validation has the three-criterion boundary pattern.\n- Every specified error path uses the Unwanted behavior template.\n- Error criteria define observable behavior and atomicity where relevant.\n- Every specified state transition has a transition criterion.\n- Every authorization-relevant path has a negative criterion.\n- Relevant non-functional categories are either covered or recorded under `Coverage exclusions`.\n- Every criterion uses an EARS template.\n- Every criterion has one observable SHALL outcome.\n- No criterion prescribes implementation.\n- No criterion contains rationale.\n- No new product decision has been invented.\n- No cross-use-case behavior lacks clear ownership.\n\nRun a verification pass before writing.\n\nDo not write a partial `criteria.md`.\n\nIf verification fails because the spec is incomplete, route the issue back to the spec step instead.\n\n# Output: Decomposed Feature\n\nFor each use case, write:\n\n`spec\u002F\u003Cfeature-name>\u002F\u003Cuse-case-name>\u002Fcriteria.md`\n\nUse:\n\n```markdown\n# Acceptance Criteria: UC\u003CN> — \u003CUse Case Title>\n\n## Functional\n\n### UC\u003CN>-AC1: \u003Ctitle>\n\n**Covers:** UC\u003CN>-B1\n\n\u003CEARS statement>\n\n### UC\u003CN>-AC2: \u003Ctitle>\n\n**Covers:** UC\u003CN>-B2\n\n\u003CEARS statement>\n\n## Non-functional\n\n### UC\u003CN>-AC\u003CN>: \u003Ctitle>\n\n**Covers:** UC\u003CN>-B\u003CN>\n\n\u003CEARS statement>\n\n## Coverage exclusions\n\n- \u003Ccategory>: \u003Creason>\n```\n\nOmit an empty `Non-functional` section.\n\nOmit `Coverage exclusions` when there are no meaningful exclusions to record.\n\n# Output: Non-Decomposed Feature\n\nIf the feature has no separate use cases, write:\n\n`spec\u002F\u003Cfeature-name>\u002Fcriteria.md`\n\nUse the original feature-wide identifiers:\n\n- `B-1`, `B-2`, ...\n- `AC-1`, `AC-2`, ...\n\nStructure:\n\n```markdown\n# Acceptance Criteria: \u003CFeature>\n\n## Functional\n\n### AC-1: \u003Ctitle>\n\n**Covers:** B-1\n\n\u003CEARS statement>\n\n### AC-2: \u003Ctitle>\n\n**Covers:** B-2\n\n\u003CEARS statement>\n\n## Non-functional\n\n### AC-N: \u003Ctitle>\n\n**Covers:** B-N\n\n\u003CEARS statement>\n\n## Coverage exclusions\n\n- \u003Ccategory>: \u003Creason>\n```\n\n# Final Verification Pass\n\nBefore completing each `criteria.md`:\n\n1. Re-read the feature-level spec.\n2. Re-read the current use-case spec.\n3. Enumerate every behavior ID.\n4. Verify that every behavior is covered.\n5. Verify that every criterion maps back to an owned behavior.\n6. Check boundaries, error paths, state transitions, and negative paths.\n7. Check feature-wide constraints that apply to this use case.\n8. Check that no criterion belongs more naturally to another use case.\n9. Check that no implementation detail has leaked into the criteria.\n10. Check that no criterion requires an unstated product decision.\n\nFor a decomposed feature, repeat this verification independently for every use case.\n\nOnly consider the criteria step complete when every use case passes verification.\n",{"name":5,"description":7},"main","2ad2b03c85e63e00324d18f7f57e61a3b0ad4b3f","case-studies\u002Fspec-driven-petclinic\u002Ffixtures\u002Fpetclinic\u002Fappointment-scheduling-spec-with-usecases\u002F.agents\u002Fskills\u002F02-criteria","https:\u002F\u002Fgithub.com\u002Fmarkpollack\u002Fagent-judge-tutorial","https:\u002F\u002Fgithub.com\u002Fmarkpollack","2026-11-12 05:27:23",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add markpollack\u002Fagent-judge-tutorial --skill criteria",{"tool":36,"command":37},"bunx","bunx skills add markpollack\u002Fagent-judge-tutorial --skill criteria",{"tool":39,"command":40},"pnpm","pnpm dlx skills add markpollack\u002Fagent-judge-tutorial --skill criteria","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmarkpollack\u002Fagent-judge-tutorial\u002Fblob\u002Fmain\u002Fcase-studies\u002Fspec-driven-petclinic\u002Ffixtures\u002Fpetclinic\u002Fappointment-scheduling-spec-with-usecases\u002F.agents\u002Fskills\u002F02-criteria\u002FSKILL.md",true,[44],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},".intellij-skill-source","OTHER","其他",24,"https:\u002F\u002Fgithub.com\u002Fmarkpollack\u002Fagent-judge-tutorial\u002Fblob\u002Fmain\u002Fcase-studies\u002Fspec-driven-petclinic\u002Ffixtures\u002Fpetclinic\u002Fappointment-scheduling-spec-with-usecases\u002F.agents\u002Fskills\u002F02-criteria\u002F.intellij-skill-source",[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M736KCZ1PZH2KW52XZRBXZSA","grilling","Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.","https:\u002F\u002Fgithub.com\u002Fmarkpollack\u002Fagent-judge-tutorial\u002Fblob\u002Fmain\u002Fcase-studies\u002Fspec-driven-petclinic\u002Ffixtures\u002Fpetclinic\u002Fappointment-scheduling-spec-with-usecases\u002F.claude\u002Fskills\u002Fgrilling\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M736KAW9ESTST1K61YZBFYSQ","grill-me","A relentless interview to sharpen a plan or design.","https:\u002F\u002Fgithub.com\u002Fmarkpollack\u002Fagent-judge-tutorial\u002Fblob\u002Fmain\u002Fcase-studies\u002Fspec-driven-petclinic\u002Ffixtures\u002Fpetclinic\u002Fappointment-scheduling-spec-with-usecases\u002F.claude\u002Fskills\u002Fgrill-me\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M736K6PQVENY9V59GXYVMVBQ","execute","Execute the implementation plan in spec\u002Ftasks.yaml task by task, validating each against its acceptance criteria and halting at checkpoints. Use this skill whenever the user asks to implement, execute, run, continue, or work on a plan; when a spec\u002F directory with tasks.yaml exists in the repo; when they reference task or phase IDs (task-N.M, phase-N); or when they ask to start the next task or phase.","https:\u002F\u002Fgithub.com\u002Fmarkpollack\u002Fagent-judge-tutorial\u002Fblob\u002Fmain\u002Fcase-studies\u002Fspec-driven-petclinic\u002Ffixtures\u002Fpetclinic\u002Fappointment-scheduling-spec-with-usecases\u002F.claude\u002Fskills\u002F06-execute\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M736K3NX5CHWB756HFM8JJEB","tasks","Generate an implementation task list from validated spec artifacts","https:\u002F\u002Fgithub.com\u002Fmarkpollack\u002Fagent-judge-tutorial\u002Fblob\u002Fmain\u002Fcase-studies\u002Fspec-driven-petclinic\u002Ffixtures\u002Fpetclinic\u002Fappointment-scheduling-spec-with-usecases\u002F.claude\u002Fskills\u002F05-tasks\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M736K1RM2B2PEDHAYG8EB09E","spec-review","Stress-test the spec pipeline outputs against each other and the codebase before implementation begins","https:\u002F\u002Fgithub.com\u002Fmarkpollack\u002Fagent-judge-tutorial\u002Fblob\u002Fmain\u002Fcase-studies\u002Fspec-driven-petclinic\u002Ffixtures\u002Fpetclinic\u002Fappointment-scheduling-spec-with-usecases\u002F.claude\u002Fskills\u002F04-review\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M736JZ3K7TDMVVQ47KDAAEF0","rules","Capture feature-level design decisions and the technical constraints that follow, traceable to acceptance criteria","https:\u002F\u002Fgithub.com\u002Fmarkpollack\u002Fagent-judge-tutorial\u002Fblob\u002Fmain\u002Fcase-studies\u002Fspec-driven-petclinic\u002Ffixtures\u002Fpetclinic\u002Fappointment-scheduling-spec-with-usecases\u002F.claude\u002Fskills\u002F03-rules\u002FSKILL.md",[],[]]