Skip to content

Commit 5a51606

Browse files
authored
fix(skill): use portable Agent Skills frontmatter (#57)
Encode `allowed-tools` as a space-delimited string and add the spec's `compatibility` field, so SKILL.md validates against the Agent Skills spec and `gh skill publish`. Rule set is unchanged: Claude Code's parser is paren-aware, so the string resolves to the same 13 permissions as the previous YAML list. Also condenses the README's multi-agent install guidance to one paragraph.
1 parent cce7ba9 commit 5a51606

2 files changed

Lines changed: 7 additions & 15 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ Happens consistently after the third click."
148148
npx skills add drogers0/gh-image
149149
```
150150

151-
The open [Agent Skills standard](https://agentskills.io/clients) is supported by **Claude Code**, **OpenAI Codex**, **Cursor**, **GitHub Copilot**, and [many more](https://agentskills.io/clients). The skill checks that this extension is present (asking you to install it if not), runs the upload, and embeds the resulting `user-attachments` URL into a PR, issue, or comment. It never installs anything on your behalf.
151+
The installer detects your local agents automatically; add `--agent claude-code codex opencode --global` to install for several at once. The open [Agent Skills standard](https://agentskills.io/clients) is supported by **Claude Code**, **OpenAI Codex**, **OpenCode**, **Cursor**, **GitHub Copilot**, and [many more](https://agentskills.io/clients). The skill checks that this extension is present (asking you to install it if not), runs the upload, and embeds the resulting `user-attachments` URL into a PR, issue, or comment. It never installs anything on your behalf.
152152

153153
## Who's using gh-image
154154

skills/github-image-upload/SKILL.md

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,14 @@ description: >-
1010
document or attach files to changes on GitHub. Powered by the `gh-image` gh CLI
1111
extension.
1212
license: MIT
13+
compatibility: Requires the GitHub CLI (`gh`), network access to GitHub, and the `drogers0/gh-image` extension v1.1.0 or newer.
1314
# gh pr/issue edit and comment are listed for hosts that check each pipeline stage;
1415
# whole-string matchers resolve them via the leading printf.
15-
allowed-tools:
16-
- Glob
17-
- Bash(gh auth status)
18-
- Bash(gh extension list:*)
19-
- Bash(gh image:*)
20-
- Bash(gh pr view:*)
21-
- Bash(gh pr edit:*)
22-
- Bash(gh pr comment:*)
23-
- Bash(gh issue view:*)
24-
- Bash(gh issue edit:*)
25-
- Bash(gh issue comment:*)
26-
- Bash(printf:*)
27-
- Bash(grep:*)
28-
- Bash(cat:*)
16+
allowed-tools: >-
17+
Glob Bash(gh auth status) Bash(gh extension list:*) Bash(gh image:*)
18+
Bash(gh pr view:*) Bash(gh pr edit:*) Bash(gh pr comment:*)
19+
Bash(gh issue view:*) Bash(gh issue edit:*) Bash(gh issue comment:*)
20+
Bash(printf:*) Bash(grep:*) Bash(cat:*)
2921
---
3022

3123
# Upload images and files to GitHub (gh-image)

0 commit comments

Comments
 (0)