Skills Lock logo

Skills Lock

Organization
LeadMagic
skills-lock

Generate and verify a deterministic SHA-256 inventory for every packaged file in an Agent Skills repository. Use when creating skills.lock, checking repository integrity, reviewing artifact coverage, detecting uncommitted generated drift, or designing CI gates for a skill catalog.

Overview

PublisherLeadMagic
Repositorygtm-skills
Skill nameskills-lock
Stars
72
Forks
18
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by LeadMagic on GitHub. Read the source before you install it.

Installation

Install the Skills Lock AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/LeadMagic/gtm-skills/tree/main/skills/automation/skills-lock
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/LeadMagic/gtm-skills.git /tmp/gtm-skills
mkdir -p .claude/skills
cp -r /tmp/gtm-skills/skills/automation/skills-lock .claude/skills/skills-lock
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Skills Lock in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Skills Lock on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Skills Lock is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Skills Lock

Overview

Create a deterministic manifest of the skill entrypoints and every packaged support file under skills/. The manifest proves byte-level consistency; it does not certify that content is correct, safe, or trustworthy. Review sources and executable scripts separately.

This repository's schema records both a compatibility-oriented skills index and a complete artifacts index. It does not invent dependency, version, or modification-time fields that cannot be derived reliably from the package.

When to Use

  • A skill repository needs a reviewable inventory of everything it ships.
  • CI must reject a stale lock after any skill, reference, template, script, or asset changes.
  • An installer or reviewer needs to verify a checkout before loading instructions.
  • Catalog counts disagree and need one filesystem-derived source of truth.
  • The user asks to generate, audit, or explain skills.lock.

Authoritative Foundations

  • Agent Skills specification: keep each skill self-contained and load references, templates, scripts, and assets progressively from the skill directory.
  • NIST FIPS 180-4: use SHA-256 as a deterministic digest for the exact bytes in each packaged file.
  • Reproducible-build practice: sort paths, exclude volatile metadata from comparisons, and make the same input tree produce the same logical manifest.

Prerequisites

  • Identify the repository root and canonical skills/ directory.
  • Define discoverable skill paths, normally skills/<category>/<skill>/SKILL.md.
  • Define explicit exclusions for platform junk and generated caches.
  • Confirm whether the task permits writing the lock or only auditing it.

Step-by-Step Process

1. Discover the package from disk

Enumerate skill entrypoints and all regular files beneath skills/. Do not derive counts from README prose, a release description, or a manually maintained catalog.

2. Validate ownership and portability

Ensure every packaged file belongs to one discoverable skill. Reject empty files, cache files, merge residue, unportable symlinks, misplaced artifacts, and non-executable checker scripts.

3. Build deterministic records

For every artifact, record its repository-relative path, SHA-256 digest, byte size, and kind. For every entrypoint, also record the stable category/skill key and path components.

4. Separate volatile metadata

An informational generated_at value may be present, but exclude it from logical equality checks. Preserve it on no-op regeneration so generated-file checks remain stable.

5. Verify exact coverage

Compare the manifest path set with the current package path set in both directions. Verify totals, per-kind counts, byte sizes, and hashes. A missing or extra record is a failure even when all recorded hashes match.

6. Wire the check into CI

Run artifact hygiene before lock verification, regenerate in a temporary comparison flow, and fail when committed generated files differ. Keep generation and verification as separate commands.

7. Report what integrity means

State the exact skill and artifact counts, the algorithm, and the exclusions. Clarify that integrity detects drift or tampering relative to the lock; it is not provenance, code-signing, malware scanning, or content review.

Output Format

Produce an integrity report containing:

  1. Repository and scope.
  2. Exact skill and packaged-file counts.
  3. Per-kind artifact counts.
  4. Schema and hashing algorithm.
  5. Generation and verification commands.
  6. CI enforcement status.
  7. Failures, exclusions, and residual risks.
  8. Recommended remediation steps.

For this repository, use:

bash
python3 scripts/audit-artifacts.py
python3 scripts/generate-skills-lock.py
python3 scripts/generate-skills-lock.py --check

Quality Check

  • Counts come from the filesystem and not from copied documentation.
  • Every packaged file has one path, hash, size, and kind record.
  • The manifest has no missing or extra paths.
  • Paths are repository-relative and sorted deterministically.
  • A no-op generation leaves the logical manifest unchanged.
  • CI verifies the lock after artifact validation.
  • The report distinguishes integrity from trust and provenance.

Common Pitfalls

PitfallWhy it failsFix
Hashing only SKILL.mdReferences, templates, scripts, and assets can drift undetectedInventory every packaged file
Recording file modification timeCheckout and archive tools can change it without changing contentRecord stable path, size, and digest only
Comparing only recorded entriesNewly added files can be absent from the lockCompare path sets in both directions
Treating SHA-256 as a trust signalA malicious change can be re-lockedRequire review, trusted distribution, and CI controls
Rewriting timestamps on no-op buildsCauses permanent generated-file churnIgnore or preserve informational timestamps

Execution Artifacts

  • references/framework-notes.md — Integrity scope, schema, and security boundaries
  • templates/output-template.md — Repository integrity report template
  • scripts/check-output.py — Deliverable completeness checker

Related Skills

  • agent-skills-repo-authoring for repository layout and distribution design.
  • hermes-agent-skill-authoring for runtime-specific skill packaging.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Skills Lock AI skill do?

Generate and verify a deterministic SHA-256 inventory for every packaged file in an Agent Skills repository. Use when creating skills.lock, checking repository integrity, reviewing artifact coverage, detecting uncommitted generated drift, or designing CI gates for a skill catalog.

Why use Skills Lock on TypingMind?

Because you install it once and use it with any model. Skills Lock is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Skills Lock in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/LeadMagic/gtm-skills/tree/main/skills/automation/skills-lock. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Skills Lock?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Skills Lock?

As many as you like. As long as a model supports skills, you can use Skills Lock with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Skills Lock AI skill free?

Yes. It is published on GitHub by LeadMagic under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇