apply-specification-by-example
Skill4 starsChanged 3 months agoMITView on GitHub
WHEN/WHERE/WHO: [Scheduling: Product owners, BAs, testers, developers, and agents aligning requirements with delivery.] HOW: [Structural: Use this SKILL to derive scope from goals, specify collaboratively with examples, refine for clarity, automate validation, and evolve living documentation.] WHY: [Scheduling: Reduces rework and ambiguity by turning requirements into executable, trustworthy documentation.]
In this repository61 other files it gives its agents.
- activate-personalSkill
- analyze-with-tactics-questionnairesSkill
- apply-agile-testing-quadrantsSkill
- apply-architectural-tacticsSkill
- apply-attribute-driven-designSkill
- apply-fundamentals-of-data-visualizationSkill
- apply-oopsi-modelSkill
- apply-screenplay-patternSkill
- blog-topic-discoverSkill
- build-agent-memory-systemsSkill
- build-business-objectives-modelSkill
- build-data-dictionarySkill
- build-feature-treeSkill
- comment-alive-test-driven-developmentSkill
- conduct-event-stormingSkill
- create-ecosystem-mapSkill
- create-living-documentationSkill
- create-skill-from-bookSkill
- CREATING-SKILL-TEMPLATESkill
- define-architectural-driversSkill
- define-bounded-contextsSkill
- define-ubiquitous-languageSkill
- design-agentic-screenplay-modelSkill
- design-agent-perception-layersSkill
- design-agent-planningSkill
- design-agent-reward-functionsSkill
- design-agents-using-patternsSkill
- design-architecture-viewpointsSkill
- design-autonomous-ai-interfacesSkill
- design-ddd-aggregatesSkill
- design-tool-use-sandboxingSkill
- document-architectural-decisionsSkill
- document-legacy-codebaseSkill
- doc-with-usage-exampleSkill
- draft-srs-documentSkill
- elicit-requirements-modelsSkill
- evolve-skill-with-wikiSkill
- extract-business-rulesSkill
- facilitate-example-mappingSkill
- facilitate-user-story-mappingSkill
- implement-agent-observabilitySkill
- implement-agent-reflectionSkill
- improve-existing-skillSkill
- improve-user-storySkill
- managing-ai-projectsSkill
- orchestrate-multi-agent-collaborationSkill
- prioritize-requirementsSkill
- review-c4-modelSkill
- review-data-engineeringSkill
- save-as-skillSkill
- scaffold-cmake-cxx-sanitize-gtest-envSkill
- skill-commonSkill
- task-commit-triggerSkill
- test-case-with-demoSkill
- test-case-with-readmeSkill
- test-driven-developmentSkill
- UnitTesting-convert2CaTDDSkill
- update-my-resumeSkill
- update-spec-contextSkill
- validate-requirements-criteriaSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
22 rules. About 0 are common, 22 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈22
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
When this skill is activated, first load skill-common and apply the shared conventions it defines: canonical section order, frontmatter …
- Distinctive: line 29
Use this skill before implementation begins, or while stabilizing an existing delivery process with frequent misunderstandings.
- Distinctive: line 60
Transfer Check: Verify the workflow still works for lightweight requirement reviews and for larger delivery processes with automation and …
- Distinctive: line 61
Stop Rule: If goals, stakeholders, or sign-off expectations are unclear, stop and ask before drafting or automating specifications.
- Distinctive: line 64
Start from business goals and expected outcomes, not from tool capabilities.
- Distinctive: line 65
Keep specifications in domain language.
- Distinctive: line 66
Do not convert long procedural UI scripts into "specifications".
- Distinctive: line 67
Do not duplicate business rules in the automation layer.
- Distinctive: line 68
Keep examples precise, realistic, and comprehensible.
- Distinctive: line 74
If goals, stakeholders, or sign-off expectations are unclear, stop and ask the user to clarify before drafting or automating specifications.
- Distinctive: line 90
Ensure each example is concrete and testable.
- Distinctive: line 92
Keep examples business-focused and self-explanatory.
- Distinctive: line 94
Add nonfunctional examples when relevant (for example: latency thresholds, workflow timing, data consistency).
- Distinctive: line 98
Keep business wording stable while evolving underlying automation code.
- Distinctive: line 100
Avoid re-implementing product logic in test code.
- Distinctive: line 104
Run quick packs continuously and slower packs on scheduled gates.
- Distinctive: line 107
Use CI history to identify and prioritize unreliable checks.
- Distinctive: line 128
Verify every specification links to a business goal and explicit expected outputs.
- Distinctive: line 129
Verify examples are concrete, domain-readable, and executable.
- Distinctive: line 130
Verify automation does not duplicate business logic and is not primarily UI-fragile.
- Distinctive: line 131
Verify documentation output is generated from execution and organized for stakeholder use.
- Distinctive: line 132
Verify unresolved ambiguities and reliability risks are explicitly reported.
≈ “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.
Files
Apply Specification by Example
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
Product owners, business analysts, testers, developers, and AI coding agents who need to deliver the right behavior with less ambiguity and less rework.
What
This skill applies Specification by Example as a repeatable workflow: collaborate on requirements, express rules through concrete examples, turn those examples into executable checks, and maintain living documentation.
When
Invoke this skill when requests include terms like:
- "align requirements and tests"
- "write executable acceptance criteria"
- "use examples for specification"
- "improve requirement quality"
- "reduce rework from unclear stories"
Use this skill before implementation begins, or while stabilizing an existing delivery process with frequent misunderstandings.
Where
Applies to:
- Story and requirement artifacts
- Acceptance criteria and example tables
- Automation suites for executable specifications
- Living documentation outputs in docs or reports
Why
Teams often fail not because coding is hard, but because understanding is inconsistent. This skill creates shared understanding early, keeps validation close to delivery, and preserves knowledge in documentation that remains current through execution.
Inputs
- Business outcomes and scope context (required)
- Candidate stories/features (required)
- Stakeholders available for clarification (required)
- Existing acceptance tests or scripts (optional)
- Existing automation/reporting stack (optional)
Output (Logical Evidence)
- A scoped set of feature specifications written with concrete examples
- Executable checks that validate behavior without changing business intent
- Living documentation that reflects current system behavior
- A short risk list (ambiguities, unstable checks, missing examples)
Optimization Readiness
- Failure Signals: The workflow starts from tool capabilities, examples stay abstract, unreliability is hidden instead of managed, or the documentation drifts away from the executable checks.
- Evidence To Collect: Example sets, executable checks, documentation outputs, risk lists, and examples showing where stakeholder collaboration clarified behavior.
- Safe Mutation Boundaries: Refine collaboration guidance, example-writing prompts, validation partitioning, and documentation structure without changing the core specification-by-example flow.
- Acceptance Criteria: Accept revisions only if the specification remains business-first, examples are concrete and executable, and the resulting documentation stays aligned with the validated behavior.
- Rejected Revision Handling: Record tool-first habits, flaky-check normalization, and overly technical example scripts so they are not repeated.
- Transfer Check: Verify the workflow still works for lightweight requirement reviews and for larger delivery processes with automation and reporting.
- Stop Rule: If goals, stakeholders, or sign-off expectations are unclear, stop and ask before drafting or automating specifications.
Constraints (Logical Boundaries)
- Start from business goals and expected outcomes, not from tool capabilities.
- Keep specifications in domain language; do not couple them to implementation details.
- Do not convert long procedural UI scripts into "specifications".
- Do not duplicate business rules in the automation layer.
- Keep examples precise, realistic, and comprehensible; avoid combinatorial explosions.
- Validate frequently and classify checks by feedback speed.
- Anti-Pattern Mapping:
- Forbidden: "tool-first adoption", "record-and-playback test strategy", "UI-only business rule validation", "unstable flaky checks normalized as acceptable".
One More Thing
If goals, stakeholders, or sign-off expectations are unclear, stop and ask the user to clarify before drafting or automating specifications.
How (Structural Workflow)
Phase 1: Derive Scope from Goals
- Capture the target business outcome and beneficiaries.
- Convert high-level goals into a candidate feature scope.
- Identify boundaries, exclusions, and value assumptions.
- Confirm that scope describes complete user-facing outcomes, not isolated technical tasks.
Phase 2: Specify Collaboratively
- Choose collaboration format based on team context (workshop, small triad, paired drafting, or lightweight iterative reviews).
- Draft a small set of examples together with domain experts.
- Resolve ambiguity through questions on intent, edge cases, and expected outputs.
- Freeze a first-pass specification only when stakeholders agree on behavior.
Phase 3: Illustrate and Refine with Examples
- Ensure each example is concrete and testable.
- Replace vague categories with explicit values where possible.
- Keep examples business-focused and self-explanatory.
- Refine titles and short narrative so specifications can be understood without oral context.
- Add nonfunctional examples when relevant (for example: latency thresholds, workflow timing, data consistency).
Phase 4: Automate Validation Without Changing Intent
- Implement an automation layer that maps examples to system interactions.
- Keep business wording stable while evolving underlying automation code.
- Automate near system boundaries where checks are meaningful and stable.
- Avoid re-implementing product logic in test code.
- Partition checks by speed and reliability to support fast feedback cycles.
Phase 5: Validate Frequently and Manage Reliability
- Run quick packs continuously and slower packs on scheduled gates.
- Track flaky checks and remove instability sources first.
- Maintain a separate known-failures workflow if needed, with transparent ownership.
- Use CI history to identify and prioritize unreliable checks.
Phase 6: Evolve Living Documentation
- Publish executable specification results as readable documentation.
- Organize documentation by business capability or workflow, not by tool internals.
- Standardize language and naming across teams.
- Review documentation drift every iteration and refactor stale specs.
Resources
- Specification by Example Checklist
Review In Mind (ReviewInMindGenie)
Execute the common review loop in review-in-mind before delivering.
Review lens for this skill:
- Are business rules expressed through concrete examples with explicit expected results?
- Is every example traceable to a business rule and an automated check?
- Are ambiguous or missing examples flagged instead of silently assumed?
Validation (Verifiable Rewards)
- Verify every specification links to a business goal and explicit expected outputs.
- Verify examples are concrete, domain-readable, and executable.
- Verify automation does not duplicate business logic and is not primarily UI-fragile.
- Verify documentation output is generated from execution and organized for stakeholder use.
- Verify unresolved ambiguities and reliability risks are explicitly reported.
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
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.

