Skip to content

Commit ea3c0ce

Browse files
committed
docs: add missing feature examples
New examples: - interactive.i.claude.md: Interactive mode via .i. filename - command-inline.claude.md: Shell command inlines (!`cmd`) - line-range.claude.md: Line range imports (@file:10-50) - symbol-extract.claude.md: TypeScript symbol extraction (@file#Symbol) - subcommand.codex.md: _subcommand for codex exec
1 parent e1a946f commit ea3c0ce

File tree

5 files changed

+53
-0
lines changed

5 files changed

+53
-0
lines changed

examples/command-inline.claude.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
# Command inlines - embed shell command output in prompts
3+
# Usage: md command-inline.claude.md
4+
model: sonnet
5+
print: true
6+
---
7+
8+
Based on the current git status:
9+
!`git status --short`
10+
11+
And recent commits:
12+
!`git log --oneline -5`
13+
14+
What should I work on next?

examples/interactive.i.claude.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
# Interactive mode - the .i. in filename enables interactive session
3+
# Usage: md interactive.i.claude.md
4+
# This runs: claude "..." (no --print flag, stays in session)
5+
model: sonnet
6+
---
7+
8+
Let's have a conversation about this codebase.
9+
10+
@./src/index.ts

examples/line-range.claude.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
# Line range imports - extract specific lines from a file
3+
# Usage: md line-range.claude.md
4+
model: sonnet
5+
print: true
6+
---
7+
8+
Explain what this section of the CLI runner does:
9+
10+
@./src/cli-runner.ts:136-160

examples/subcommand.codex.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
# Subcommand - prepend subcommands to CLI args
3+
# Usage: md subcommand.codex.md
4+
# This runs: codex exec --full-auto "..."
5+
_subcommand: exec
6+
full-auto: true
7+
---
8+
9+
Analyze this codebase and suggest improvements.

examples/symbol-extract.claude.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
# Symbol extraction - extract specific TypeScript symbols
3+
# Usage: md symbol-extract.claude.md
4+
model: sonnet
5+
print: true
6+
---
7+
8+
Explain this interface and suggest improvements:
9+
10+
@./src/types.ts#AgentFrontmatter

0 commit comments

Comments
 (0)