Skip to main content

skill-sync

Sync and install skills from a GitHub skills repository into a local or global AI skill root. Use when the user asks to install skills, update skills, sync skills from GitHub, load a skill library, or ensure cross-AI skill roots are up to date.

설치로 이동

소스 정보

저장소
onfire7777/universal-ai-skills-library
최근 소스 활동
2026년 6월 18일 07:33
감지된 SKILL.md 언어
영어
스타
16
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
skill-sync
description
Sync and install skills from a GitHub skills repository into a local or global AI skill root. Use when the user asks to install skills, update skills, sync skills from GitHub, load a skill library, or ensure cross-AI skill roots are up to date.
# Skill Sync Sync all skills from a GitHub repository into `/home/ubuntu/skills/` with version tracking, validation, and change detection. ## Quick Start Run the sync script: ```bash python3 /home/ubuntu/skills/skill-sync/scripts/sync_skills.py ``` Default repo: `onfire7777/universal-ai-skills-library`. The script handles everything automatically. ## Commands ```bash # Full sync (clone/pull + install/update all skills) python3 /home/ubuntu/skills/skill-sync/scripts/sync_skills.py # Sync from a different repo python3 /home/ubuntu/skills/skill-sync/scripts/sync_skills.py --repo user/repo-name # Preview changes without installing python3 /home/ubuntu/skills/skill-sync/scripts/sync_skills.py --dry-run # Only sync skills matching keywords python3 /home/ubuntu/skills/skill-sync/scripts/sync_skills.py --filter "security,audit" # Force overwrite locally modified skills python3 /home/ubuntu/skills/skill-sync/scripts/sync_skills.py --force # Validate all currently installed skills python3 /home/ubuntu/skills/skill-sync/scripts/sync_skills.py --validate-only ``` ## How It Works 1. **Clone or pull** the repo into `~/.skill-sync-cache/` (uses `gh` CLI with `git clone` fallback) 2. **Discover** all directories containing a valid `SKILL.md` (supports both `repo/skill-name/` and `repo/skills/skill-name/` layouts) 3. **Compare** each skill's content hash against the last sync state 4. **Install** new skills, **update** changed skills, **skip** unchanged ones 5. **Validate** every SKILL.md has proper YAML frontmatter (`name` + `description`) 6. **Save state** with commit hash and per-skill content hashes for next sync ## Change Detection The script tracks content hashes to avoid unnecessary overwrites: - **Source unchanged, dest unchanged** - skipped (already up-to-date) - **Source changed, dest unchanged** - updated from repo - **Source unchanged, dest changed** - skipped (local changes preserved) - **Both changed** - skipped unless `--force` is used ## State File Sync state is stored at `~/.skill-sync-cache/sync_state.json`. Contains last sync timestamp, commit hash, and per-skill content hashes. Delete this file to force a full re-sync. ## Configuration Paths can be overridden via environment variables or CLI flags: | Setting | Default | Override | |---|---|---| | Skills directory | `/home/ubuntu/skills` | `SKILL_ROUTER_SKILLS_DIR` or `--skills-dir` | | Cache directory | `/home/ubuntu/.skill-sync-cache` | `SKILL_ROUTER_SYNC_CACHE` or `--cache-dir` | ## After Syncing Skills are immediately available to compatible AI clients after syncing. Agents route skills from the target skill root using the `name` and `description` in each `SKILL.md` frontmatter.
GitHub에서 보기