Intent List
You are helping the user view their intents.
Workflow
- •
Intents folder is
~/.claude-intents/ - •
Get current repository name for filtering:
- •Run:
basename $(git rev-parse --show-toplevel 2>/dev/null) || basename $(pwd)
- •Run:
- •
Check if
{intents_folder}/in-progress/exists - •
List all folders in
{intents_folder}/in-progress/ - •
Filter intents by current repository:
- •Intent folder format:
YYYY-mm-dd-{repository-name}-{intent-description} - •Only show intents where the folder name contains the current repository name
- •Intent folder format:
- •
For each matching intent folder:
- •Read the spec.md file
- •Extract: title, date started, and status
- •Show a summary
- •
Display in this format:
code## Open Intents ### 1. [Intent Title] - **Folder:** {intents_folder}/in-progress/YYYY-mm-dd-{repo}-{description}/ - **Started:** YYYY-MM-DD - **Status:** In Progress - **Requirements:** X/Y completed ### 2. [Another Intent] ... - •
If no open intents exist for the current repository, say: "No open intents found for this repository. Use
/intent-startto begin a new intent." - •
Optionally, offer to show done intents if the user wants to see them
Important Notes
- •Intents folder: All intents are stored in
~/.claude-intents/ - •Repository filtering: Only show intents that match the current repository name
- •To get the current repository name, run:
basename $(git rev-parse --show-toplevel 2>/dev/null) || basename $(pwd) - •Intent folder naming format:
YYYY-mm-dd-{repository-name}-{intent-description} - •Search for open intents in
~/.claude-intents/in-progress/ - •Search for done intents in
~/.claude-intents/done/ - •Count checkboxes in spec.md to show progress (e.g., "3/5 requirements completed")
- •Sort by date (newest first)
- •Make the output scannable and concise