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.
npx skills add ncaq/konoka --skill variable-naminggit clone --depth 1 https://github.com/ncaq/konokaWrote 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.
[](https://agentmods.dev/skills/ncaq/konoka/variable-naming)<a href="https://agentmods.dev/skills/ncaq/konoka/variable-naming"><img src="https://agentmods.dev/badge/skills/ncaq/konoka/variable-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.
<a href="https://agentmods.dev/skills/ncaq/konoka/variable-naming"><img src="https://agentmods.dev/badge/skills/ncaq/konoka/variable-naming.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00038 | $0.01167 |
| Opus 5 | $0.00019 | $0.00583 |
| Sonnet 5 | $0.00008 | $0.00233 |
| Haiku 4.5 | $0.00004 | $0.00117 |
Grade A, and why
variable-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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.
変数の命名規則 (TypeScript/JavaScript)
TypeScript/JavaScriptのコードにおける変数の命名規則です。
ファイル名やディレクトリ名についてはfile-namingを参照してください。
基本のケース
変数・パラメータには基本的にcamelCaseを使います。
const taxedPrice = itemPrice * (1 + taxRate);
const userName = profile.displayName;
定数でもUPPER_SNAKE_CASEは避けてcamelCaseを使う
再代入されない定数のように見える変数でも、 基本的にはUPPER_SNAKE_CASEではなくcamelCaseを使ってください。
// 良い
const maxRetryCount = 3;
const apiBaseUrl = "https://example.com";
const emailPattern = /^.+@.+$/;
// 避ける
const MAX_RETRY_COUNT = 3;
const API_BASE_URL = "https://example.com";
const EMAIL_PATTERN = /^.+@.+$/;
理由は以下の通りです。
constがデフォルトになった現代のコードでは、
再代入されないことはconstキーワードが既に表現しています。
UPPER_SNAKE_CASEで「再代入されない」ことを重ねて示すのは冗長です。
UPPER_SNAKE_CASEにすべき「真の定数」の判定は手間がかかります。
主要なスタイルガイド(GoogleやAirbnb)もconstを一律にUPPER_SNAKE_CASEにせよとは言っておらず、
「モジュールレベルかつ意味的に深く不変なプリミティブ値」のような狭い条件に限定しています。
newで生成したオブジェクトや関数、RegExpのように内部状態を持つ値は、
constであってもこの基準では「定数ではない」のでcamelCaseが自然です。
この境界はしばしば曖昧で、宣言のたびに判断するコストが高いです。
ハードコードしていた値を後から計算式や引数に変えるリファクタリングをすると、 UPPER_SNAKE_CASEのままでは名前を付け替える必要が出てきます。 最初からcamelCaseで統一しておけばこの付け替えが発生しません。
camelCaseに統一すれば、 個々の変数が「真の定数」かどうかを判断する必要がなくなり、 コードベース全体で一貫した命名になります。
標準ライブラリやWeb APIの大文字定数について
Math.PINumber.MAX_SAFE_INTEGERWebSocket.OPEN
のように標準ライブラリやWeb APIにはUPPER_SNAKE_CASE/UPPER_CASEの定数が存在します。
これらは利用する側であって自分で命名するわけではないので、 提供されている名前をそのまま使ってください。 これらの存在は、 自分のコードでUPPER_SNAKE_CASEを使う理由にはなりません。
これらが大文字なのはC言語からJavaやWeb IDLへと受け継がれた歴史的慣習によるもので、 いずれもプリミティブ型の固定値や整数の列挙値という限られた性質のものです。 自分のコードがこの慣習に追従する義務はありません。
ESLintとの関係
@typescript-eslint/naming-conventionルールのデフォルトは、
variableに対してcamelCaseとUPPER_CASEの両方を許容します。
したがってcamelCaseで統一してもlintは通ります。
さらにcamelCaseだけに強制したい場合は、
variableセレクタのformatを["camelCase"]のみに設定できます。
列挙的な定数値の定義
複数の固定値をまとめて持つ定数オブジェクトや、
文字列ユニオン型の元になる配列を定義する場合は、
キーも値もUPPER_SNAKE_CASEにせず、
camelCaseのオブジェクトにas constを付ける方法を優先します。
詳細はas-const-satisfiesを参照してください。
プロジェクト内での一貫性
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.
- 4d ago First seen · 100 lines · 38 tokens per session scan A f16a14434209
variable-naming is a skill published in the GitHub repository ncaq/konoka (3 stars, last pushed yesterday), licensed Apache-2.0. It adds 38 tokens to every session and 1,167 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-09-05.
Other skills, from other repositories
better-auth
Skill for integrating Better Auth - comprehensive TypeScript authentication framework for Cloudflare D1, Next.js, Nuxt, and 15+ frameworks. Use when adding auth, encountering D1 adapter errors, or implementing OAuth/2FA/RBAC features.
bun-bundler
This skill should be used when the user asks about "bun build", "Bun.build", "bundling with Bun", "code splitting", "tree shaking", "minification", "sourcemaps", "bundle optimization", "esbuild alternative", "building for production", "bundling TypeScript", "bundling for browser", "bundling for Node", or…
bun-hot-reloading
Use when implementing hot reloading with Bun (--hot, --watch), HMR, or automatic code reloading during development. Covers watch mode, hot mode, and HTTP server reload.
language-typescript
TypeScript conventions with generic guidance plus a monorepo-specific addendum.
frontend-ai-guide
Applies React/TypeScript-specific technical decision criteria, anti-pattern detection, debugging, and frontend quality gates. Use when reviewing components, hooks, browser behavior, or frontend implementation completeness.
typescript-rules
React/TypeScript frontend development rules including type safety, component design, state management, and error handling. Use when implementing React components, TypeScript code, or frontend features.