- Shell 100%
|
|
||
|---|---|---|
| docs | ||
| instructions | ||
| skills | ||
| favicon.png | ||
| LICENSE | ||
| README.md | ||
| skills.list | ||
| sync-skills.sh | ||
skills-global
My global AGENTS.md and the default skills I load in Codex and Claude Code.
The instructions and skills live in one place and every agent links to them. Clone this repo, symlink the instructions into place, then run sync-skills.sh to link the skills. None of this needs Git authentication.
Install
Run these steps as your user.
git clone https://git.opbao.be/master/skills-global.git ~/git/forgejo/skills-global. The script expects this exact path.- Symlink
instructions/AGENTS.mdto~/.codex/AGENTS.mdand~/.claude/CLAUDE.md. - Create
~/.agents/skills, then symlink~/.claude/skillsto it. - Run
~/git/forgejo/skills-global/sync-skills.sh.
The script does not touch the links from steps 2 and 3. Create them by hand or with a tool such as Ansible.
Sync skills
sync-skills.sh reads skills.list. Each line holds a full clone URL and the path to a skill folder in that repo. For each line, the script clones the repo into ~/git/forgejo/<repo> if it is missing, runs git pull --ff-only, and creates or updates the symlink ~/.agents/skills/<skill-folder-name>. The <repo> name comes from the URL.
Re-run it on each host to pick up changes.
- It prints
ok <skill>when a link is already correct andlinked <skill> -> <target>when it creates or updates one. Automation can rely on these two prefixes. - A failed clone or pull prints
FAIL, skips that repo's links, and the script exits non-zero after the remaining lines. Fix the repo by hand. The script never forces anything. - If a link path exists and is not a symlink, the script prints
STOPand exits without deleting it. - It never touches
~/.agents/skills/synced/. - It does not remove links. After deleting a line from a list, remove the link by hand on each host.
- It never rewrites a remote. A repo that already exists keeps its origin, so a repo cloned over SSH still pulls and pushes over SSH, and that pull needs SSH access.
To add a public skill, add a <clone-url> <path-to-skill-folder> line to skills.list.
Private skills
skills.list holds public skills only. List private skills in a separate file outside this repo, such as ~/.config/agent-skills/private.list. It uses the same format:
ssh://git@git.example.com/you/private-skill.git path/to/skill-folder
Authenticate the host, then pass the file as an argument. The script syncs skills.list first, then that file.
~/git/forgejo/skills-global/sync-skills.sh ~/.config/agent-skills/private.list
Where a skill lives
- Small skills with no tooling go in this repo, under
skills/. - Skills with references, scripts or tests get their own repo.
Imported skills stay whole, so the two format files in skills/domain-modeling don't move it to its own repo.
Layout
instructions/AGENTS.md. Global instructions, kept short. It covers who I am, preferences and guardrails.skills/. Global skills, each with its ownSKILL.md.skills/UPSTREAM.md. Source commit, local edits and update procedure for the skills copied frommattpocock/skills.skills/LICENSE-mattpocock. MIT license for those copied skills.skills/unslop/LICENSE. MIT license forunslop, which I adapted fromcursor/plugins.skills.list. Every public skill to link on a host, including those in other repos.sync-skills.sh. Clones and updates the repos inskills.listand links the skills.docs/work-with-skills.md. How AGENTS.md/CLAUDE.md and skills fit together, covering discovery, invocation policy, and repo-local vs global.
License
MIT, see LICENSE. The skills copied from other projects keep their own MIT notices, in skills/LICENSE-mattpocock and skills/unslop/LICENSE.