Filtering Skills
Skillshare provides three filtering layers that control which skills reach which targets. Pick the scenario that matches your goal.
Sync a skill to specific targets onlyโ
Add a targets field (or metadata.targets) to the skill's SKILL.md frontmatter.
The skill will only sync to the listed targets.
---
name: my-cursor-only-skill
targets: [cursor]
---
Target aliases are supported โ claude matches both claude and claude-code.
๐ SKILL.md targets field ยท Filtering Reference
Exclude specific skills from one targetโ
Use --add-exclude on the target to block skills matching a glob pattern:
skillshare target cursor --add-exclude "legacy-*"
skillshare sync
๐ Target filter flags ยท Filtering Reference
Only allow specific skills on one targetโ
Use --add-include to create a whitelist โ only matching skills will sync:
skillshare target claude --add-include "team-*"
skillshare sync
๐ Target filter flags ยท Filtering Reference
Hide skills from all targetsโ
Place a .skillignore file in your source directory. Skills matching these patterns are excluded from all targets at discovery time:
drafts/
experimental-*
๐ .skillignore syntax ยท Filtering Reference
Exclude skills inside a tracked repoโ
Place a .skillignore inside the tracked repo directory. It only affects skills within that repo:
internal-only/*
validation-scripts
Local-only overridesโ
.skillignore.local is appended after .skillignore โ last matching rule wins. Use negation patterns to un-ignore skills locally without editing the shared file:
# The repo ignores private-*, but I need mine
!private-mine
Don't commit this file โ add it to .gitignore.
๐ .skillignore.local
Which layer should I use?โ
How to verify what's being filteredโ
| Command | What it shows |
|---|---|
skillshare sync | Ignored skill count and names at the bottom |
skillshare status --json | Full .skillignore stats (patterns, ignored skills, active files) |
skillshare doctor | Health check includes .skillignore pattern count and ignored count |
skillshare ui โ Sync page | Collapsible "Ignored by .skillignore" card with badge |
See alsoโ
- Filtering Reference โ full specification of all three layers
- Sync command โ filter behavior examples
- Target command โ CLI flags for include/exclude