Naming Gate logo

Naming Gate

Community
kirillgreen
naming-gate

Enforce a filename convention for notes, docs, research, plans and transcripts at the moment a file is created, instead of documenting it and hoping. Ships a write-time PreToolUse hook that denies a non-conforming Write, a lint that is the single negative list both the hook and any periodic sweep call, and a per-folder config so the policy is data rather than code. Use when naming or renaming an artefact file, when a write was blocked by the naming gate, when auditing an existing folder for drift ("check the names in notes/"), when adding a folder to the gate, or when setting the convention up for a project. Do NOT use for source-code identifiers, repo/branch names, or anything the language's own convention already governs.

Overview

Publisherkirillgreen
Repositoryskills
Skill namenaming-gate
Stars
25
Forks
2
Bundled files
5
LicenseCC0-1.0
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.

  • 5 bundled files

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

  • Open source

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

Installation

Install the Naming Gate 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/kirillgreen/skills/tree/main/naming-gate
  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/kirillgreen/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/naming-gate .claude/skills/naming-gate
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Naming Gate 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 Naming Gate 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 Naming Gate 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.

naming-gate — a filename convention with teeth

Two artefacts and one config:

FileWhat it is
references/grammar.mdthe convention itself — an example, meant to be replaced
naming-lint.shthe negative list: the enumerated ways a name breaks the grammar
naming-gate.sha PreToolUse hook that denies a Write whose name trips the list
naming.confwhich folder implies which genre, which roots are gated, what a deny says

The grammar is the replaceable part. The machinery is the point.

Naming a file

Read the grammar document — references/grammar.md, or whatever the doc row of naming.conf points at, which is what a deny message names. The example convention is:

⟨key⟩ ⟨Scope⟩ · ⟨Type⟩ — ⟨title⟩ (⟨qualifier⟩).ext
2026-09-05 Payments — reconciliation gaps in the nightly job.md

Two things trip agents up more than the formula does:

  1. A folder's default genre is implicit. In a folder that only holds plans, writing · Plan into the name is noise, and the lint reports it as redundant-type. Check the default-genre table before adding a Type.
  2. The parse regex is not a validator. Its title slot is a catch-all, so it happily accepts 2026-09-05-quarterly-review. Matching it proves nothing. If you want to know whether a name is legal, run the lint.

Check a name before writing it — no file needs to exist:

bash
bash naming-lint.sh -n "$HOME/notes/plans/2026-09-05 Payments — nightly job.md"

Silence and exit 0 mean it is fine. Otherwise you get one path<TAB>code line per problem.

When the gate blocks a write

The deny message names the codes it found and the canonical form for that exact folder. Rename and write again. That is the whole remedy in almost every case.

Do not reach for the escape hatch. touch /tmp/.naming-gate-allow is a one-shot the human creates when a name is a deliberate exception; an agent that creates its own escape hatch has disabled its own gate, and nothing in the code can stop it — only this instruction can. If you believe the name is right and the gate is wrong, say so and let the human decide.

Same for /tmp/.naming-gate-paused (a 4-hour pause) — the human's switch, not yours.

Sweeping a folder

bash
bash naming-lint.sh ~/notes            # every *.md, recursive
bash naming-lint.sh -a -q ~/notes      # every file; summary line only

Exit 1 means findings. Hidden files, ALLCAPS singletons (README.md, INDEX.md, *_META.md …), templates/, *-baseline/ bundles and .claude/ are skipped by design — they are named by their role, not by the grammar.

Adding a folder to the gate

The invariant, and it is not negotiable:

A root may only be governed once its existing files already lint clean.

Govern a root whose neighbours are non-conforming and the gate starts denying names that match every file around them. That is how a gate gets switched off on its second day. So:

  1. bash naming-lint.sh <root> → must print 0 finding(s).
  2. Not clean? Either rename the stragglers first, or exclude the sub-folder that is legitimately different — tool exports, frozen versions — with a governed … no row above the catch-all. First match wins.
  3. Add governed <glob> yes, then re-run tests/run.sh: the suite drives every yes root from the config, so the new one is covered without writing a test.

Editing the config

naming.conf is TAB-separated, four record types (genre, governed, form, doc), first match wins inside each type. Its header documents the format; two traps are worth repeating:

  • A glob is matched with bash case. ~/ means $HOME, but | is not alternation — inside a variable expansion it is a literal, so a row written with | matches nothing and reports no error. Write two rows.
  • A genre row and the table in the grammar document are one fact in two places. Change both. tests/run.sh fails if they disagree in either direction, including when the folder still matches but the genre no longer does.

After any config change:

bash
bash tests/run.sh

What this deliberately does not check

A Type that is missing where the folder has no default genre. Telling a Type word from a title word needs the closed vocabulary and still guesses, and this list feeds a blocking hook where a false positive costs real work. A human reading a sweep catches those.

A file created through Bash (cat > x.md, mv, a script) is also invisible to the hook — the gate sees Write, not shell. The periodic sweep is what covers that gap.

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 Naming Gate AI skill do?

Enforce a filename convention for notes, docs, research, plans and transcripts at the moment a file is created, instead of documenting it and hoping. Ships a write-time PreToolUse hook that denies a non-conforming Write, a lint that is the single negative list both the hook and any periodic sweep call, and a per-folder config so the policy is data rather than code. Use when naming or renaming an artefact file, when a write was blocked by the naming gate, when auditing an existing folder for drift ("check the names in notes/"), when adding a folder to the gate, or when setting the convention...

Why use Naming Gate on TypingMind?

Because you install it once and use it with any model. Naming Gate 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 Naming Gate in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/kirillgreen/skills/tree/main/naming-gate. 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 Naming Gate?

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 Naming Gate?

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

Is the Naming Gate AI skill free?

Yes. It is published on GitHub by kirillgreen under the CC0-1.0 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 👇