file-naming

Enforce descriptive file and folder naming conventions in repositories.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/erichugy/agentic.skills --skill file-naming
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: file-naming
Source: https://github.com/erichugy/agentic.skills/tree/main/file-naming
Command: npx skills add https://github.com/erichugy/agentic.skills --skill file-naming

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Vague or inconsistent file and folder names hide intent, slow development, increase cognitive load during reviews, and make refactors fragile. This Skill provides concrete naming rules and patterns so developers and maintainers can understand code structure without opening files.

Core Features & Use Cases

  • Specific, self-documenting names: prefer descriptive filenames over generic buckets like utils or helpers.
  • Domain vs. action patterns: choose folder-first or file-first structures based on what varies more.
  • Folder and file roles: ensure folders provide domain context, files provide role, use barrels for consumer-facing modules, and mirror tests to source files.
  • Use Case: apply these rules during code reviews, repo onboarding, or when reorganizing modules to reduce search time and prevent duplicated responsibilities.

Quick Start

Rename ambiguous files such as utils.ts into clear purpose-named files like parse-options.ts or split responsibilities into a module folder with well-named role files.

Frequently Asked Questions about file-naming

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What's the best way to organize files and folders to make code structure self-explanatory?

To make code structure self-explanatory, enforce clear file and folder naming by using descriptive filenames instead of vague buckets like utils, ensuring folders provide domain context, and mirroring tests to source files for immediate discoverability.

How do I rename ambiguous utility files during a project refactor?

Rename ambiguous utility files during a project refactor by replacing generic names like utils.ts with specific purpose-named files like parse-options.ts, or split responsibilities into a module folder containing well-named role files.

When should I use domain-context folders versus action-first file naming conventions?

Use domain-context folders versus action-first file naming conventions based on what varies more in your source code repository: choose folder-first structures when domains vary most, and file-first structures when actions or roles vary most.

Do I need indexed consumer barrels when reorganizing modules for code reviews?

You need indexed consumer barrels when reorganizing modules for code reviews to provide a clear consumer-facing interface, ensuring that files provide specific roles while barrels expose the module's public API cleanly.

Why does inconsistent file naming slow down development and increase cognitive load?

Inconsistent file naming slows development and increases cognitive load because vague or generic bucket names hide intent, making each file's purpose unclear without opening it, which makes code reviews and refactoring fragile.

Can these file naming conventions be applied to documentation and source code repositories?

These file naming conventions can be applied to source code repositories, documentation, and project refactors to enforce clear, specific naming, making each file's purpose immediately discoverable without opening files.