generate-file-name-gate

generate-file-name-gate is a skill for Claude Code from melodic-software/claude-code-plugins. It costs 87 tokens per session (2,022 once invoked), scanned A, original, MIT.

A generator that adds a standalone file-name checker and its tests to another repository. It copies the repository's naming rules and exceptions into those files, so they work without this add-on.

In plain words
What is it for?
Use it to create an automated gate for file-name casing, selected directory roots, and approved exceptions. It can also write an optional path-specific guidance file.
Why use it?
It prevents new files from breaking a shared naming convention, including in checkouts or continuous-integration systems that do not have the add-on installed.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Part of the docs-naming plugin — 3 skills shipped together

Good fit Use it to create an automated gate for file-name casing, selected directory roots, and approved exceptions. It can also write an optional path-specific guidance file.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/melodic-software/claude-code-plugins/generate-file-name-gate
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add melodic-software/claude-code-plugins --skill generate-file-name-gate
Clone the repo
git clone --depth 1 https://github.com/melodic-software/claude-code-plugins

Made for: Claude Code.

Or install docs-naming, the plugin that ships this one along with the rest of its 3 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for generate-file-name-gate

README.md
[![agentmods](https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/generate-file-name-gate/github.svg)](https://agentmods.dev/skills/melodic-software/claude-code-plugins/generate-file-name-gate)
Your own site
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/generate-file-name-gate"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/generate-file-name-gate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for generate-file-name-gate

Your own site · 80×15
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/generate-file-name-gate"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/generate-file-name-gate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,022 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00087 $0.02022
Opus 5.5 $0.00035 $0.00809
Sonnet 5.5 $0.00017 $0.00404
Haiku 4.5 $0.00009 $0.00202

Measured 2d ago against content hash 0a9d50efcb30, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

generate-file-name-gate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/emit-gate.sh, scripts/emit-gate.test.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/docs-naming/skills/generate-file-name-gate/SKILL.md · 156 lines

How it starts

The opening of the file, as written. The whole thing — 156 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Generate File Name Gate

Purpose

A naming rule that nothing enforces decays back into a mixed tree, one file at a time. This skill writes the thing that enforces it: a checker over the tracked set, plus the suite that proves the checker still means what it says.

The checker is the consumer's file, not this plugin's. The rule, the roots, and every exemption are inlined at emission, so a checkout with the plugin uninstalled, or a CI runner that never had it, still enforces what the team agreed.

The gate is the deliverable. Whether a path-scoped rule file should also carry the naming rule is a separate choice: when /corrections:codify (if enabled) is among the available skills, hand it the choice of mechanism; it picks the strongest rung of the enforcement ladder that can decide the rule and proves the check. Name the call, /corrections:codify "<the naming rule>" (if enabled), for the operator to run; never make it. When the corrections plugin is not enabled, propose the strongest mechanism that can decide the rule: a change that makes the mistake impossible first, then a check that blocks it, then a test, and an instruction only when nothing a machine runs can decide it. Say that the corrections plugin was not available, so the proposal is unproven.

Emit

${CLAUDE_SKILL_DIR}/scripts/emit-gate.sh --root <repo> --user-config '<option>' [--out-dir <dir>] [--rule] [--force]
  • --user-config takes this plugin's file_names option, ${user_config.file_names}, on every call, as one single-quoted argument (escape any single quote in it). An empty value or the literal ${user_config.…} placeholder means unset. Pointer: when checking where a saved option value reaches, fetch plugins manifest reference § Reference a saved value live.
  • --out-dir places the pair somewhere other than scripts/. The emitted checker resolves the repository from its own location, so any depth works.
  • --rule also writes .claude/rules/file-names.md.
  • --force overwrites. Without it an existing target refuses the run and nothing is written, including the files that did not exist yet.

Read the full file on GitHub · 156 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed · -57 tokens per session 0a9d50efcb30
  2. 3d ago Changed · +1 tokens per session f8569951e762
  3. 6d ago Changed · +4 lines 14a4a772121f
  4. 8d ago Changed 192a953977ce
  5. 9d ago Changed · +7 lines 78105b87c150
  6. 11d ago Changed · +8 lines b0fd6ce5c267
  7. 18d ago Changed · -3 lines 6d20353da6fc
  8. 1mo ago Changed 21114092bb65
  9. 1mo ago Changed · +7 lines 4f3e93fedb2e
  10. 2mo ago First seen · 133 lines · 143 tokens per session scan A b0e57c680c81

Subscribe to this mod's changes

generate-file-name-gate is a skill published in the GitHub repository melodic-software/claude-code-plugins (33 stars, last pushed today), licensed MIT. It adds 87 tokens to every session and 2,022 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-13.

Related

generate-file-name-gate compared with skills from other repositories

generate-file-name-gate next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
generate-file-name-gatemelodic-software/claude-code-pluginsSkill33todayMITA87Claude Code
test-structural-invariantsjimmc414/claude-code-plugin-marketplaceSkill4yesterdayMITA27Claude Code
test-with-examplesjimmc414/claude-code-plugin-marketplaceSkill4yesterdayMITA23Claude Code
verify-solution-propertiesjimmc414/claude-code-plugin-marketplaceSkill4yesterdayMITA23Claude Code
verify-with-inline-testsjimmc414/claude-code-plugin-marketplaceSkill4yesterdayMITA27Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code