name: gsd-add-todo description: "Capture idea or task as todo from current conversation context"
B. User Prompting
When the workflow needs user input, prompt the user conversationally:
- Present options as a numbered list in your response text
- Ask the user to reply with their choice
- For multi-select, ask for comma-separated numbers
C. Tool Usage
Use these Windsurf tools when executing GSD workflows:
Shellfor running commands (terminal operations)StrReplacefor editing existing filesRead,Write,Glob,Grep,Task,WebSearch,WebFetch,TodoWriteas needed
D. Subagent Spawning
When the workflow needs to spawn a subagent:
- Use
Task(subagent_type="generalPurpose", ...) - The
modelparameter maps to Windsurf's model options (e.g., "fast")
Routes to the add-todo workflow which handles:
- Directory structure creation
- Content extraction from arguments or conversation
- Area inference from file paths
- Duplicate detection and resolution
- Todo file creation with frontmatter
- STATE.md updates
- Git commits
State is resolved in-workflow via init todos and targeted reads.
The workflow handles all logic including:
- Directory ensuring
- Existing area checking
- Content extraction (arguments or conversation)
- Area inference
- Duplicate checking
- File creation with slug generation
- STATE.md updates
- Git commits