requirement-quality

Apply requirement-quality principles when drafting or validating a feature spec: ensure feature completeness, scenario structure, verifiable acceptance criteria, feature independence, and slicable implementability. Used for writing a single feature spec or validating existing requirements, and triggered when users mention phrases like “validate this spec,” “check this feature,” or “requirement-quality.” This skill focuses on the craft of requirement writing and does not cover technical design or implementation.

Last repository push
GitHub Stars
218
Forks
18
Issues / PRs
3

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "requirement-quality" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-491a95876fb430df29e9b8aea0929faf878796967e094663e7271cdef81fdb4e. Verify the upstream source and version against https://github.com/techygarg/lattice before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Apply requirement-quality principles when drafting or validating a feature spec: ensure feature completeness, scenario structure, verifiable acceptance criteria, feature independence, and slicable implementability. Used for writing a single feature spec or validating existing requirements, and triggered when users mention phrases like “validate this spec,” “check this feature,” or “requirement-quality.” This skill focuses on the craft of requirement writing and does not cover technical design or implementation.

0 Downloads

Introduction source: third_party · techygarg · 0.0.1 Reference

SkillPi interpretation

Tasks
Apply requirement quality principles when generating or validating feature specifications. Enforces feature completeness, scenario structure, AC verifiability, feature independence, and implementation slice quality. Use when writing feature specs, validating existing requirements, or when the user mentions 'validate this spec', 'check this feature', 'requirement quality', 'is this spec complete', or 'requirement-quality'. This skill governs the craft of writing individual feature specifications — not technical design (see design-blueprint), not implementation (see code-forge).
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: requirement-quality
description: "Apply requirement quality principles when generating or validating feature specifications. Enforces feature completeness, scenario structure, AC verifiability, feature independence, and implementation slice quality. Use when writing feature specs, validating existing requirements, or when the user mentions 'validate this spec', 'check this feature', 'requirement quality', 'is this spec complete', or 'requirement-quality'. This skill governs the craft of writing individual feature specifications — not technical design (see design-blueprint), not implementation (see code-forge)."

Requirement Quality

Config Resolution

Skill supports project-specific standards. Order:

  1. Look for .lattice/config.yaml in the repo root
  2. If found, check paths.requirement_standards for a custom document path
  3. If a custom document exists at that path, read it and check its YAML frontmatter for mode:
    • mode: override: the custom document has full precedence. Use it instead of the embedded defaults. It must be comprehensive — treat it as the sole reference.
    • mode: overlay (or no mode field): read the embedded ./references/defaults.md first, then apply the custom document's sections on top. A custom section replaces the matching default section (matched by exact heading); new sections append after the defaults.
  4. If a custom path is configured but no document exists at it → tell the user which configured path is missing, then fall back to ./references/defaults.md
  5. If there is no config file or no paths.requirement_standards key → read ./references/defaults.md

Custom standards produced by requirement-forge-refiner → consumed by this atom → composed by requirement-forge molecule.

Self-Validation Checklist

STOP: Before writing any feature file, verify ALL checks. If a check clearly fails → fix before writing. If judgment call (see Ambiguity Signals) → flag and surface options.

If validating an existing spec (not generating), same checks apply — "fix before writing" means "fix before marking approved." Present findings as a quality report with severity.

Draft vs approved enforcement: For status: draft — items 1, 2, 10 are required. Items 3–9, 11, 12 are advisories: flag findings but do not block write. For status: approved — all items required, no exceptions.

  1. PROBLEM STATEMENT: Names a specific user need or pain — not a solution in disguise, not a vague improvement? Identifies WHO has the problem (specific user type or role, not "users")?
  2. SCOPE: Has explicit out-of-scope items — not just in-scope?
  3. BOUNDARY CONDITIONS: Feature-wide edge cases, system limits, and constraints documented?
  4. ASSUMPTIONS: Statements the team proceeds with as true are explicit — not buried in ACs or unstated? If an assumption proves wrong, affected scenarios are identifiable?
  5. SCENARIO NAMES: Each scenario has a verb-phrase name (sentence case) that describes the situation — not a feature name, not an AC?
  6. AC FORMAT: Each AC follows the agreed format (default: Given/When/Then)? Each has a clear pass/fail condition — a tester can write an automated check without asking a clarifying question?
  7. FAILURE COVERAGE: At least one scenario covers a failure, error, or edge case?
  8. SCENARIO COUNT: Feature has no more than the agreed max (default: 5) scenarios? If at or over → challenge whether this is one feature or two.
  9. AC COUNT: Each scenario has no more than the agreed max (default: 6) ACs? If at or over → challenge whether this scenario is too broad.
  10. INDEPENDENCE: Feature is self-contained — no unresolved external unknowns required before design-blueprint can begin? Any unresolved Open Questions affecting scope, behavior, or ACs are blockers unless each is marked non-blocking with a stated reason.
  11. IMPLEMENTATION NOTES: Slices ordered chronologically, at the "what" level — no technical implementation specifics?
  12. COHERENCE: All scenarios address the same user need in the Problem Statement? If a scenario serves a different need, it belongs in a separate feature.

Project-specific checks: if loaded doc contains a validation checklist section, apply those after base checklist.

When all checks pass: output "Spec passes requirement-quality — ready for write." (pre-write mode) or "Spec passes requirement-quality — status: approved." (validation mode).

Active Anti-Pattern Scan

STOP: After checklist, scan for these. If found → fix or challenge before writing.

  • [ ] Solution as problem: Problem statement says "we need X" instead of "users cannot do Y" → ask what user need X addresses; rewrite around the need
  • [ ] Vague problem: "improve the experience", "make it faster", "better UX" → no verifiable outcome; push for specific, observable user impact
  • [ ] Persona-less problem: Problem statement says "users" without identifying which user type or role → push for specificity; different personas produce different ACs
  • [ ] Hidden assumption: AC or scenario relies on an unstated assumption ("assumes user is logged in" but no Assumptions section records this) → make the assumption explicit or add a scenario covering the case where it doesn't hold
  • [ ] Boundaryless scope: scope section lists only what is in scope, nothing explicitly out → force at least 3 explicit exclusions; undefined scope = infinite scope
  • [ ] Happy-path-only spec: every scenario is a success path, no failure or error scenario → add at least one failure scenario before feature is complete
  • [ ] AC sprawl: single scenario accumulates 7+ ACs → scenario too broad; propose split into two named scenarios
  • [ ] Scenario sprawl: feature has 6+ scenarios → feature may be two; pause and challenge scope before adding more
  • [ ] Vague AC: "the system should handle errors gracefully", "response should be fast", "it should work correctly" → no pass/fail condition; rewrite as concrete Given/When/Then
  • [ ] Implementation AC: AC specifies a technical approach ("system shall use Redis", "shall call the /api/v2 endpoint") → rewrite as observable outcome
  • [ ] Orphaned feature: depends_on is empty but feature references another feature's data or behavior in its scenarios → flag missing dependency
  • [ ] Cross-epic feature undocumented: feature scenarios reference behaviors from a different epic but no cross-epic dependency is recorded → place feature in its primary epic, add the other epic as a cross-reference, record the dependency in depends_on frontmatter
  • [ ] Technical task as feature: feature name or problem statement describes infrastructure, tooling, or engineering work ("Set up database schema", "Configure CI/CD", "Write unit tests") → redirect to implementation layer, challenge what user need it serves
  • [ ] Wrong granularity — too fine: feature is actually a single acceptance criterion or a micro-behavior ("Show error on wrong password") → merge into a larger feature representing the complete user-facing behavior
  • [ ] Wrong granularity — too coarse: feature encompasses an entire product area with 10+ implicit behaviors ("User management") → decompose into discrete independently-implementable features
  • [ ] Generic slices: Implementation notes use placeholder labels that apply to any feature ("Core functionality", "Error handling", "Edge cases") → each slice must name the specific behavior being built for THIS feature
  • [ ] Undefined domain terms: Scenarios use specialized/domain terms not defined anywhere in the spec → add inline definitions or a Glossary section

Ambiguity Signals

Flag these — present options and reasoning. If framework:collaborative-judgment is loaded, use it to structure the presentation.

  • Feature boundary: two related behaviors — one feature or two? If Behavior A requires knowing Behavior B's design to spec its own ACs, they are one feature.
  • Scenario granularity: one scenario with more ACs, or two separate scenarios? If both situations share the same precondition and trigger, group. If they differ in either → separate scenarios.
  • Priority: feature serves multiple user types or epics with different urgency → surface for product decision; do not silently assign.
  • Independence borderline: feature depends on another feature but the dependency is well-understood and stable → judgment call whether to mark dependent or proceed as independent.
  • Assumption vs. requirement: a statement reads as both an assumption and a requirement → surface for product decision.

See ./references/defaults.md for epic/feature/scenario definitions, AC format examples, priority notation, status workflow, naming conventions, and implementation slice guidance.

Version history

  1. v2.3.0 GitHub ↗
    Original release notes

    ## What's Changed * fix(molecules): close pipeline gaps and release 2.3.0 by @techygarg in https://github.com/techygarg/lattice/pull/55 ## Highlights The requirement → design → code pipeline (`/requirement-forge`, `/design-blueprint`, `/code-forge`) is tighter and more predictable when you resume work or change course. - **design-blueprint** — resuming reads the context doc's state: a complete doc is closed (new scope gets a new doc), an approved doc reopens only on request or a `[for design]` note from code-forge, and stale levels count as unfinished. "Just build it" hands off to `/code-forge` instead of implementing. Entering at Level 2 or Level 4 is accepted downstream. It covers design levels 1–4; code-forge owns Level 5. - **code-forge** — resumes at the first unbuilt component, records key files and decisions after each layer, writes `status: complete` only when the work is actually done, fixes small Level 4 changes in place and sends bigger changes back to design-blueprint, and checks acceptance-criteria coverage when a spec is linked. - **requirement-forge** — feature files are written as drafts from the confirmed frame and grow scenario by scenario, with one approval question at the end. Agreed-but-unspecced features are kept under *Planned Features* in the epic file. It approves only finished specs that are still `draft` and never changes a status a person has set. - **Docs and sample** — docs updated to match, and `sample/` now keeps its constraints under `## Technical Constraints` so design-blueprint enforces them. ## Upgrade notes - The default requirement status workflow is now `draft → approved`. `in-design` and `implemented` were never read or written by any skill; teams that want them can add them back with `/requirement-forge-refiner`. Existing spec files are not rewritten. - The "Implementation Notes (Slices)" section is no longer generated in new specs. Existing specs are left as written. - No config migration is needed. **Full Changelog**: https://github.com/techygarg/lattice/compare/v2.2.0...v2.3.0

  2. v2.2.0 GitHub ↗
    Original release notes

    ## What's Changed * Standardize the multi-host plugin structure around a shared skills/ folder by @techygarg in https://github.com/techygarg/lattice/pull/41 * Add Docusaurus site scaffold + GitHub Pages deploy by @techygarg in https://github.com/techygarg/lattice/pull/44 * fix(molecules): take Level 1 from a linked requirement doc in design-blueprint by @ShuratCode in https://github.com/techygarg/lattice/pull/49 * feat(molecules): per-molecule additional_instructions in config (#50) by @techygarg in https://github.com/techygarg/lattice/pull/51 * fix(atoms): keep learning-harvest entries short when the file has drifted by @IdoGvili in https://github.com/techygarg/lattice/pull/54 ## New Contributors * @IdoGvili made their first contribution in https://github.com/techygarg/lattice/pull/54 **Full Changelog**: https://github.com/techygarg/lattice/compare/v2.1.0...v2.2.0

  3. v2.1.0 GitHub ↗
    Original release notes

    ## What's Changed * Skills: wording clarity, skill-enhance pipeline, corpus-wide precision-hygiene pass by @techygarg in https://github.com/techygarg/lattice/pull/38 * Add verifier subagent and deterministic verification runner by @techygarg in https://github.com/techygarg/lattice/pull/39 **Full Changelog**: https://github.com/techygarg/lattice/compare/v2.0.0...v2.1.0

  4. v2.0.0 GitHub ↗
    Original release notes

    ## What's Changed * Shard requirements by epic, strip rollup state, make requirement storage pluggable by @techygarg in https://github.com/techygarg/lattice/pull/34 * feat(molecules): add refiners-update molecule by @ShuratCode in https://github.com/techygarg/lattice/pull/33 ## New Contributors * @ShuratCode made their first contribution in https://github.com/techygarg/lattice/pull/33 **Full Changelog**: https://github.com/techygarg/lattice/compare/v1.5.0...v2.0.0

  5. v1.5.0 GitHub ↗
    Original release notes

    ## What's Changed * Add security workflow and CODEOWNERS by @techygarg in https://github.com/techygarg/lattice/pull/25 * Add Codex plugin by @techygarg in https://github.com/techygarg/lattice/pull/26 * Skills tuning: pipeline integrity, language compliance, and simplicity principles by @techygarg in https://github.com/techygarg/lattice/pull/29 **Full Changelog**: https://github.com/techygarg/lattice/compare/v1.4.0...v1.5.0

Only the five most recent versions are shown. View full version history at the source ↗

Current listing version

0.0.1

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 针对需求工程的专业工具,解决功能规格书编写与验证的核心痛点
  • 提供完整的质量检查清单和反模式扫描,显著提升需求文档质量
  • 支持项目级自定义标准,具备良好的可扩展性
Trigger Precision90/100

Highlights

  • 触发词覆盖全面,包含'validate this spec'、'requirement quality'等关键短语
  • 边界清晰,明确区分了与design-blueprint和code-forge的职责范围
Structure and Standards85/100

Areas to improve

  • description重复 Reported severity: Minor

    description字段在frontmatter和skill_body中同时存在

    Recommendation: 建议移除skill_body中的description字段,保持单一来源

Highlights

  • Phase划分清晰,包含配置解析、自验证清单、反模式扫描等完整流程
  • 提供了详细的检查项和示例,便于用户理解和执行
Execution Reliability88/100

Highlights

  • 配置解析逻辑完整,包含多层fallback机制
  • 检查清单覆盖全面,包含draft和approved两种状态的差异化要求
  • 反模式扫描清单详尽,能有效预防常见需求文档问题
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.