Skip to content

Commit 9ee7477

Browse files
sachiniyerclaude
andcommitted
fix(skills): drop $ARGUMENTS templating from detail-bugs and detail-create-rules
When invoked with prose, Claude Code interpolates the full sentence into $ARGUMENTS and the CLI rejects it as a malformed owner/repo. The CLI already infers the repo from the git remote; if a different repo is needed, Claude can pass an explicit flag instead of relying on skill templating. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 6ab434c commit 9ee7477

2 files changed

Lines changed: 7 additions & 17 deletions

File tree

‎.claude/skills/detail-bugs/SKILL.md‎

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: detail-bugs
33
description: Fetch Detail bugs for a repository. List pending bugs, show details for each, fix the bugs, and mark them as resolved or dismissed.
4-
argument-hint: <owner/repo>
54
---
65

76
# Fetch Detail Bugs
@@ -10,11 +9,7 @@ Get bugs from Detail for a repository and help the user triage them.
109

1110
## Determining the Repository
1211

13-
If `$ARGUMENTS` is not empty, use it as the repository (`owner/repo`) for all `detail bugs` commands.
14-
15-
Otherwise, the Detail CLI will infer the repository from the git remote. Use the CLI with no repository specified.
16-
17-
If commands fail to infer the repository, ask the user to provide the repository and use it for the `detail bugs` commands.
12+
The Detail CLI infers the repository from the git remote; if the user specifies a different repo, pass it explicitly to the CLI commands.
1813

1914
## Prerequisites
2015

@@ -30,14 +25,14 @@ The user must be authenticated. Assume that the user is authed and run commands
3025
To scope bugs to a particular scan, first get the scan's workflow request ID:
3126

3227
```bash
33-
detail scans list $ARGUMENTS
28+
detail scans list
3429
```
3530

3631
The output includes a `Workflow ID` column (values like `wr_...`). Then pass
3732
that ID to `bugs list`:
3833

3934
```bash
40-
detail bugs list $ARGUMENTS --scan-id <workflow_request_id>
35+
detail bugs list --scan-id <workflow_request_id>
4136
```
4237

4338
This returns only bugs found in that scan, still filtered by `--status`
@@ -46,7 +41,7 @@ closed bugs for the scan.
4641

4742
## Step 1: List pending bugs
4843

49-
Run `detail bugs list $ARGUMENTS` to fetch all pending bugs.
44+
Run `detail bugs list` to fetch all pending bugs.
5045

5146
Present the list to the user and ask which bug they want to look at first, or
5247
offer to go through them in order.

‎.claude/skills/detail-create-rules/SKILL.md‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: detail-create-rules
33
description: Interactively create a new Detail rule for a repository — gather context, submit the creation request, wait for completion, review the results, and pull them locally. Use when asked to "create a rule", "add a rule", "propose rules", "create/propose a Detail rule", or similar.
4-
argument-hint: <owner/repo>
54
---
65

76
# Create a Detail Rule
@@ -10,11 +9,7 @@ Guide the user through creating one or more new rules for their repository.
109

1110
## Determining the Repository
1211

13-
If `$ARGUMENTS` is not empty, use it as the repository (`owner/repo`) for all `detail rules` commands.
14-
15-
Otherwise, the Detail CLI will infer the repository from the git remote. Use the CLI with no repository specified.
16-
17-
If commands fail to infer the repository, ask the user to provide the repository and use it for the `detail rules` commands.
12+
The Detail CLI infers the repository from the git remote; if the user specifies a different repo, pass it explicitly to the CLI commands.
1813

1914
## Prerequisites
2015

@@ -36,12 +31,12 @@ Ask the user what they want to do:
3631

3732
**For a specific rule**, build the command from whatever context the user provided. At least one of `--description`, `--bug-ids`, or `--commit-shas` is required:
3833
```bash
39-
detail rules create $ARGUMENTS [--description "<description>"] [--bug-ids <id1,id2>] [--commit-shas <sha1,sha2>]
34+
detail rules create [--description "<description>"] [--bug-ids <id1,id2>] [--commit-shas <sha1,sha2>]
4035
```
4136

4237
**For AI-proposed rules**:
4338
```bash
44-
detail rules propose $ARGUMENTS
39+
detail rules propose
4540
```
4641

4742
Both commands return a request ID (`rcr_...`). Save it — you will need it to poll for status.

0 commit comments

Comments
 (0)