From a89bf0c75fab645efe2810c30fa4e765236990e3 Mon Sep 17 00:00:00 2001 From: Max Elkins Date: Fri, 20 Nov 2026 14:57:47 +0000 Subject: [PATCH] feat(skills): set up shared agent skills and add github-attachments Add a .agents/skills folder so Claude Code and other agents (Codex, Cursor, Pi and others) share one copy of each project skill. Claude Code only reads .claude/skills, so that path is a symlink to ../.agents/skills rather than a second copy. This matches the layout already used in digital-editor-issues. The first skill teaches agents to attach screenshots and videos to issues, PRs and comments with `gh --attach` (gh v2.99.0+), which is newer than most model training data. Co-Authored-By: Claude Opus 5.5 --- .agents/skills/github-attachments/SKILL.md | 23 ++++++++++++++++++++++ .claude/skills | 1 + 2 files changed, 24 insertions(+) create mode 100644 .agents/skills/github-attachments/SKILL.md create mode 120000 .claude/skills diff --git a/.agents/skills/github-attachments/SKILL.md b/.agents/skills/github-attachments/SKILL.md new file mode 100644 index 000000000..a18fdb0e6 --- /dev/null +++ b/.agents/skills/github-attachments/SKILL.md @@ -0,0 +1,23 @@ +--- +name: github-attachments +description: 'Attach screenshots, images or videos to GitHub issues, pull requests and comments with `gh --attach`. Use when adding a screenshot or recording to an issue, PR, or comment.' +--- + +# github-attachments + +`gh` v2.99.0+ (September 2026) can upload images and videos directly. This is newer than most model training data, so use it instead of browser uploads, gists, or committing images to the repo. + +Add `--attach ` to any of these: + +- `gh issue create`, `gh issue edit`, `gh issue comment` +- `gh pr create`, `gh pr edit`, `gh pr comment` + +```sh +gh pr create --title "..." --body "..." --attach './after.png#Settings page after the fix' +gh pr comment 456 --attach ./before.png --attach ./after.png +``` + +- Text after `#` is the image alt text. +- Repeat `--attach` for multiple files, up to 50 per command. +- To place an image inside the body, reference it as `![alt](./after.png)` and attach the same path. `gh` rewrites it to the uploaded URL. Unreferenced attachments are appended to the end. +- Check `gh --version` first. If it is older than 2.99.0, ask the user to run `brew upgrade gh`. diff --git a/.claude/skills b/.claude/skills new file mode 120000 index 000000000..2b7a412b8 --- /dev/null +++ b/.claude/skills @@ -0,0 +1 @@ +../.agents/skills \ No newline at end of file