Skip to main content

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:

~/.config/skillshare/skills/.skillignore
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:

_team-repo/.skillignore
internal-only/*
validation-scripts

๐Ÿ“– Repo-level .skillignore

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:

_team-repo/.skillignore.local
# 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โ€‹

CommandWhat it shows
skillshare syncIgnored skill count and names at the bottom
skillshare status --jsonFull .skillignore stats (patterns, ignored skills, active files)
skillshare doctorHealth check includes .skillignore pattern count and ignored count
skillshare ui โ†’ Sync pageCollapsible "Ignored by .skillignore" card with badge

See alsoโ€‹