- Shell 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| agents | ||
| skills/long-task | ||
| install.sh | ||
| LICENSE | ||
| README.md | ||
agent-skills
My collection of OpenCode skills and subagents, in one repository instead of one repository per item.
Install
git clone https://git.metal3d.org/Patrice/agent-skills.git \
~/Projects/agent-skills
~/Projects/agent-skills/install.sh
The clone is anonymous over HTTPS. To contribute back with a key instead of a
password, point your own push URL at SSH — git remote set-url --push origin ssh://git@git.metal3d.org:2222/Patrice/agent-skills.git — and keep the
HTTPS URL for the public fetch.
Then let OpenCode read the skills where they are, by adding one source to
~/.config/opencode/opencode.jsonc:
{
"$schema": "https://opencode.ai/config.json",
"skills": ["~/Projects/agent-skills/skills"]
}
Nothing is copied into ~/.config/opencode/skills: a directory containing
SKILL.md is a skill, its ID comes from the path (skills/long-task/SKILL.md
→ long-task), and git pull is the update.
Agents are different: OpenCode only reads Markdown agents from
~/.config/opencode/agent/ (also agents/, and from a project's
.opencode/agent/), with no source list. install.sh symlinks agents/*.md
there, so a pull still updates them.
What is in it
| kind | id | what it does |
|---|---|---|
| skill | long-task |
Runs a long task unattended: a checklist, one agent turn per step, a build+test gate, a stall watchdog, a status command |
| agent | visual-state-inspector |
Captures the visual state of a GNOME/Wayland desktop for UI debugging |
| agent | vulnerability-scanner |
Scans code, dependencies and images with Trivy, and proposes fixes |
Deliberately absent: browseros-neo is installed and rewritten by browserclaw
(.browserclaw-managed.json carries a content hash), and inkscape-mcp
documents a server installed elsewhere (~/.local/share/inkscape-mcp), so a copy
here would drift or be overwritten.
Adding a skill
A skill belongs in skills/<id>/ when all three are true:
- you own the text — no installer rewrites the file, and no upstream copy exists in another checkout;
- it does not follow an API you do not own — a skill that documents the tools of an installed MCP server drifts at every server update;
- nothing machine-specific — no absolute path of your machine, no port, no token.
Otherwise it stays where its owner puts it, in ~/.config/opencode/skills/<id>/,
and earns a line under "Deliberately absent" with the reason. That is where
inkscape-mcp lives: the server is a checkout of
github.com/sandraschi/inkscape-mcp at ~/.local/share/inkscape-mcp, and the
skill OpenCode loads is a local adaptation of its documentation, so vendoring it
here would mean maintaining a fork.
To add one: mkdir skills/<id>, write SKILL.md with name and description
in the frontmatter, keep its helpers beside it, commit. On a machine that
already clones this repository, git pull is the whole installation — the
skills entry points at the directory, not at individual skills. A skill placed
in a project's .opencode/skills/ only applies inside that project; the global
copy is what makes it always available.
Using one skill, not the whole collection
Three different questions, and they do not have the same answer.
Everything. One entry in ~/.config/opencode/opencode.jsonc:
"skills": ["~/Projects/agent-skills/skills"]
A skills source must point at a directory containing skills, not at a skill:
<source>/long-task/SKILL.md is discovered, <source>/SKILL.md is not.
Only some. Leave that entry out and link the ones you want into the directory OpenCode scans by default:
ln -s ~/Projects/agent-skills/skills/long-task ~/.config/opencode/skills/long-task
A symlinked skill directory works — the first lookup after adding one can miss because discovery is cached, the next one sees it. Deleting the link removes the skill; the clone is untouched.
Installed, but not offered to the model. metadata.opencode/autoinvoke: false
in the frontmatter (or disable-model-invocation: true) keeps a skill out of the
advertised list while it stays loadable by ID; a skill permission set to deny
hides it entirely. That is a different axis from installing it.
One agent. ./install.sh vulnerability-scanner links that agent only, and
./install.sh without arguments links them all.
Layout
skills/<id>/SKILL.md the skill; supporting files live beside it
agents/<id>.md a Markdown agent: frontmatter + system prompt
install.sh links agents into ~/.config/opencode/agent/
License
MIT — see LICENSE. Each skill keeps its own history in this
repository (long-task was imported with git subtree, commits included).