speckit-specrew-speckit-before-implement
Validate execution readiness before implementation
- License 许可
- MIT
- 最近更新
- 2026-08-28
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- speckit-specrew-speckit-before-implement
- metadata
- { "author": "github-spec-kit", "source": "specrew-speckit:commands/speckit.specrew-speckit.before-implement.md" }
- description
- Validate execution readiness before implementation
- compatibility
- Requires spec-kit project structure with .specify/ directory
03 SKILL.md 正文
Validate Execution Readiness
Before implementation starts, confirm the active iteration artifacts are approved and execution-ready.
Required checks
- Confirm the latest iteration plan has an approval verdict and is still the active source of truth.
- Verify execution is not bypassing unresolved review findings or missing phase artifacts.
- Run
pwsh -File .specify/extensions/specrew-speckit/scripts/validate-governance.ps1 -ProjectPath .when iteration artifacts are available. - When the active iteration includes Phase 2 hardening-gate scope (
FR-031throughFR-033), confirmquality/hardening-gate.mdexists and records explicit review of:- security surface analysis
- error-handling expectations
- retry and idempotency requirements
- test-integrity targets
- For a Phase 2 hardening slice, confirm the hardening gate status is implementation-ready:
- explicit sign-off is recorded, or
- each unresolved critical concern has explicit human developer deferral approval recorded
- Do not treat
TBD, omitted rationale, or agent-only deferral decisions as implementation-ready for critical security, resilience, or operational concerns. - Keep later quality behavior truthful. Do not claim dedicated bug-hunter execution, strongest-class routing enforcement, known-traps workflows, or quality-drift automation are already active unless the current slice actually delivered them.
Lifecycle-adjacent command: /speckit.analyze (before-implement)
Surface /speckit.analyze at this before-implement boundary, but only after /speckit.tasks has produced a complete tasks.md. It requires the full artifact set — spec.md, plan.md, and tasks.md — and performs an additive cross-artifact consistency and quality review across them.
- It is additive to Specrew governance validation: it complements the governance checks and does not replace them.
- It is only meaningful once a complete
tasks.mdexists; there is nothing for it to analyze before tasks are generated. - If you reach
/speckit.analyzebefore a completetasks.mdexists, do not run it prematurely — return at the before-implement boundary after/speckit.taskscompletes.
Record the arrival (before the advancement gate)
After the readiness checks complete, record the boundary arrival FIRST — the sync mints the pending
crossing and writes .specrew/runtime/pending-verdict-stop.md, the controller truth the verdict
stop renders from. This explicit arrival prevents the pending ask from depending on off-skill
machinery:
$featureJson = Get-Content -LiteralPath .\.specify\feature.json -Raw -Encoding UTF8 | ConvertFrom-Json
$featureRef = Split-Path -Leaf $featureJson.feature_directory
$iterationsRoot = Join-Path $featureJson.feature_directory 'iterations'
$iterationNumber = if (Test-Path -LiteralPath $iterationsRoot -PathType Container) {
@(Get-ChildItem -LiteralPath $iterationsRoot -Directory | Sort-Object Name -Descending | Select-Object -First 1)[0].Name
}
pwsh -File .\.specify\extensions\specrew-speckit\scripts\sync-boundary-state.ps1 -ProjectPath . -BoundaryType before-implement -FeatureRef $featureRef -IterationNumber $iterationNumber
If the sync fails, stop and report the exact file-write error before continuing. If the sync is refused because an earlier crossing is still unapproved (the ratchet), that refusal IS the stop — surface it and wait for the human; do not work around it.
Advancement gate (after the arrival is recorded)
The gate BLOCKS until the human's verdict authorizes this crossing — implementation MUST NOT begin while it blocks:
. .\.specify\extensions\specrew-speckit\scripts\shared-governance.ps1
$authorization = Test-SpecrewBoundaryAuthorization -ProjectRoot . -CurrentBoundary 'tasks' -RequestedBoundary 'before-implement'
if (-not $authorization.Authorized) {
Write-Output (Write-SpecrewBoundaryAuthorizationDirective -CurrentBoundary $authorization.CurrentBoundary -RequestedBoundary $authorization.RequestedBoundary -DirectiveSentinel $authorization.DirectiveSentinel)
throw $authorization.Reason
}
On a gate block, .specrew/runtime/pending-verdict-stop.md is the controller truth: render the
six-section boundary packet from its Boundary to ask for, Human approval phrase, and
Marker last line exactly values, then stop for the human's verdict. Do not infer a marker from
the phase you are in.
Failure behavior
If governance validation fails, approvals are incomplete, or the Phase 2 hardening gate is missing sign-off / human-approved deferral coverage, stop implementation, report the concrete blocking artifact or verdict, explain why it blocks implementation, and state the next valid human action.
04 同仓库更多 Skills
windows-compatibility
Cross-platform path handling and command patterns
versioning-policy
Semver versioning rules for Squad SDK and CLI — prevents prerelease version incidents
tiered-memory
Three-tier agent memory model (hot/cold/wiki) for context reduction per spawn
test-discipline
Update tests when changing APIs — no exceptions
squad
Squad's command catalog and interactive menu. Invoke via /squad (slash command) or natural language ("squad commands", "what can squad do", "show me squad options"). Presents categorized operations (Install & Upgrade, Team Management, Issues & PRs, Plugins & Skills, Model & Cost, Sessions & State) as an interactive picker. Routes to the right squad CLI command or the Squad coordinator agent.
squad-version-check
Internals of how @bradygaster/squad-cli stamps its version, how `squad upgrade` works (what it preserves vs overwrites), and how to probe the npm registry for the latest version from a coordinator prompt.