@staff0rd/assist 0.185.0 → 0.186.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 +1 -0
- package/claude/commands/add-command.md +28 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,6 +33,7 @@ After installation, the `assist` command will be available globally. You can als
|
|
|
33
33
|
|
|
34
34
|
## Claude Commands
|
|
35
35
|
|
|
36
|
+
- `/add-command` - Add a new run command to assist.yml
|
|
36
37
|
- `/bug` - File a bug with reproduction steps, expected and actual behavior
|
|
37
38
|
- `/comment` - Add pending review comments to the current PR
|
|
38
39
|
- `/commit` - Commit only relevant files from the session
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Add a new run command to assist.yml
|
|
3
|
+
allowed_args: "[description of the command to add]"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
The user wants to register a new run command via `assist run add`. This command adds a named entry to the `run` section of `assist.yml` so it can be invoked with `assist run <name>`.
|
|
7
|
+
|
|
8
|
+
## Step 1: Understand the request
|
|
9
|
+
|
|
10
|
+
If the user provided a description via $ARGUMENTS, use that as a starting point. Otherwise, ask what command they want to add.
|
|
11
|
+
|
|
12
|
+
## Step 2: Determine the correct syntax
|
|
13
|
+
|
|
14
|
+
Run `assist run add --help` to see the current CLI usage and options. Use the output to construct the correct command.
|
|
15
|
+
|
|
16
|
+
## Step 3: Add the command
|
|
17
|
+
|
|
18
|
+
Run `assist run add <name> <command> [args...]` with the appropriate arguments. For example:
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
assist run add lint biome check --write
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
If the command needs a working directory, use `--cwd <dir>`.
|
|
25
|
+
|
|
26
|
+
## Step 4: Verify
|
|
27
|
+
|
|
28
|
+
Run `assist run <name>` to confirm the command works, or `assist run <name> --help` if it accepts params.
|
package/dist/index.js
CHANGED