بنقرة واحدة
speckit-spec-validate-validate
Spec-kit workflow command: speckit-spec-validate-validate
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Spec-kit workflow command: speckit-spec-validate-validate
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Think before building. Use when the user asks to reason about, analyze, evaluate, compare options, make an architecture decision, choose between approaches, think through a problem, or assess trade-offs. Also use when the user asks 'why did we...', 'should we...', 'what are our options', 'is this the right approach', or wants to frame/reframe a problem.
Archive a feature specification into main project memory after merge, resolving gaps and conflicts
Generate spec-kit configuration tailored to the existing codebase
Incrementally adopt SDD for existing features with reverse-engineered specs
Auto-discover project structure, tech stack, frameworks, and architecture patterns
Verify bootstrap output matches actual project structure and conventions
| name | speckit-spec-validate-validate |
| description | Spec-kit workflow command: speckit-spec-validate-validate |
| compatibility | Requires spec-kit project structure with .specify/ directory |
| metadata | {"author":"github-spec-kit","source":"spec-validate:commands/validate.md"} |
speckit.spec-validate.validateValidate the current feature's spec.md through staged-reveal multiple-choice quizzes.
spec.md exists for the current featurecompute-hash.sh, read-approval-state.sh, write-approval-state.sh.specify/feature.jsonspec.md from the feature directorycompute-hash.sh <path-to-spec.md> to get the SHA-256 hashalways_critical_sections from the extension config (spec-validate-config.yml):
spec_self_validation: "passed" and spec_critical_count: 0Present sections one at a time, blocking progression until the current section is complete.
For simple items:
For critical items:
.specify/templates/distractor-patterns.yml to determine the distractor pattern category:
decoy_1: Apply the weaker/generic fallback patterndecoy_2: Apply the conflicting/opposite behavior patternconfirmedmissed, move to next item (no retries)Agent adaptivity:
vscode/askQuestions: use that tool for clean multiple-choice UIDo NOT reveal the next section until the current section is complete.
After all sections are validated:
Git-tracked state — Run write-approval-state.sh <feature> <json> with:
{
"feature": "<feature-id>",
"spec_hash": "<hash from Step 1>",
"spec_self_validation": "passed",
"spec_validated_at": "<ISO8601 timestamp>",
"spec_critical_count": <number>,
"spec_missed_items": ["<item-ids that were missed>"],
"review_status": "<computed in Step 5>",
"approval_status": "<computed in Step 5>"
}
Preserve existing tasks_hash, tasks_self_validation, and other fields.
Local private state — Write to .specify/extensions/spec-validate/local/<feature>.private.json:
{
"feature": "<feature-id>",
"validated_by": "<current user or session id>",
"agent": {"name": "<agent-name>", "version": "<agent-version>"},
"attempts": [
{"artifact": "spec.md", "item_id": "<id>", "selected_option": "<text>", "correct": true/false}
],
"analytics": {
"first_attempt_accuracy": <float 0-1>,
"total_items": <int>,
"critical_items": <int>,
"items_missed": ["<item-ids>"]
}
}
Create the local/ directory if it doesn't exist. This directory MUST be gitignored.
Evaluate review policy from config:
review_status: "not-required", approval_status: "allowed"review.require_on_any_miss: true: Set review_status: "pending", approval_status: "blocked", record review_requested_atcomplexity.high_min_items or between low and high) AND review.require_on_medium_or_high_complexity: true: Set review_status: "pending"complexity.low_max_items): Set review_status: "not-required", approval_status: "allowed"Display validation summary:
/speckit.spec-validate.review if review pending, or proceed to planning/tasks)