@staff0rd/assist 0.350.2 → 0.351.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -63,6 +63,7 @@ After installation, the `assist` command will be available globally. You can als
63
63
  - `/journal` - Append a journal entry summarising recent work, decisions, and notable observations
64
64
  - `/next [id]` - Signal completion and chain into the next backlog item; pass an `id` to run a specific item directly (falls back to the picker if the id is missing, done, won't-do, or blocked)
65
65
  - `/standup` - Summarise recent journal entries as a standup update
66
+ - `/subtask <text>` - Add a sub-task to the backlog item this session is working on (errors if there is no current item) by calling `assist backlog add-subtask`
66
67
  - `/strip-comments` - Enforce self-documenting code: declare the comment policy in CLAUDE.md if absent, then strip redundant comments, commented-out code, and section banners from tracked source files (functional directives and genuine workaround comments are preserved); edits are left unstaged
67
68
  - `/sync` - Sync commands and settings to ~/.claude
68
69
  - `/test-cover` - Incrementally increase test coverage by identifying and testing uncovered files
@@ -128,6 +129,8 @@ The first backlog command in a repository that still has a local `.assist/backlo
128
129
  - `assist backlog add` - Add a new backlog item interactively (prompts for type: story/bug)
129
130
  - `assist backlog add --name <n> --type <t> --desc <d> --ac <criterion...>` - Add a backlog item from CLI options (used by `/draft`)
130
131
  - `assist backlog add-phase <id> <name> --task <t...> [--manual-check <c...>] [--position <pos>]` - Add a phase (appends by default; `--position` inserts at a 1-indexed position)
132
+ - `assist backlog add-subtask <id> --title <t> [--desc <d>]` - Add a sub-task (status `todo`) to a backlog item. Sub-tasks listed under the `subtasks` key (each `title` and optional `description`) in `assist.yml` and `~/.assist.yml` are auto-applied to every newly created item (stories and bugs); the global and project lists are combined
133
+ - `assist backlog subtask-status <id> <idx> <status>` - Set a sub-task's status (`todo`, `in-progress`, `done`) by its 1-based index from `backlog show`
131
134
  - `assist backlog update-field <id> [--name <n>] [--desc <d>] [--type <t>] [--ac <criterion...>]` - Update fields on a backlog item
132
135
  - `assist backlog update-field <id> [--add-ac <text>] [--edit-ac <n> <text>] [--remove-ac <n>]` - Granular acceptance-criteria edits using 1-based indices matching `backlog show`: `--add-ac` appends (repeatable), `--edit-ac` replaces criterion n in place, `--remove-ac` deletes criterion n and renumbers the rest (cannot be combined with the whole-list `--ac`)
133
136
  - `assist backlog update-phase <id> <phase> [--name <n>] [--task <t...>] [--manual-check <c...>]` - Modify a plan phase (name, tasks, or manual checks)
@@ -137,7 +140,7 @@ The first backlog command in a repository that still has a local `.assist/backlo
137
140
  - `assist backlog refine [id] [--once]` - Alias for `refine`
138
141
  - `assist backlog start <id>` - Set a backlog item to in-progress
139
142
  - `assist backlog stop` - Revert all in-progress backlog items to todo and reset their phase to 1
140
- - `assist backlog done <id>` - Set a backlog item to done
143
+ - `assist backlog done <id>` - Set a backlog item to done (blocked while any sub-task is not done)
141
144
  - `assist backlog wontdo <id> [reason]` - Set a backlog item to won't do
142
145
  - `assist backlog set-status <id> <status>` - Set a backlog item to a specific status (`todo`, `in-progress`, `done`, `wontdo`)
143
146
  - `assist backlog star <id>` - Star a backlog item to pin it ahead of unstarred items in the web view
@@ -0,0 +1,24 @@
1
+ ---
2
+ description: Add a sub-task to the session's current backlog item
3
+ allowed_args: "<sub-task text>"
4
+ ---
5
+
6
+ You are adding a sub-task to the backlog item this session is working on by calling the `assist backlog add-subtask` CLI command.
7
+
8
+ ## Step 1: Resolve the target item
9
+
10
+ Use the backlog item this session is working on — the one you are implementing, reviewing, or otherwise focused on (e.g. via `/next-backlog-item`, a `backlog run`, or earlier in this conversation). Use its id directly.
11
+
12
+ If this session is not working on a backlog item, there is nothing to attach the sub-task to — tell the user there is no current item and ask them to run this from a session working on one (or to add the sub-task with `assist backlog add-subtask <id>` directly).
13
+
14
+ ## Step 2: Add the sub-task
15
+
16
+ `$ARGUMENTS` is the sub-task title. Call the CLI command with the resolved id:
17
+
18
+ ```
19
+ assist backlog add-subtask <id> --title '<sub-task text>' 2>&1
20
+ ```
21
+
22
+ Use single quotes around the title to avoid shell escaping issues. The sub-task is created with status `todo`.
23
+
24
+ Display the command output so the user can see the result. If the command reports an error (item not found, or a missing title), relay it to the user.
@@ -87,6 +87,8 @@
87
87
  "SlashCommand(/recall)",
88
88
  "Skill(strip-comments)",
89
89
  "SlashCommand(/strip-comments)",
90
+ "Skill(subtask)",
91
+ "SlashCommand(/subtask)",
90
92
  "Bash(git ls-files:*)",
91
93
  "WebFetch(domain:staffordwilliams.com)"
92
94
  ],