auto-skill lock
Manage the skill lock file for integrity verification. The lock file tracks SHA-256 hashes of installed skills to detect tampering and ensure reproducible skill environments.Usage
Actions
Show lock file summary (version, path, skill count)
List all locked skills with their metadata
Verify integrity of all locked skills using SHA-256 hashes
Options
Output results in JSON format
Lock File Format
The lock file is stored at~/.claude/auto-skill/skills.lock and contains:
- Version - Lock file format version
- Skills - Array of locked skill entries
- Metadata - Timestamps, sources, and hashes
Lock Entry Structure
Skill name or identifier
Source of the skill (e.g., “local”, “skillssh”, “github”)
SHA-256 hash of the skill file content
ISO 8601 timestamp when the skill was locked
How It Works
Examples
Show Lock File Status
List All Locked Skills
Verify Skill Integrity
JSON Output - Status
JSON Output - List
JSON Output - Verify
Security Features
SHA-256 Hashing
Cryptographic hashing ensures tamper detection
Atomic Writes
Lock file updates are atomic to prevent corruption
Path Security
Path traversal prevention and null byte blocking
Unicode Normalization
Prevents unicode-based attacks on file paths
Use Cases
CI/CD Verification
Audit Trail
Detect Modifications
Lock File Location
The lock file is stored at:The lock file is automatically created when the first skill is generated. You don’t need to manually create it.
Troubleshooting
Skill fails verification after editing
Skill fails verification after editing
If you intentionally edited a skill, this is expected. The lock file tracks the original content. To re-lock:
- Verify the changes are correct
- Re-generate or re-install the skill to update the lock
- Or manually update the lock file (not recommended)
Lock file not found
Lock file not found
The lock file is created automatically when skills are generated. If it’s missing:Then generate or install a skill to create the lock file.
All skills fail verification
All skills fail verification
This could indicate:If the list looks corrupt, you may need to re-initialize and re-install skills.
- Lock file corruption
- Skills directory moved or restored from backup
- File system issues
Related Commands
List Agents
Check which agents have skills installed
View Telemetry
See which skills are most used