agentleFS
EnigmaWUEnigmaWU/MyCodeAgentSkills/validate-requirements-criteria/SKILL.md

validate-requirements-criteria

Skill4 starsChanged 3 months agoMITView on GitHub

WHEN/WHERE/WHO: [Scheduling: QA engineers, agents, or business analysts reviewing drafted requirements before development.] HOW: [Structural: Use this SKILL to hunt for ambiguous words, identify edge cases, and translate the text into strict BDD Acceptance Criteria.] WHY: [Scheduling: Ambiguous requirements lead to bugs. Fixing requirements defects is cheapest during the analysis phase.]

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 7 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When this skill is activated, first load skill-common and apply the shared conventions it defines: canonical section order, frontmatter …

    line 13
  2. Distinctive:

    Transfer Check: Verify the workflow still works for PRDs, backlog items, and story refinements with missing clarity.

    line 43
  3. Distinctive:

    Stop Rule: If the input is a technical implementation detail rather than a user requirement, stop and redirect before drafting acceptance …

    line 44
  4. Distinctive:

    Do not make up thresholds for ambiguous words.

    line 47
  5. Very specific:

    Ensure every Given / When / Then scenario tests exactly one behavior.

    line 48
  6. Distinctive:

    If the input text is a technical implementation detail rather than a user requirement (e.g., "Use a Redis cache"), inform the user that …

    line 51
  7. Distinctive:

    Ask "What if..." for the inputs and environment:

    line 59
  8. Distinctive:

    Verify that the generated BDD scenarios cover at least one error/exception path.

    line 84
  9. Very specific:

    Ensure that no ambiguous words from the input survived into the final Then clauses.

    line 85

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Validate Requirements Criteria

Common Contract (Load First)

When this skill is activated, first load skill-common and apply the shared conventions it defines: canonical section order, frontmatter rules, anti-pattern guidance, and the Review In Mind loop in review-in-mind. This skill adds only domain-specific rules below.

Who

Quality Assurance (QA) engineers, developers, and AI agents. The agent uses this skill to ensure requirements are ready for implementation.

What

This skill "tests" requirements text. It scans for ambiguity, missing exception paths, and untestable claims. It then formalizes the validated requirement into strict Behavior-Driven Development (BDD) Acceptance Criteria (Given / When / Then).

When

Invoke this skill just before a sprint begins, during story refinement, or when reviewing a PRD draft. Trigger phrases include: "review this requirement," "find ambiguity," "write acceptance criteria," or "test this user story."

Where

Applies to User Stories, PRDs, acceptance criteria fields in JIRA, and BDD feature files.

Why

Words like "fast," "seamless," and "robust" mean different things to different people. If a developer builds a system to be "fast" (500ms) but the stakeholder meant "real-time" (10ms), the product fails. This skill removes that ambiguity.

Inputs

  • Drafted requirements, user stories, or PRD text.

Output (Logical Evidence)

  • A list of Ambiguity Warnings and clarifying questions.
  • Formalized Acceptance Criteria in BDD format.

Optimization Readiness

  • Failure Signals: Ambiguous words remain unchallenged, exception paths are omitted, scenarios contain multiple behaviors, or the criteria drift into implementation details.
  • Evidence To Collect: Ambiguity warnings, clarifying questions, drafted BDD scenarios, and examples where a vague claim was converted into a testable expectation.
  • Safe Mutation Boundaries: Refine ambiguity-check prompts, exception-path analysis, and BDD wording guidance without changing the core requirements-validation workflow.
  • Acceptance Criteria: Accept revisions only if every scenario has one behavior, at least one exception path is included when relevant, and untestable words are removed from the final Then clauses.
  • Rejected Revision Handling: Record guessed thresholds, multi-behavior scenarios, and implementation-style phrasing so they are not repeated.
  • Transfer Check: Verify the workflow still works for PRDs, backlog items, and story refinements with missing clarity.
  • Stop Rule: If the input is a technical implementation detail rather than a user requirement, stop and redirect before drafting acceptance criteria.

Constraints (Logical Boundaries)

  • Do not make up thresholds for ambiguous words; flag them so the stakeholder can decide. (e.g., If the text says "timeout quickly," ask "Is 'quickly' 5 seconds or 30 seconds?")
  • Ensure every Given / When / Then scenario tests exactly one behavior.

One More Thing

If the input text is a technical implementation detail rather than a user requirement (e.g., "Use a Redis cache"), inform the user that this is an architecture decision, not a business requirement.

How (Structural Workflow)

Phase 1: Ambiguity Hunt

  1. Scan the text against the Ambiguity Checklist. Look for adjectives, adverbs, and unbounded absolutes (e.g., "always," "never").
  2. Highlight the dangerous words and generate specific clarifying questions.

Phase 2: Exception Path Analysis

  1. Ask "What if..." for the inputs and environment:
    • What if the user is logged out?
    • What if the network fails?
    • What if the input is negative or empty?

Phase 3: Acceptance Criteria Drafting

  1. Translate the happy path and the discovered exception paths into BDD syntax:
    • Scenario: [Name of behavior]
    • Given [Initial context]
    • When [Action occurs]
    • Then [Observable outcome]

Resources

  • Ambiguity Checklist

Review In Mind (ReviewInMindGenie)

Execute the common review loop in review-in-mind before delivering.

Review lens for this skill:

  • Does the validation flag ambiguity, missing exception paths, and untestable claims?
  • Are the resulting BDD criteria executable and mapped to the original requirement?
  • Is every requirement marked valid/invalid with explicit reasoning?

Validation

  1. Verify that the generated BDD scenarios cover at least one error/exception path.
  2. Ensure that no ambiguous words from the input survived into the final Then clauses.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.