warden sync
Update cached remote skills to their latest versions. Syncs unpinned remote skills from GitHub repositories to ensure you have the most recent versions.Usage
What It Does
- Identifies cached remotes - Finds all remote skills in
.warden/skills/ - Checks for updates - Fetches latest commit SHA from GitHub
- Updates unpinned remotes - Downloads new versions if SHA changed
- Preserves pinned remotes - Skips skills pinned to specific commits
Arguments
Remote repository to sync (optional). Can be specified as positional argument or
--remote flag.Formats:owner/repo- Repository inowner/repoformathttps://github.com/owner/repo- Full GitHub URL
Options
Alternative way to specify remote (same as positional argument)
Suppress non-error output
Force color output on or off
Remote Types
Unpinned Remotes
Remotes without a specific SHA are automatically updated:Pinned Remotes
Remotes pinned to a specific commit SHA are skipped:Exit Codes
- All remotes synced successfully
- No remotes to sync
- All remotes already up to date
- Network error fetching remote
- Invalid remote reference
- Remote not found in cache
- One or more remotes failed to sync
Examples
Sync All Remotes
Sync Specific Remote
All Up to Date
No Remote Skills
Network Error
Remote Caching
Remote skills are cached in.warden/skills/:
state.json tracks the commit SHA for each cached remote:
When to Sync
Manual Sync
Runsync when you want the latest skill updates:
Automated Sync
Add to CI/CD pipelines:Team Sync
Sync after adding new team members or changing skill configurations:Comparison with Add
The difference betweensync and add --force:
warden sync
- Updates all unpinned remotes at once
- Only updates cache, doesn’t modify
warden.toml - Preserves pinned versions
- Shows summary of updates
warden add —force
- Updates one skill at a time
- Re-adds skill to
warden.toml(may duplicate) - Forces refresh even for pinned versions
- Used when first adding a skill
Pinning Skills
To prevent automatic updates, pin skills to specific commits:Pin Existing Skill
Editwarden.toml to add @sha:
Add Pinned Skill
Unpin Skill
Remove the@sha suffix:
Offline Mode
When working offline, Warden uses cached skills automatically:sync when using --offline.
Troubleshooting
Remote Not Found
warden.toml.
Network Errors
If sync fails due to network issues:Pinned Skills Not Updating
If a pinned skill isn’t updating:Cache Corruption
If the cache is corrupted:Related Commands
- warden add - Add remote skills
- warden - Run analysis with cached skills