/pm-autoscope — Automated Scoping
Automates the discovery and creation pipeline for epics, stories, and tasks.
How it works
- •Call
pm_auto_scope()to detect the project state and get discovery signals. - •Based on the mode returned, follow the appropriate workflow below.
Full Scan Mode (new projects)
Triggered when no epics or stories exist yet. The tool returns codebase signals (docs, build files, source tree).
Workflow:
- •Analyze the codebase signals returned by
pm_auto_scope - •Propose 2-5 epics covering the major areas of work
- •Present the epic list to the user for approval — let them add/remove/edit
- •Create approved epics with
pm_create_epic - •For each epic, propose 2-6 stories
- •Present stories to the user for approval per epic
- •Create approved stories with
pm_create_story, linking to the epic viaepic_id - •For each story, propose 2-6 tasks
- •Present tasks to the user for quick approval
- •Create approved tasks with
pm_create_task - •Show summary: N epics, N stories, N tasks created, total points
Incremental Mode (existing stories need tasks)
Triggered when stories exist but some have no tasks. Results are paginated — the tool returns a batch of stories at a time (default 5).
Workflow:
- •Call
pm_auto_scope()— returns the first batch of undecomposed stories (IDs and titles only, no bodies) - •For each story in the batch:
a. Call
pm_scope(story_id)to get full decomposition context (story body + existing tasks + guidance) b. Propose 2-6 tasks for the story based on its content c. Present the task list to the user for quick approval (yes/edit/skip) d. Create approved tasks withpm_create_tasks(story_id, tasks)(batch — one call per story) - •If
has_moreis true in the response, callpm_auto_scope(offset=next_offset)for the next batch - •Repeat steps 2-3 until all stories are scoped (
has_moreis false) - •After all batches are done, show summary:
- •N stories scoped
- •N tasks created
- •Total points assigned
- •Suggest next steps:
/pm boardto see available work or/pm-planfor sprint planning
Guidelines
- •Keep task titles as verb phrases: "Add authentication middleware", "Write unit tests for parser"
- •Each task should be 1-5 points (completable in one session)
- •Tasks should be independently testable
- •First task in a story sets up the foundation
- •Last task handles integration/cleanup
- •Don't over-decompose — 2-6 tasks per story is the sweet spot
Forcing a mode
Users can force a specific mode:
- •
/pm autoscope full— force full codebase scan even if stories exist - •
/pm autoscope incremental— force incremental even if no stories exist