Skip to content

Commit bf0777d

Browse files
committed
docs: improve executable command example
Replace generic /context example with /todo - finds TODO/FIXME comments and asks the model to help address them. More practical demonstration of dynamic content.
1 parent 4c74127 commit bf0777d

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

docs/hooks/slash-commands.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,16 @@ For dynamic content, use an executable:
8484

8585
```bash
8686
#!/usr/bin/env bash
87-
# .mux/commands/context
88-
# usage: /context - show current git context
87+
# .mux/commands/rebase
88+
# usage: /rebase - fetch origin and rebase onto main
89+
90+
git fetch origin
91+
git rebase origin/main
8992

90-
echo "Current directory: $(pwd)"
91-
echo "Git branch: $(git branch --show-current)"
92-
echo "Recent commits:"
93-
git log --oneline -5
93+
echo "Rebased onto origin/main. Ready for next task."
9494
```
9595

96-
**Usage:** `/context`
96+
**Usage:** `/rebase`
9797

9898
### Level 3: Using Arguments
9999

src/browser/stories/App.slashCommands.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export const WithCustomCommands: AppStory = {
7575
[
7676
{ name: "dry", description: "/dry - do a dry run without making changes" },
7777
{ name: "review", description: "/review - review changes before committing" },
78-
{ name: "context", description: "/context - summarize project context" },
78+
{ name: "rebase", description: "/rebase - fetch origin and rebase onto main" },
7979
{ name: "pr-summary", description: "/pr-summary - generate a PR description" },
8080
],
8181
],
@@ -128,7 +128,7 @@ export const FilteredCommands: AppStory = {
128128
[
129129
{ name: "dry", description: "/dry - do a dry run" },
130130
{ name: "review" },
131-
{ name: "context", description: "/context - summarize project context" },
131+
{ name: "rebase", description: "/rebase - fetch and rebase onto main" },
132132
],
133133
],
134134
]),

0 commit comments

Comments
 (0)