My skills and instructions that I want on every machine.
Find a file
Master e0b3337984
ADD: favicon for T3 Code
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 22:26:12 +01:00
docs ADD: public skills, instructions and anonymous sync script 2026-11-01 10:35:18 +01:00
instructions ADD: public skills, instructions and anonymous sync script 2026-11-01 10:35:18 +01:00
skills ADD: public skills, instructions and anonymous sync script 2026-11-01 10:35:18 +01:00
favicon.png ADD: favicon for T3 Code 2026-11-04 22:26:12 +01:00
LICENSE ADD: MIT license 2026-11-01 10:55:44 +01:00
README.md ADD: MIT license 2026-11-01 10:55:44 +01:00
skills.list ADD: public skills, instructions and anonymous sync script 2026-11-01 10:35:18 +01:00
sync-skills.sh ADD: public skills, instructions and anonymous sync script 2026-11-01 10:35:18 +01:00

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.

  1. git clone https://git.opbao.be/master/skills-global.git ~/git/forgejo/skills-global. The script expects this exact path.
  2. Symlink instructions/AGENTS.md to ~/.codex/AGENTS.md and ~/.claude/CLAUDE.md.
  3. Create ~/.agents/skills, then symlink ~/.claude/skills to it.
  4. 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 and linked <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 STOP and 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 own SKILL.md.
  • skills/UPSTREAM.md. Source commit, local edits and update procedure for the skills copied from mattpocock/skills.
  • skills/LICENSE-mattpocock. MIT license for those copied skills.
  • skills/unslop/LICENSE. MIT license for unslop, which I adapted from cursor/plugins.
  • skills.list. Every public skill to link on a host, including those in other repos.
  • sync-skills.sh. Clones and updates the repos in skills.list and 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.