naming-convention

naming-convention is a skill for Claude Code from ncaq/konoka. It costs 39 tokens per session (1,010 once invoked), scanned A, original, Apache-2.0.

A set of naming rules for Nix code, including files, variables, packages, and NixOS settings. NixOS is a Linux system whose configuration is written in the Nix language.

In plain words
What is it for?
Use it when writing or reviewing Nix files, package definitions, variables, system identifiers, or NixOS options.
Why use it?
It prevents inconsistent names and makes Nix projects easier to read and review against the conventions used by the official package collection.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the nix-tasuke plugin — 6 skills, 1 MCP server shipped together

Good fit Use it when writing or reviewing Nix files, package definitions, variables, system identifiers, or NixOS options.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ncaq/konoka/naming-convention
View source ↗ ncaq/konoka
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 ncaq/konoka --skill naming-convention
Clone the repo
git clone --depth 1 https://github.com/ncaq/konoka

Made for: Claude Code.

Or install nix-tasuke, the plugin that ships this one along with the rest of its 6 skills, 1 MCP server.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ncaq/konoka/naming-convention"><img src="https://agentmods.dev/badge/skills/ncaq/konoka/naming-convention.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,010 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.00039 $0.01010
Opus 5 $0.00019 $0.00505
Sonnet 5 $0.00008 $0.00202
Haiku 4.5 $0.00004 $0.00101

Measured 9d ago against content hash 2f0b5f32e67e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

naming-convention 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 9d 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.

plugins/nix-tasuke/skills/naming-convention/SKILL.md · 112 lines

How it starts

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

Nix命名規則

nixpkgsの公式コーディング規約に基づきます。

ファイル名・ディレクトリ名

kebab-caseを使用します。

例: all-packages.nix, claude-code.nix

変数名・属性名

種類 スタイル
単純な変数・関数・設定値 lowerCamelCase hostName, removePrefix
パッケージ・derivation kebab-case github-mcp-server, claude-code
Flake input等の外部ソース参照 参照先の名前に従う nixpkgs-unstable, treefmt-nix
システム識別子 Nixの規定形式 x86_64-linux, aarch64-linux

単純な識別子はlowerCamelCaseを使用します。

パッケージやプログラムを示す変数は、 pnameと同様にkebab-caseを使用します。 2012年以降、 Nix言語では識別子にハイフンを使用できます。

Flake inputなど外部ソースを参照する変数は、 参照先のリポジトリ名やチャンネル名をそのまま使用します。 多くの場合はkebab-caseですが、 参照先の命名に従うのが原則です。

.emacs.d -> dot-emacsのような例外もあります。

システム識別子は<arch>-<os>の形式で、 x86_64-linux, aarch64-linux, aarch64-darwinなどNixが規定する文字列をそのまま使用します。 Flake outputのpackagesdevShellsの属性名として頻出します。

NixOSオプション

原則camelCaseを使用します。

例:

  • environment.systemPackages
  • security.tpm2.tctiEnvironment.enable

例外:

  • パッケージ名を参照する場合はkebab-case: services.nix-serve
  • nix.settingsなど外部設定ファイルをマッピングするオプションは、その設定ファイルの命名規則に従う(nix.confはkebab-case)

booleanオプションのenableプレフィックス

booleanオプションにはenableプレフィックスを使用します。 enabled, isEnabled, useXxxなどは使用しません。

例:

  • services.nginx.enable
  • programs.git.enable

ヘルパー関数

データを生成するヘルパー関数はmkプレフィックスを使用します。

例:

  • mkDefault
  • mkEnableOption
  • mkForce
  • mkIf
  • mkMerge
  • mkOption
  • mkOverride

データ生成系ではない場合mkプレフィックスのないこともあります。 lib.types, lib.attrsets, lib.stringsなどのモジュールに属する関数はlowerCamelCaseです。

例:

  • concatStringsSep
  • filterAttrs
  • mapAttrs
  • optionalString

overlay引数

overlayの引数名はfinal/prevが現在の推奨です。

final: prev: {
  myPackage = prev.myPackage.overrideAttrs (oldAttrs: { });
}

旧来のself/superは非推奨です。 selfはFlakeのselfと紛らわしいため避けてください。

Read the full file on GitHub · 112 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. 9d ago First seen · 112 lines · 39 tokens per session scan A 2f0b5f32e67e

Subscribe to this mod's changes

naming-convention is a skill published in the GitHub repository ncaq/konoka (3 stars, last pushed 2d ago), licensed Apache-2.0. It adds 39 tokens to every session and 1,010 once invoked, about $0.0002 per session on Opus 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-08-31.