Documentation Index
Fetch the complete documentation index at: https://mintlify.com/matrixy/auto-skill/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Auto-Skill maintains a lock file (skills.lock.json) that tracks installed skills with SHA-256 content hashes for integrity verification. This ensures skills haven’t been tampered with and provides a reproducible installation state.
Lock File Location:
~/.claude/auto-skill/skills.lock.jsonLock File Structure
Fields
Version counter, incremented on each save. Tracks lock file changes.
ISO-8601 timestamp of last update.
Map of skill name to
LockedSkill entries.LockedSkill Structure
Integrity Verification
The lock file uses SHA-256 hashing to verify skill content hasn’t been modified:Verification Process
Usage
Create Lock File
Add a Skill
Verify Integrity
Verify All Skills
Output Example
Output Example
List Locked Skills
Get Specific Skill
Remove a Skill
Atomic Writes
The lock file uses atomic writes to prevent corruption:writeFileAtomic Implementation
writeFileAtomic Implementation
API Reference
createLockFile(lockFilePath?)
Factory function to create a LockFile instance.Path to the lock file.Default:
~/.claude/auto-skill/skills.lock.jsonLockFile Class
Absolute path to the lock file.
Current version counter.
Number of skills in the lock file.
Load the lock file from disk.Returns:
this (for chaining)Save the lock file atomically.Increments version counter on each save.
Add or update a skill in the lock file.Parameters:
name: string- Skill nameskillPath: string- Path to SKILL.md filecontent: string- SKILL.md content (for hashing)source?: string- Source of the skill (default: “auto”)metadata?: Record<string, unknown>- Optional metadata
Remove a skill from the lock file.Returns:
true if removed, false if not foundGet a locked skill by name.
List all locked skills.
Verify a skill’s content matches its locked hash.Parameters:
name: string- Skill namecontent: string- Current SKILL.md content
true if content matches, false if tampered or missingVerify integrity of all locked skills.Parameters:
skillsDir?: string- Root directory containing skills (optional)
CLI Commands
Lock Current Skills
~/.claude/skills/auto/ and adds all skills to the lock file.
Verify Integrity
Output Example
Output Example
View Lock File
Update Hashes
Best Practices
Lock after skill generation
Lock after skill generation
Always lock newly generated or graduated skills to track their initial state.
Verify before using external skills
Verify before using external skills
Before using a skill from an external source, verify its integrity against the lock file.
Commit lock file to version control
Commit lock file to version control
If your project uses Auto-Skill, commit
skills.lock.json to Git to ensure reproducible skill installations across your team.Update hashes after intentional edits
Update hashes after intentional edits
If you manually edit a skill file, run
npx auto-skill lock update to update the lock file with new hashes.Integration with Multi-Agent
When creating symlinks for multi-agent support, the lock file tracks the canonical source:See Also
Multi-Agent Support
Cross-agent skill sharing
Skill Graduation
Promote external skills to local