AGENT SKILL

speckit-specrew-speckit-before-plan

Validate requirement and quality-governance readiness before planning

License 许可
MIT
所属仓库
alonf/KeyContextAI
最近更新
2026-08-28
Stars
★ 0
Forks
0

01 前言 Front Matter

name
speckit-specrew-speckit-before-plan
metadata
{ "author": "github-spec-kit", "source": "specrew-speckit:commands/speckit.specrew-speckit.before-plan.md" }
description
Validate requirement and quality-governance readiness before planning
compatibility
Requires spec-kit project structure with .specify/ directory

03 SKILL.md 正文

Validate Requirement and Quality-Profile Readiness

Before planning proceeds, verify the active specification is ready for implementation planning and that the applicable quality-governance inputs are explicit enough to render into the plan.

Required checks

  1. Confirm the current spec contains explicit requirement statements and that they are actionable.
  2. Stop planning if requirements are missing, ambiguous, or still awaiting approval.
  3. Run or consult pwsh -File .specify/extensions/specrew-speckit/scripts/resolve-quality-profile.ps1 -ProjectPath . for the active clarified feature before speckit.plan so planning has an explicit Phase 1 / first-slice quality profile.
  4. Make the planning inputs explicit and reviewable:
    • inferred quality profile identifier
    • selected preset refs or explicit bounded custom composition
    • stack surfaces in scope
    • risk dimensions that materially apply
    • quality tool bundle
    • required Phase 1 quality gates
    • not-applicable dimensions with rationale
  5. When the planned slice includes Phase 2 hardening-gate scope (FR-031 through FR-033), keep the lifecycle boundary explicit in the planning inputs:
    • the resolver output remains planning input, not proof that hardening review already happened
    • the plan must make it clear that quality/hardening-gate.md sign-off is required before implementation starts
    • any unresolved critical security, resilience, or operational concern will need explicit human-approved deferral before implementation may proceed
  6. Keep unsupported or later-phase quality behavior explicit as deferred. Do not imply hardening-gate sign-off, dedicated bug-hunter execution, strongest-class routing enforcement, known-traps workflows, or quality-drift automation as implemented in this pre-plan check unless the current slice truly delivers them.
  7. If iteration artifacts already exist, you may run pwsh -File .specify/extensions/specrew-speckit/scripts/validate-governance.ps1 -ProjectPath . for an additional governance check.

Lifecycle-adjacent command: /speckit.checklist (before-plan)

Surface /speckit.checklist at this before-plan boundary as a requirements-quality aid. It helps catch vague, incomplete, inconsistent, or missing requirements before planning begins, improving requirement clarity, completeness, consistency, and edge-case coverage.

Proportional guidance:

  • Recommended for substantive feature work, where requirement gaps are expensive to discover later.
  • Optional for low-risk, lightweight, or small slices whose requirements are already clear.

/speckit.checklist improves requirement quality only. It does not validate implementation correctness, and it is not mandatory for every tiny slice.

Failure behavior

If readiness is not clear, do not continue to planning. Explain whether the blocker is missing requirement clarity, missing quality-profile inputs, missing hardening-lifecycle framing for a Phase 2 slice, or unresolved not-applicable/deferred reasoning, and direct the user back to clarification or resolver repair before planning continues.

04 同仓库更多 Skills