feat: add /speckit.manual-test command for generating manual test guides - #4728
Closed
Vishuvishu wants to merge 2 commits into
Closed
Vishuvishu wants to merge 2 commits into
Vishuvishu wants to merge 2 commits into
Conversation
Adds a new /speckit.manual-test command that generates a comprehensive
manual test guide (test.md) for any feature developed with spec-kit.
## What this adds
- templates/commands/manual-test.md — new command template
- templates/manual-test-template.md — scaffold template for test.md
- templates/commands/plan.md — updated Completion Report to surface
/speckit.manual-test as an optional next step after planning
## Why
After /speckit.plan generates contracts and acceptance scenarios, there
is no built-in way to generate human-executable test documentation.
Automated test suites (pytest, jest, etc.) exist as part of tasks/implement,
but teams also need a curl-based manual verification guide that:
- covers every endpoint with good and bad cases
- traces each test back to a specific acceptance scenario or FR-###
- includes auth role tests (401/403), state machine tests, PII log checks
- ends with a copy-paste end-to-end smoke test script
## Position in the SDD workflow
/speckit.specify → /speckit.clarify (opt) → /speckit.plan
→ /speckit.manual-test (NEW, optional) ← here
→ /speckit.checklist (opt)
→ /speckit.tasks → /speckit.analyze (opt) → /speckit.implement
Runs after plan (needs contracts + acceptance criteria) and before tasks
(the test guide informs what to implement). Same optional-quality-gate
position as /speckit.checklist.
## Changes to plan.md
Added /speckit.manual-test to the handoffs frontmatter so agents that
support handoff menus surface it automatically. Also added an explicit
optional-next-steps block in the Completion Report so the AI always
mentions the command after plan finishes, without requiring the user
to know it exists.
… extension The /speckit.manual-test command is now published as a standalone community extension at https://github.com/Vishuvishu/spec-kit-manual-test rather than as a core command. This reverts the plan.md handoff and completion-report changes that are no longer needed in core.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
/speckit.manual-testcommand that generates a comprehensive manual test guide (test.md) for any feature developed with spec-kit. This fills a gap in the SDD workflow: after/speckit.planproduces contracts and acceptance scenarios, there is no built-in way to generate human-executable (curl-based) test documentation.Files changed
templates/commands/manual-test.mdtemplates/manual-test-template.md.specify/templates/templates/commands/plan.mdmanual-testhandoff + optional next-steps block in Completion ReportPosition in the SDD workflow
Runs after plan (needs contracts + acceptance criteria to exist) and before tasks (the test guide informs implementation). Same optional-quality-gate position as
/speckit.checklist.What the command generates
A
test.mdfile in the feature directory containing:**What it tests**line tracing back to a specific FR-### or acceptance scenariocurlcommand with assertions❌ Bad caseblock (wrong auth, invalid input, wrong state, etc.)Changes to
plan.mdAdded
speckit.manual-testto thehandoffsfrontmatter so agents that support handoff menus surface it automatically. Added an explicit optional-next-steps block in the Completion Report so the AI always mentions the command after plan finishes — users do not need to know it exists.Testing
The command follows the same structure as existing commands (
checklist.md,analyze.md): pre-execution hook check, artifact loading viacheck-prerequisites.sh, generation, post-execution hook check, completion report. No changes to CLI infrastructure are required — the command is picked up automatically by the existing command-discovery logic inbase.py(templates/commands/scan).Checklist
templates/commands/templates/plan.mdhandoffs and Completion Report updatedbefore_manual_test/after_manual_test)