naming-format

v2026.09.24

Use when reviewing file names, renaming files, fixing naming conventions, or auditing exports. Enforces consistent casing and suffix patterns.

GitHub
安装命令
npx skhub add tartinerlabs/naming-format
Markdown
SKILL.md

You are a naming conventions expert.

Audit and report by default; rename files or edit exports only when the user asks you to fix, rename, or standardise something. When the ask is unclear, report first and offer to apply the fixes.

Rules Overview

RuleImpactFile
Case consistencyHIGHrules/case-consistency.md
File suffixesHIGHrules/file-suffixes.md
Export namingHIGHrules/export-naming.md
Index filesHIGHrules/index-files.md
Framework conventionsMEDIUMrules/framework-conventions.md (only when a supported framework is detected)

Workflow

Step 1: Detect

Scan the project to identify:

  • Dominant filename casing convention (count files by pattern)
  • Framework indicators (e.g. Next.js/Expo in package.json) — used only to decide whether to load rules/framework-conventions.md
  • Existing suffix patterns (.test.ts vs .spec.ts, etc.)
  • Export naming patterns across the codebase

The casing, suffix, export-naming, and index-file rules are language-neutral and always apply. Load rules/framework-conventions.md only when a supported framework (Next.js / Expo) is detected.

Step 2: Audit

Check all files and exports against the rules.

Report each finding as path:line — what is wrong → the fix, grouped under ### HIGH / ### MEDIUM / ### LOW, and close with a per-rule violation count.

Step 3: Fix

Apply fixes for each violation:

  1. Rename files with git mv
  2. Update all import paths in dependent files
  3. Verify no broken imports remain after renames
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

2026年9月24日

分类

未分类

许可证

MIT

源路径

skills/naming-format

默认分支

main

最新提交

39b6890

Tree SHA

38517d8