maintain-hygiene-skills-lock

Recompute and update skills-lock.json hashes from skills directory sources.

1|Updated Apr 24, 2026
One-click install
npx skills add https://github.com/laozhong86/gxpm --skill maintain-hygiene-skills-lock
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: maintain-hygiene-skills-lock
Source: https://github.com/laozhong86/gxpm/tree/main/skills/maintain-hygiene-skills-lock
Command: npx skills add https://github.com/laozhong86/gxpm --skill maintain-hygiene-skills-lock

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Maintains the integrity of skills-lock.json by recomputing and aligning hash values whenever skills are added, modified, or removed.

Core Features & Use Cases

  • Recompute and refresh the hash entries in skills-lock.json to reflect the current skills directory.
  • Validate consistency between skill sources (preferring SKILL.md.tmpl when present, otherwise SKILL.md) and their recorded hashes.
  • Prevent hash mismatch errors during development by providing a deterministic verification workflow.

Quick Start

Recompute the lock to synchronize skills-lock.json after any change to the skills folder.

Frequently Asked Questions about maintain-hygiene-skills-lock

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I keep skills-lock.json in sync after modifying skill files?

To keep skills-lock.json in sync, recompute and update the hash values to reflect the current content of the skills directory. This ensures recorded hashes match actual skill sources like SKILL.md or SKILL.md.tmpl.

Why does bun run check report a hash mismatch error?

Bun run check reports a hash mismatch error when recorded hashes in skills-lock.json no longer match the actual skill sources. Recomputing the lockfile refreshes these entries and resolves the inconsistency.

What is the best way to automate lockfile validation for development consistency?

Automating lockfile validation involves running a deterministic check to detect hash mismatches between skill sources and skills-lock.json. This enforces development consistency by verifying that all additions, modifications, and deletions are accurately tracked.

Does the lockfile recompute logic prefer SKILL.md.tmpl over SKILL.md?

Yes, the recompute logic prefers SKILL.md.tmpl over SKILL.md when calculating hash values for skills-lock.json. If the template file is not present, it falls back to validating the standard SKILL.md file.

When do I need to recompute hashes in skills-lock.json?

You need to recompute hashes in skills-lock.json whenever skills are added, modified, or removed within the skills directory. This realignment prevents verification failures during automated development checks.