Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ kt install
```

The installer prompts for:
- **Slash commands**: `/kt-create`, `/kt-run` (global or project scope)
- **Slash commands**: `/kt-create`, `/kt-run`, `/kt-run-all` (global or project scope)
- **kt permission**: Allows Claude to run kt commands without prompting

## AI Agent Setup
Expand All @@ -41,6 +41,7 @@ Add to your project's `CLAUDE.md`:
|---------|-------------|
| `/kt-create` | Create epic and tasks from a plan |
| `/kt-run` | Work through tasks: ready → start → implement → close |
| `/kt-run-all` | Process ALL tasks until none remain |

### Prompting Example

Expand Down
4 changes: 4 additions & 0 deletions internal/cmd/cmd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1515,6 +1515,8 @@ func TestInstallSlashCommands_Project(t *testing.T) {
assert.NoError(t, err)
_, err = os.Stat(filepath.Join(dir, ".claude/commands/kt-run.md"))
assert.NoError(t, err)
_, err = os.Stat(filepath.Join(dir, ".claude/commands/kt-run-all.md"))
assert.NoError(t, err)

// Check content
content, _ := os.ReadFile(filepath.Join(dir, ".claude/commands/kt-create.md"))
Expand All @@ -1534,6 +1536,8 @@ func TestInstallSlashCommands_Global(t *testing.T) {
assert.NoError(t, err)
_, err = os.Stat(filepath.Join(dir, "commands/kt-run.md"))
assert.NoError(t, err)
_, err = os.Stat(filepath.Join(dir, "commands/kt-run-all.md"))
assert.NoError(t, err)
}

func TestWriteKtMd(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions internal/cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var installCmd = &cobra.Command{

// Install slash commands
globalDir := getClaudeConfigDir()
cmdChoice := promptChoice(reader, "Install slash commands (/kt-create, /kt-run)?", []string{
cmdChoice := promptChoice(reader, "Install slash commands (/kt-create, /kt-run, /kt-run-all)?", []string{
fmt.Sprintf("Global (%s/commands/)", globalDir),
"Project (.claude/commands/)",
"Skip",
Expand Down Expand Up @@ -138,7 +138,7 @@ func installSlashCommands(global bool) error {
return fmt.Errorf("create commands directory: %w", err)
}

commands := []string{"kt-create.md", "kt-run.md"}
commands := []string{"kt-create.md", "kt-run.md", "kt-run-all.md"}
for _, cmd := range commands {
content, err := templatesFS.ReadFile("templates/" + cmd)
if err != nil {
Expand All @@ -154,7 +154,7 @@ func installSlashCommands(global bool) error {
if global {
scope = "global"
}
fmt.Printf("Installed /kt-create, /kt-run (%s)\n", scope)
fmt.Printf("Installed /kt-create, /kt-run, /kt-run-all (%s)\n", scope)
return nil
}

Expand Down
21 changes: 21 additions & 0 deletions internal/cmd/templates/kt-run-all.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Use kt to implement ALL tasks automatically.

1. Run `kt ready` to see available tasks
2. Start with first task, `kt start <id>`
3. Implement the task
4. `kt close <id>` when done
5. Loop back to step 1 until `kt ready` shows no tasks

## Workflow
- Process tasks in priority order (top first)
- Do NOT stop after one task—continue until all complete
- Use `kt add-note` to log blockers if stuck

## kt reference
```sh
kt ready # show actionable tasks
kt show <id> # view task details
kt start|close <id> # workflow transitions
kt add-note <id> "text" # log progress
kt ls --status=in_progress # see active work
```