feat(cli): add specify resume command for session continuation#1892
Closed
mvanhorn wants to merge 1 commit intogithub:mainfrom
Closed
feat(cli): add specify resume command for session continuation#1892mvanhorn wants to merge 1 commit intogithub:mainfrom
mvanhorn wants to merge 1 commit intogithub:mainfrom
Conversation
Adds a new CLI command that scans the project for active features and generates an agent-ready prompt to continue work where the previous session left off. Detects spec/plan/tasks completion status and suggests the appropriate next /speckit.* command. Options: --feature (target specific feature), --copy (clipboard), --agent (override agent type) Includes 15 unit tests covering state detection, feature discovery, and prompt generation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
mnriem
requested changes
Mar 18, 2026
Collaborator
mnriem
left a comment
There was a problem hiding this comment.
Can you deliver this as an extension?
Contributor
Author
|
Got it - will repackage these as an extension. Closing these and will submit a PR with a bundled extension that provides resume, doctor, and validate as extension commands. |
mvanhorn
added a commit
to mvanhorn/spec-kit
that referenced
this pull request
Mar 18, 2026
…lidate Packages three SDD utility commands as an extension per maintainer feedback on PRs github#1892, github#1893, github#1894. Commands: - speckit.speckit-utils.resume: detect feature state, suggest next command - speckit.speckit-utils.doctor: validate project health (templates, agent config, scripts, constitution, feature artifacts) - speckit.speckit-utils.validate: verify spec-to-task traceability and check that completed tasks produced expected files Hooks into after_specify (doctor) and after_plan (validate) optionally. This contribution was developed with AI assistance (Claude Code). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This was referenced Mar 18, 2026
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
specify resume- a CLI command that detects the current SDD workflow state for each feature and generates an agent-ready continuation prompt. When an agent crashes mid-workflow or a user returns after a break, this command tells them exactly where they left off and what to do next.Why this matters
Agent crashes and context loss during spec-driven development workflows are a common pain point. Users must manually inspect feature directories, parse task files, and figure out which
/speckit.*command to run next.These issues share a common root cause: no way to programmatically determine where a feature stands in the SDD lifecycle.
Changes
specify resumecommand to the CLI (src/specify_cli/__init__.py)_detect_feature_state(),_find_features(),_generate_resume_prompt()specs/NNN-*/directories for spec.md, plan.md, tasks.md, checklists/- [x]vs- [ ]items to determine completion percentage/speckit.*command--feature(target specific feature),--copy(clipboard),--agent(override agent type)tests/test_resume.pycovering all state detection, discovery, and prompt generation pathsTesting
Sample output:
This contribution was developed with AI assistance (Claude Code).