@staff0rd/assist 0.195.3 → 0.196.1

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
@@ -41,6 +41,7 @@ After installation, the `assist` command will be available globally. You can als
41
41
  - `/draft` - Draft a new backlog item with LLM-assisted questioning
42
42
  - `/pr` - Raise a PR with a concise description
43
43
  - `/refactor` - Run refactoring checks for code quality
44
+ - `/prompts` - Analyze denied tool calls and suggest settings changes to auto-allow recurring prompts
44
45
  - `/refine` - Refine an existing backlog item through conversation
45
46
  - `/restructure` - Analyze and restructure tightly-coupled files
46
47
  - `/review-comments` - Process PR review comments one by one
@@ -175,6 +176,7 @@ After installation, the `assist` command will be available globally. You can als
175
176
  - `assist seq query <filter> --from <date>` - Start of query window (UTC date or relative e.g. 5m, 1h, 2d)
176
177
  - `assist seq query <filter> --to <date>` - End of query window (UTC date or relative e.g. 5m, 1h, 2d)
177
178
  - `assist screenshot <process>` - Capture a screenshot of a running application window (e.g. `assist screenshot notepad`). Output directory is configurable via `screenshot.outputDir` (default `./screenshots`)
179
+ - `assist prompts` - Show top 10 denied tool calls by frequency with count and repo breakdown
178
180
  - `assist coverage` - Print global statement coverage percentage
179
181
  - `assist complexity <pattern>` - Analyze a file (all metrics if single match, maintainability if multiple)
180
182
  - `assist complexity cyclomatic [pattern]` - Calculate cyclomatic complexity per function
@@ -0,0 +1,22 @@
1
+ ---
2
+ description: Analyze denied tool calls and suggest settings changes to auto-allow recurring prompts
3
+ ---
4
+
5
+ Run `assist prompts 2>&1` to get the list of most frequently denied tool calls.
6
+
7
+ If there are no denied tool calls, tell the user there's nothing to fix yet and stop.
8
+
9
+ Otherwise, analyze each entry and suggest specific changes to auto-allow the recurring prompts. For each entry, recommend ONE of:
10
+
11
+ 1. **Add a permission rule** to `claude/settings.json` `permissions.allow` — for safe, read-only commands that should always be allowed (e.g. `Bash(git log:*)`, `Bash(npm test:*)`)
12
+ 2. **Add a cli-hook allow entry** via `assist cli-hook add <cli>` — when an entire CLI's read verbs should be auto-approved
13
+ 3. **Skip** — when the denial is appropriate (write operations, destructive commands, or commands that should require confirmation)
14
+
15
+ Present your suggestions as a numbered list with the specific change for each. Group related suggestions together.
16
+
17
+ **Important:**
18
+ - Only suggest allowing read-only, non-destructive commands
19
+ - Never suggest allowing write operations (git push, rm, npm publish, etc.) without flagging them as risky
20
+ - Reference the deny reason from the output to explain why each command was blocked
21
+ - After presenting suggestions, ask the user which changes they'd like to apply
22
+ - Do NOT modify `claude/settings.json` without the user's explicit approval
@@ -57,6 +57,8 @@
57
57
  "SlashCommand(/seq)",
58
58
  "Skill(inspect)",
59
59
  "SlashCommand(/inspect)",
60
+ "Skill(prompts)",
61
+ "SlashCommand(/prompts)",
60
62
  "Skill(screenshot)",
61
63
  "SlashCommand(/screenshot)",
62
64
  "Skill(draft)",