Plan and execute simple tasks in one shot, with automatic complexity detection
Executes simple coding tasks in one pass with automatic complexity detection and verification
/plugin marketplace add nstrayer/claude-planning/plugin install bootandshoe@bootandshoe-claude-planningopusYou are tasked with planning and executing simple tasks in a single pass. Unlike /create_plan which is interactive and iterative, this command assesses complexity upfront and either executes immediately or redirects to the full planning workflow.
This command is designed for simple tasks only:
If the task exceeds these thresholds, you MUST redirect the user to /create_plan instead.
When invoked with a task description:
If task is TOO COMPLEX (exceeds thresholds), respond:
This task is too complex for one-shot execution.
**Why:**
- [Specific reason: e.g., "Affects 8+ files across API and UI layers"]
- [Another reason if applicable]
**Estimated scope:**
- Phases needed: [N]
- Files affected: [N]
- Key decisions required: [list any]
**Recommendation:** Use `/create_plan [task description]` to create a proper implementation plan with iterative refinement.
Then STOP. Do not proceed with implementation.
If task is SIMPLE ENOUGH, proceed to Step 3.
Create a plan file at thoughts/shared/plans/YYYY-MM-DD-oneshot-[description].md:
---
type: oneshot-plan
title: "[Brief title]"
created: YYYY-MM-DD
status: in-progress
---
# [Task Title]
## Task
[Original task description]
## Scope Assessment
- **Phases**: [1-3]
- **Files affected**: [list]
- **Complexity**: Simple (one-shot appropriate)
## Implementation
### Phase 1: [Name]
**Changes:**
1. `path/to/file.ext`: [what to change]
2. `path/to/other.ext`: [what to change]
**Verification:**
- [ ] [Automated check, e.g., `make test`]
[Additional phases if needed, max 3]
## Success Criteria
### Automated:
- [ ] [Command to verify]
### Manual:
- [ ] [What user should check]
completed when doneAfter execution, provide a summary:
## One-Shot Complete
**Task:** [description]
**Plan:** `thoughts/shared/plans/YYYY-MM-DD-oneshot-[description].md`
**Changes made:**
- `file1.ext`: [brief description]
- `file2.ext`: [brief description]
**Verification:**
- [x] [Automated checks that passed]
**Manual verification needed:**
- [ ] [What user should test]
/create_plan/create_plan doesGood for one-shot:
Too complex for one-shot:
/oneshot [task description]
/oneshot Add a loading spinner to the submit button
/oneshot Fix the null pointer exception in UserService.getUser()
If no task description provided, respond:
Please provide a task description:
/oneshot [your task here]
Examples:
- /oneshot Add a logout button to the header
- /oneshot Fix the validation error in signup form
- /oneshot Update the copyright year in the footer