requirement-quality

在编写或验证功能规格时应用需求质量原则:确保功能完整性、场景结构、验收条件可验证性、功能独立性和实现切片质量。用于撰写单个功能规格或验证现有需求,或在用户提到“验证此规格”、“检查此功能”、“需求质量”等时触发。该技能聚焦需求编写工艺,不涉及技术设计或实现。

仓库最近推送
GitHub Stars
218
Forks
18
Issues / PRs
3

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "requirement-quality":https://skillpi.com/zh/skills/deepskill-491a95876fb430df29e9b8aea0929faf878796967e094663e7271cdef81fdb4e。安装前核对上游来源和版本:https://github.com/techygarg/lattice。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

在编写或验证功能规格时应用需求质量原则:确保功能完整性、场景结构、验收条件可验证性、功能独立性和实现切片质量。用于撰写单个功能规格或验证现有需求,或在用户提到“验证此规格”、“检查此功能”、“需求质量”等时触发。该技能聚焦需求编写工艺,不涉及技术设计或实现。

0 下载

介绍来源: third_party · techygarg · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
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.

版本历史

  1. v2.2.0 GitHub ↗
    原版更新说明

    ## 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

  2. v2.1.0 GitHub ↗
    原版更新说明

    ## 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

  3. v2.0.0 GitHub ↗
    原版更新说明

    ## 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

  4. v1.5.0 GitHub ↗
    原版更新说明

    ## 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

  5. v1.4.0 GitHub ↗
    原版更新说明

    ## What's Changed * Initial atom, molecules and refiners set up by @techygarg in https://github.com/techygarg/lattice/pull/1 * Multiple enhancements over base set up by @techygarg in https://github.com/techygarg/lattice/pull/2 * Add collaborative-judgment atom by @techygarg in https://github.com/techygarg/lattice/pull/3 * Optimization - Reduce prompt size by @techygarg in https://github.com/techygarg/lattice/pull/4 * Add icon for lattice by @techygarg in https://github.com/techygarg/lattice/pull/5 * add bug fix molecule by @techygarg in https://github.com/techygarg/lattice/pull/6 * Add refactor molecule and enhanced bug-fix module by @techygarg in https://github.com/techygarg/lattice/pull/7 * Add alternative architecture patterns support by @techygarg in https://github.com/techygarg/lattice/pull/9 * Skills Compression by @techygarg in https://github.com/techygarg/lattice/pull/10 * Atom and their default doc Improvements and optimization by @techygarg in https://github.com/techygarg/lattice/pull/11 * Enhance language support and documentation across Lattice framework by @techygarg in https://github.com/techygarg/lattice/pull/12 * Update claude code plugin installation intructions by @techygarg in https://github.com/techygarg/lattice/pull/13 * Enhance docs by @techygarg in https://github.com/techygarg/lattice/pull/14 * Add open source repository standards by @techygarg in https://github.com/techygarg/lattice/pull/15 * Add requirement-forge molecule by @techygarg in https://github.com/techygarg/lattice/pull/19 * Add transform molecule by @techygarg in https://github.com/techygarg/lattice/pull/20 * Enhancements by @techygarg in https://github.com/techygarg/lattice/pull/21 * Add learning-harvest atom: experiential knowledge flywheel across all lifecycle molecules by @techygarg in https://github.com/techygarg/lattice/pull/22 **Full Changelog**: https://github.com/techygarg/lattice/commits/v1.4.0

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值95/100

亮点

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

亮点

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

待提升项

  • description重复 原报告严重程度:轻微

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

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

亮点

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

亮点

  • 配置解析逻辑完整,包含多层fallback机制
  • 检查清单覆盖全面,包含draft和approved两种状态的差异化要求
  • 反模式扫描清单详尽,能有效预防常见需求文档问题
证据可验 (前四项均值)90/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

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

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。