Tracked Repositories
Git repos installed with --track for team sharing and easy updates.
Tracked repos are how organizations distribute shared skills. Install once with --track, then update with a single command. Changes flow from the maintainer's repo to every team member.
Overview
Tracked repositories are git repos cloned into your source with their .git directory preserved. This enables:
- Team sharing: Everyone installs the same repo
- Easy updates:
skillshare update <name>runs git pull - Version control: Track which commit you're on
Regular Skills vs Tracked Repos
| Aspect | Regular Skill | Tracked Repo |
|---|---|---|
| Source | Copied to source | Cloned with .git |
| Update | install --update | update <name> (git pull) |
| Prefix | None | _ prefix |
| Nested skills | Flattened | Flattened with __ |
Installing a Tracked Repo
skillshare install github.com/team/shared-skills --track
skillshare sync
What happens:
- Repo is cloned to
~/.config/skillshare/skills/_team-shared-skills/ .gitdirectory is preserved- The clone directory is added to the managed
.gitignoreblock so it stays machine-local and is not committed as a nested git repository - Entire repo is security-audited using active install threshold (
audit.block_thresholdor--threshold) - Nested skills are flattened for AI CLIs
If findings hit the threshold, install is blocked unless --force is used. A scan that cannot run also blocks it, even with --force. On block, skillshare removes the cloned repo automatically; if cleanup fails, the command reports the exact path for manual cleanup.
The Underscore Prefix
Tracked repos are prefixed with _ to distinguish them from regular skills:
~/.config/skillshare/skills/
├── my-skill/ # Regular skill (no prefix)
├── code-review/ # Regular skill
└── _team-skills/ # Tracked repo (underscore prefix)
The directory name comes from the owner and repo (_<owner>-<repo>), so alice/skills and bob/skills install as _alice-skills and _bob-skills instead of colliding. Use --name to pick a different name. Repos you installed earlier keep their current names.
A tracked repo installed with --into sits inside a folder, such as devops/_team-skills/. It is still treated as one repo: its skills are grouped under it, status counts them, and you update or uninstall it as devops/_team-skills. Below the top level, an _ folder counts as a tracked repo only when it is a git clone, so a plain folder like devops/_drafts/ stays a regular folder.
Nested Skills & Auto-Flattening
Skill repos often organize skills in folders. skillshare automatically flattens them for AI CLIs:
SOURCE TARGET
(your organization) (what AI CLI sees)
────────────────────────────────────────────────────────────
_team-skills/
├── frontend/
│ ├── react/ ───► _team-skills__frontend__react/
│ └── vue/ ───► _team-skills__frontend__vue/
├── backend/
│ └── api/ ───► _team-skills__backend__api/
└── devops/
└── deploy/ ───► _team-skills__devops__deploy/
• _ prefix = tracked repository
• __ (double underscore) = path separator
Why Auto-Flattening?
| Benefit | Description |
|---|---|
| AI CLI compatibility | Most AI CLIs expect skills in a flat directory, not nested folders |
| Preserve organization | Keep logical folder structure in source while meeting CLI requirements |
| Traceability | Flattened name shows origin path (e.g., _team__frontend__react → came from _team/frontend/react/) |
| No manual work | skillshare handles the transformation automatically during sync |
You organize, skillshare adapts. Write skills in any folder structure; they'll work everywhere.
Auto-flattening works for all skills, not just tracked repos. You can organize your personal skills in folders too. See Organize with Folders.
Target directories inside a tracked repo, such as .claude/skills/ or .agents/skills/, usually hold copies of the repo's skills, so sync skips them. The exception is a repo whose only skills are in its root .agents/skills/: those skills are discovered, so _psychopomp/.agents/skills/explainer-motion/ syncs as _psychopomp__.agents__skills__explainer-motion.
Rehydrating After a Fresh Clone
Tracked repo clone directories are intentionally ignored by git because they contain their own .git directory. If you clone or pull your skillshare source repo on a new machine, .metadata.json may already declare tracked repos while the _team-skills/ clone directory is still missing.
Run no-argument install to recreate missing tracked repo clones from metadata:
skillshare install
skillshare sync
For project mode, run:
skillshare install -p
skillshare sync -p
status, check, update --all, and doctor report missing tracked repo clones and suggest skillshare install instead of silently ignoring them.
Updating Tracked Repos
Single repo
skillshare update _team-skills
skillshare sync
All tracked repos
skillshare update --all
skillshare sync
What happens:
Isolated candidate → git pull → audit → publish approved commit
Security behavior during updates:
- Pull and audit run in an isolated candidate; existing target links keep reading the active checkout.
- Sparse-checkout selection and existing integrity hashes are preserved. Unresolvable symlinks or links escaping the candidate reject the update as a scan error.
- Blocking uses the active threshold (
audit.block_thresholdby default, or per-command--threshold/-Toverride). - In TTY mode,
skillshare updateprompts when findings hit threshold; in non-TTY mode it rejects the candidate unless overridden. - Rejection or a scan error leaves the active checkout and metadata unchanged.
--forcecannot override scan errors;--skip-auditdisables scanning. - Approval publishes the exact audited commit without another upstream pull. Publication is not an atomic multi-file switch.
Uninstalling
skillshare uninstall _team-skills
For existing checkouts (including links to Git checkouts):
What happens:
- Checks for uncommitted changes and stops if it finds any, or if it cannot read the git status (
--forceoverrides) - Moves the directory to trash (kept 7 days)
- Next
syncremoves the symlinks from targets
In global mode, an explicitly named tracked declaration with no checkout here (absent, a plain folder, or a link to a non-checkout) can be removed without contacting its source, even if the source is unreachable. Only its record and audit acceptances are removed: the occupant and .gitignore stay untouched, no Git check runs, and nothing goes to trash. trash restore cannot undo this removal. Use the canonical _ name or full recorded path, such as skillshare uninstall devops/_team-skills -g; shorthand can select an existing skill or folder. Globs, --all, and --group do not select declarations without checkouts.
Deleting a checkout by hand leaves its global declaration. To restore missing checkouts instead of dropping their declarations, run skillshare install -g with reachable sources and free destinations. If a later install or reconcile walks a plain folder or followed link to a non-checkout at a declared path, it normalizes the entry to an ordinary record (Tracked=false); ordinary uninstall then moves the occupant to trash. Absent paths and unfollowed or unavailable links are not normalized this way.
In global mode, unlink also forgets the tracked-repository record and audit acceptances kept for that link name; its target remains untouched.
Project Mode
Tracked repos also work in project mode. The repo is cloned into .skillshare/skills/ and added to .skillshare/.gitignore (so the tracked repo's git history doesn't conflict with your project's git). Project logs (.skillshare/logs/), trash (.skillshare/trash/), backups (.skillshare/backups/), and install metadata (.skillshare/skills/.metadata.json) are also ignored by default.
Installing a tracked repo auto-records tracked: true in .skillshare/config.yaml, so new team members get the correct clone behavior via skillshare install -p:
skills:
- name: _team-shared-skills
source: github.com/team/shared-skills
tracked: true
# Install tracked repo into project
skillshare install github.com/team/shared-skills --track -p
skillshare sync
# Update via git pull
skillshare update team-skills -p
skillshare sync
# Force update (discard local changes)
skillshare update team-skills -p --force
# Uninstall
skillshare uninstall team-skills -p
Directory structure:
<project-root>/
└── .skillshare/
├── .gitignore # Contains: logs/, trash/, skills/.metadata.json, and skills/_team-skills
└── skills/
└── _team-skills/ # Tracked repo with .git/ preserved
├── .git/
├── frontend/ui/
└── backend/api/
If you intentionally want to commit project logs, add !logs/ and !logs/*.log after the managed block in .skillshare/.gitignore.
Nested skills are auto-flattened the same way as global mode — _team-skills/frontend/ui becomes _team-skills__frontend__ui in targets.
Custom Name
skillshare install github.com/team/skills --track --name acme-skills
# Installed as: _acme-skills/
Name constraints for --track --name:
- Must resolve to a tracked repo directory name starting with
_. - Must not contain path separators (
/,\) or parent traversal (..). - Invalid names are rejected before clone.
Branch Tracking
You can track a specific branch of a repository:
skillshare install github.com/team/skills --track --branch frontend
The tracked repo clones and follows the specified branch. Updates via skillshare update pull from that branch automatically.
To install the same repo on multiple branches, use --name to avoid name collisions:
skillshare install github.com/team/skills --track --branch frontend --name team-frontend
skillshare install github.com/team/skills --track --branch backend --name team-backend
Branch also works with regular (non-tracked) installs:
skillshare install github.com/team/skills --branch develop --all
The branch is persisted in skill metadata, so skillshare update and skillshare check use the correct branch automatically.
For reproducible installs, --branch also accepts a tag or a commit SHA:
skillshare install github.com/team/skills --branch v1.2.0 --all
skillshare install github.com/team/skills --branch 8f14e45 --all
Tags and commit SHAs cannot be combined with --track: a tracked repo pulls from a branch, and a detached checkout has nothing to pull. Pin tags or SHAs with regular installs instead.
Collision Detection
When multiple skills share the same name field, sync checks whether they actually land on the same target after include/exclude filters are applied.
Filters isolate the collision — nothing is printed; the skills never reach the same target.
Collision reaches the same target — actionable warning:
! 1 duplicate skill names detected
ui _team-a/ vs _team-b/
Rename one in SKILL.md or adjust include/exclude filters
1 name collision(s) excluded
With target_naming: prefixed, a tracked skill can also collide with a skill that already has its prefixed name (_alpha/prototype becomes alpha-prototype). A tracked skill cannot be renamed in SKILL.md, so sync suggests renaming the other skill or re-tracking the repo with --name.
Best practice — namespace your skills or use filters:
# Option 1: Namespace in SKILL.md
name: team-a-ui
# Option 2: Route with filters (global config)
targets:
codex:
path: ~/.codex/skills
include: [_team-a__*]
claude:
path: ~/.claude/skills
include: [_team-b__*]
# Option 2: Route with filters (project config)
targets:
- name: claude
exclude: [codex-*]
- name: codex
include: [codex-*]
See Target Filters for full syntax and examples.
See Also
- install — Install with
--track - update — Pull latest changes
- check — See available updates
- Organization-Wide Skills — Team sharing guide