Skip to content

Instantly share code, notes, and snippets.

@pagelab
Last active April 6, 2026 16:35
Show Gist options
  • Select an option

  • Save pagelab/f25e6a468b14f1b156728901e9d8138b to your computer and use it in GitHub Desktop.

Select an option

Save pagelab/f25e6a468b14f1b156728901e9d8138b to your computer and use it in GitHub Desktop.
Sync agent skills
# --- Sync skill directories from .agents/skills to .copilot/skills ---
COPILOT_SKILLS="/Users/mac/.copilot/skills"
AGENTS_SKILLS="/Users/mac/.agents/skills"
if [ -d "$AGENTS_SKILLS" ]; then
for skill_dir in "$AGENTS_SKILLS"/*/; do
[ -d "$skill_dir" ] || continue
dir_name=$(basename "$skill_dir")
[[ "$dir_name" == .* ]] && continue
ln -sf "$skill_dir" "$COPILOT_SKILLS/$dir_name"
echo "Created: $dir_name -> $skill_dir"
done
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment