Skip to content
gsd-add-todo logo

Gsd Add Todo

gsd-add-todo

Capture idea or task as todo from current conversation context

SKILL.md

Full skill instructions

<objective> Capture an idea, task, or issue that surfaces during a GSD session as a structured todo for later work.

Enables "thought → capture → continue" flow without losing context or derailing current work. </​objective>

<context> @.planning/​STATE.md </​context> <process> <step name="ensure_directory"> ```bash mkdir -p .planning/​todos/​pending .planning/​todos/​done ``` </​step> <step name="check_existing_areas"> ```bash ls .planning/​todos/​pending/​*.md 2>/​dev/​null | xargs -I {} grep "^area:" {} 2>/​dev/​null | cut -d' ' -f2 | sort -u ```

Note existing areas for consistency in infer_area step. </​step>

<step name="extract_content"> **With arguments:** Use as the title/​focus. - `{{COMMAND_PREFIX}}add-todo Add auth token refresh` → title = "Add auth token refresh"

Without arguments: Analyze recent conversation to extract:

  • The specific problem, idea, or task discussed
  • Relevant file paths mentioned
  • Technical details (error messages, line numbers, constraints)

Formulate:

  • title: 3-10 word descriptive title (action verb preferred)
  • problem: What's wrong or why this is needed
  • solution: Approach hints or "TBD" if just an idea
  • files: Relevant paths with line numbers from conversation </​step>
<step name="infer_area"> Infer area from file paths:
Path patternArea
src/​api/​*, api/​*api
src/​components/​*, src/​ui/​*ui
src/​auth/​*, auth/​*auth
src/​db/​*, database/​*database
tests/​*, __tests__/​*testing
docs/​*docs
.planning/​*planning
scripts/​*, bin/​*tooling
No files or uncleargeneral

Use existing area from step 2 if similar match exists. </​step>

<step name="check_duplicates"> ```bash grep -l -i "[key words from title]" .planning/​todos/​pending/​*.md 2>/​dev/​null ```

If potential duplicate found:

  1. Read the existing todo
  2. Compare scope

If overlapping, use AskUserQuestion:

  • header: "Duplicate?"
  • question: "Similar todo exists: [title]. What would you like to do?"
  • options:
    • "Skip" — keep existing todo
    • "Replace" — update existing with new context
    • "Add anyway" — create as separate todo </​step>
<step name="create_file"> ```bash timestamp=$(date "+%Y-%m-%dT%H:%M") date_prefix=$(date "+%Y-%m-%d") ```

Generate slug from title (lowercase, hyphens, no special chars).

Write to .planning/​todos/​pending/​${date_prefix}-${slug}.md:

---
created: [timestamp]
title: [title]
area: [area]
files:
  - [file:lines]
---

## Problem

[problem description - enough context for future Claude to understand weeks later]

## Solution

[approach hints or "TBD"]

</​step>

<step name="update_state"> If `.planning/​STATE.md` exists:
  1. Count todos: ls .planning/​todos/​pending/​*.md 2>/​dev/​null | wc -l
  2. Update "### Pending Todos" under "## Accumulated Context" </​step>
<step name="git_commit"> Commit the todo and any updated state:
git add .planning/​todos/​pending/[filename]
[ -f .planning/​STATE.md ] && git add .planning/​STATE.md
git commit -m "$(cat <<'EOF'
docs: capture todo - [title]

Area: [area]
EOF
)"

Confirm: "Committed: docs: capture todo - [title]" </​step>

<step name="confirm"> ``` Todo saved: .planning/​todos/​pending/[filename]

[title] Area: [area] Files: [count] referenced


Would you like to:

  1. Continue with current work
  2. Add another todo
  3. View all todos ({{COMMAND_PREFIX}}check-todos)
</​step>

</​process>

<output>
- `.planning/​todos/​pending/[date]-[slug].md`
- Updated `.planning/​STATE.md` (if exists)
</​output>

<anti_patterns>
- Don't create todos for work in current plan (that's deviation rule territory)
- Don't create elaborate solution sections — captures ideas, not plans
- Don't block on missing information — "TBD" is fine
</​anti_patterns>

<success_criteria>
- [ ] Directory structure exists
- [ ] Todo file created with valid frontmatter
- [ ] Problem section has enough context for future Claude
- [ ] No duplicates (checked and resolved)
- [ ] Area consistent with existing todos
- [ ] STATE.md updated if exists
- [ ] Todo and state committed to git
</​success_criteria>

More Other skills

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

179.7K 100.1K
View

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

179.7K 89.5K
View

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

179.7K 76.1K
View

Fundamental design principles for writing maintainable, testable Python code.

40.2K 21.9K
View

Modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first strategies.

40.2K 20K
View

Generate Playwright tests from scenarios using interactive browser exploration and validation.

39.7K 18.2K
View

Modern React state management with Redux Toolkit, Zustand, Jotai, and React Query for every state category.

40.2K 14.7K
View

GDPR-compliant data handling with consent management, data subject rights, and privacy controls.

40.2K 14.3K
View

Python error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic, designing exception strategies, handling batch processing failures, or building robust APIs.

40.2K 13.5K
View

Detailed multi-file refactor planning with safety checks and rollback guidance.

39.7K 13K
View