Skip to content
This repository was archived by the owner on Jan 19, 2026. It is now read-only.

Commit 8d72f31

Browse files
committed
feat: add execute-plan slash command
Add /execute-plan command that finds and executes the most recently modified *plan-*.md file in the current directory.
1 parent 63ed055 commit 8d72f31

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@ Export all plans with timestamps:
4646

4747
This exports plans with the source file's last modified time prepended: `YYYYMMDD-HH:MM:SS-plan-{slug}.md`
4848

49+
### Execute Plan
50+
51+
Execute the most recent plan in the current directory:
52+
53+
```
54+
/execute-plan
55+
```
56+
57+
This finds the most recently modified `*plan-*.md` file and executes it.
58+
4959
## How It Works
5060

5161
1. Plan with Opus or any model in Plan Mode as usual
@@ -68,6 +78,7 @@ scripts/
6878
commands/
6979
export-project-plans.md # Slash command definition
7080
export-project-plans-with-timestamp.md # Slash command definition
81+
execute-plan.md # Execute most recent plan
7182
```
7283

7384
## Development

commands/execute-plan.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
description: Execute the plan in current working directory
3+
disable-model-invocation: true
4+
allowed-tools: Bash(ls:*), Read
5+
---
6+
7+
Execute the plan !`ls -t *plan-*.md | head -1`

0 commit comments

Comments
 (0)