skills check and skills update commands. These commands use a remote API to detect changes in skill repositories.
Overview
The update system works by comparing the skill folder hash stored in your local lock file against the latest hash from the remote source (e.g., GitHub).Read lock file
The CLI reads
~/.agents/.skill-lock.json to get all installed skills and their current skillFolderHash valuesRequest fresh hashes
POST skill metadata to the update API at
https://add-skill.vercel.sh/check-updates with forceRefresh: trueCompare hashes
The API fetches fresh content from GitHub, computes the latest folder hash, and compares it to the hash you provided
Check Command
Theskills check command checks for available updates without installing them.
API Request
The CLI sends a POST request to the update API:Output
Update Command
Theskills update command checks for updates and automatically reinstalls any skills with available updates.
Workflow
Reinstall skills
For each skill with an update:
- Fetch the latest version from the source
- Compute the new folder hash
- Install to the same agents as before
- Update the lock file with new hash and
updatedAttimestamp
Example Session
Force Refresh
Why forceRefresh: true?
Both skills check and skills update always send forceRefresh: true in the API request. This ensures the API fetches fresh content from GitHub rather than using its Redis cache.
Tradeoff
Slower
Requires a GitHub API call per skill instead of using cache
Accurate
Always reflects the true current state of the remote repository
Performance Considerations
For repositories with many skills:- The API makes ONE GitHub Trees API call per repository (not per skill)
- Skills from the same repository share a single request
- Typical check time: 1-3 seconds for 10 skills across 3 repositories
Update API Endpoint
Request Schema
Array of skill metadata objects
If
CLI always sends:
true, bypass cache and fetch fresh content from GitHubDefault: falseCLI always sends:
trueResponse Schema
Array of skills with update information
Lock File Compatibility
Version 3 Required
The update system requires lock file version 3, which introduced theskillFolderHash field.
Migration Path
How the API Works
The update API performs these steps for each skill:Rate Limiting
The API uses GitHub tokens to avoid rate limits:- Authenticated requests: 5,000 requests/hour
- Unauthenticated requests: 60 requests/hour
Telemetry
The update commands send anonymous telemetry to help improve the CLI:Check Command
Update Command
Telemetry can be disabled by setting
DISABLE_TELEMETRY=1 or DO_NOT_TRACK=1Examples
Check for Updates
Update Skills
Related Documentation
Lock Files
Learn about lock file structure and the skillFolderHash field
Telemetry
See what data is tracked and how to disable it