code-naming

code-naming is a skill for Claude Code, Codex from luabagg/agent-skills. It costs 78 tokens per session (3,250 once invoked), scanned A, original, MIT.

A naming guide for TypeScript code, covering exports, APIs, types, functions, variables, flags, fields, and constants.

In plain words
What is it for?
Use it to propose or review names and renames in a TypeScript codebase, especially for public interfaces and values read in conditions or logs.
Why use it?
It helps prevent names that are vague, misleading, or hard to understand where they are used. It also helps decide when a rename should split a function into separate responsibilities.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to propose or review names and renames in a TypeScript codebase, especially for public interfaces and values read in conditions or logs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/luabagg/agent-skills/code-naming
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 luabagg/agent-skills --skill code-naming
Clone the repo
git clone --depth 1 https://github.com/luabagg/agent-skills

Made for: Claude Code, Codex.

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 code-naming

README.md
[![agentmods](https://agentmods.dev/badge/skills/luabagg/agent-skills/code-naming/github.svg)](https://agentmods.dev/skills/luabagg/agent-skills/code-naming)
Your own site
<a href="https://agentmods.dev/skills/luabagg/agent-skills/code-naming"><img src="https://agentmods.dev/badge/skills/luabagg/agent-skills/code-naming/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 code-naming

Your own site · 80×15
<a href="https://agentmods.dev/skills/luabagg/agent-skills/code-naming"><img src="https://agentmods.dev/badge/skills/luabagg/agent-skills/code-naming.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,250 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.00078 $0.03250
Opus 5.5 $0.00031 $0.01300
Sonnet 5.5 $0.00016 $0.00650
Haiku 4.5 $0.00008 $0.00325

Measured 1mo ago against content hash adaf96bc8b48, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-naming 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 1mo ago.

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.

skills/code-naming/SKILL.md · 164 lines

How it starts

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

Code Naming

A name is read in imports, calls, conditions, and log lines. The definition, the file path, and the comment are not there. The name alone must tell the reader what they need to know at that line.

A good name is clear: the reader knows what it refers to. It is also precise: the reader knows what it does not refer to. It is long enough to say both at the place it is read, and no longer.

Find a name

  1. Describe the thing in one sentence, using the product's words. Include what it is or does, who did it, and what it is compared against, but only the parts the reader acts on. Example: "Someone other than this call signed in and saved this session."
    • The sentence says what happens, not how. How the code decides, and which items it picks today, go in a comment. See code-comments.
    • If you need two sentences, the code answers two questions. Split it before you name it. The sign: a result with two fields, and a parameter that only one of them uses.
    • Two steps of one action still fit in one sentence: signInAndSaveSession.
  2. Write the line where the name is read. For an export, write the call without the import path. For a field, write it after its container. For a boolean, write the if. Example: a function returns a signed-in session, and we are naming its boolean field:
    const session = await getSignedInSession(login)
    if (session.___)
    
  3. Compare the sentence with the line. Whatever the sentence says that the line doesn't is what the name has to add. Example: session already covers "this session". What's still missing is "saved by someone other than this call", so the field is savedByOtherActor.
  4. Look for words the product or the codebase already uses: a UI label, a type, a union member, a reason code, a log line, a CLI flag, a README. A reader recognizes those and can search for them. A new word is fine when none of them fits.
    • Search the codebase for each word. If it already names a different thing, pick another word, even for a verb. See "Words that mean two things".
    • Use one word for one idea. If the module says "result", do not name the same thing "read".
    • Prefer the word a person sees in the product to the word for the mechanism: "wait time", not "cooldown". A library term is the last choice: hasUnsavedChanges, not isDirty.

Read the full file on GitHub · 164 lines

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. 1mo ago Changed · +4 lines adaf96bc8b48
  2. 1mo ago Changed · +50 lines · +10 tokens per session beb65775e7e1
  3. 2mo ago First seen · 110 lines · 68 tokens per session scan A e7803ebcfda5

Subscribe to this mod's changes

code-naming is a skill published in the GitHub repository luabagg/agent-skills (3 stars, last pushed 4d ago), licensed MIT. It adds 78 tokens to every session and 3,250 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-28.

Related

code-naming compared with skills from other repositories

code-naming next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-namingluabagg/agent-skillsSkill34d agoMITA78Claude Code, Codex
developing-genkit-jsgoogle/skillsSkill25ktodayApache-2.0A76Claude Code, Codex
migrating-vercel-ai-sdk-and-eve-to-pydantic-aipydantic/pydantic-aiSkill21ktodayMITA107Codex
migrating-mastra-to-pydantic-aipydantic/pydantic-aiSkill21ktodayMITA73Codex
migrating-pi-to-pydantic-aipydantic/pydantic-aiSkill21ktodayMITA88Codex
setup-ts-deep-modulesvinvcn/mattpocock-skills-zh-CNSkill6.2kyesterdayMITA49Claude Code, Codex
antfuantfu/skillsSkill6.1k4d agoMITA52Claude Code, Codex