create_test_guide
Produce a manual testing guide, scaled to the change, that a human can run to validate the work. Input is the current task's changes; output is one checklist artifact.
Inputs
$ARGUMENTS— optional explicit feature name/root or descendant artifact, focus areas to emphasize, an explicit source-plan path, and--orchestratedwhen a parent workflow owns the next step.- Task context: features added/modified/removed, stack/environment, user personas, integration points/dependencies. Prioritize an explicitly passed source-plan path ahead of literal
plan.md; otherwise read from canonical artifacts (scope.md, plan.md, tasks.json slices) and the diff. Useexecute.mdonly to locatetasks.json; do not inline the full task graph.
Working Set
- Reuse a managed
FEATURE_ROOTonly when explicit/current-thread evidence ties it to this work (physical directory wins; never branch/recency/lifecycle/scans); distinct work ignores ambient roots. Otherwise, including on collision, standalone MUST first load and followSkill(spectre-feature-root)through DONE; orchestrated calls escalate. Keep writes beneath it and pass it unchanged. - Repair stale feature/root metadata in artifacts this workflow touches.
- Read-only: explicitly supplied feature artifacts and the implemented diff.
- Write: the single test-guide artifact only.
Outputs + DONE
Write to {FEATURE_ROOT}/testing/test_guide.md and begin immediately below the title with:
Feature: <feature-name>
Feature Root: .spectre/features/<feature-name>
DONE when:
- Complexity classified Simple | Medium | Complex with a one-line rationale (Simple = smoke/happy-path + quick regression; Medium = edge cases, error handling, basic integration; Complex = advanced scenarios, performance, cross-feature, security).
- Required sections present (always): Testing Overview (scope, environment, prerequisites) · Environment Setup (steps + verification) · Core Test Cases (primary functionality) · Results Documentation (how to record/report).
- Optional sections included only when relevant: Known Issues & Limitations · Rollback Procedures (high-risk/prod) · Performance · Accessibility (UI/UX) · Cross-Browser/Device (frontend) · Data Validation · Security (auth/permissions/data-access).
- Organized by user workflow/feature, not procedural phases; headers name the user goal.
- Each checkbox is an action + verification pair (e.g. "Send POST to /api/users → verify 201 with user ID returned"), using
[ ]for tracking; related steps grouped under one scenario; concrete test data (paths, names, shortcuts/UI elements in parens) included. - Depth scaled to change size (CSS tweak ≠ payment system); instructions runnable by someone unfamiliar with the code; no over-engineering for trivial changes.
- A coverage summary returned: # workflows, # steps, estimated time, and the chosen complexity tier + rationale.
Feature-section shape:
### 1. Feature Name (User Action/Context)
- [ ] Action to perform → what to verify/expect
- [ ] Edge case or error handling → expected behavior
Method / guardrails
- Scale to risk: prioritize what is most likely to break or impact users; only include sections that add value.
- Each scenario validates one capability end-to-end.
Handoff
- Return the coverage summary in-thread (no extra docs).
--orchestrated→ return the guide path and coverage summary to the caller without user-facing Next Steps.- Standalone → recommend
spectre-provewhen the completed feature has an observable public workflow; recommendspectre-testonly for an identified automation gap; recommendspectre-cleanonly when proof is explicitly deferred. Emit one primary recommendation with its observed reason.
Escalate-If
- Task context is too thin to identify the changed features or personas — ask before guessing.