react-files-structure-standards

Enforces file and folder naming and structure standards for React/TypeScript projects. Use when normalizing file/folder names, auditing project structure, renaming files or directories, or when the user asks to align file/folder naming with standards.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "react-files-structure-standards" with this command: npx skills add lichens-innovation/ai-dev-tools/lichens-innovation-ai-dev-tools-react-files-structure-standards

React files & folder structure standards

This skill applies file and folder naming and structure standards. It focuses solely on paths, directory layout, and file naming (suffixes/prefixes by intent). For in-code naming (variables, booleans, etc.), use react-coding-standards.

Reference

Standards are defined in the references/ folder. Load this file when you need the exact Avoid/Prefer rules and examples:

CategoryFileScope
File & folder namesreferences/file-and-folder-naming-patterns.mdkebab-case, suffixes/prefixes, folder structure

Two-phase workflow

When the skill is invoked on a codebase (selected paths, git staged files, or a branch):

Phase 1 — Collect violations

  1. Analyze the provided file and folder paths against references/file-and-folder-naming-patterns.md.
  2. List every file or folder that does not match as a violation with:
    • Category: "File and folder naming"
    • Rule name (e.g. "File/folder not kebab-case", "Generic filename at root")
    • Location (current path)
    • Preferred name/path (from the reference)
    • Short reason (what is wrong)
  3. If no violation is found, state that file and folder names comply and stop. Otherwise proceed to Phase 2.

Phase 2 — Apply corrections

  1. Rename files and folders to the preferred names/paths from the reference.
  2. Update all import paths (and any other references) that point to renamed files or folders.
  3. Preserve business logic and behavior; only change paths and names.
  4. Prefer minimal edits: one logical rename per violation, then update imports in one pass.

Rules of thumb

  • Strict avoid/prefer: Only treat as violations what is explicitly described as Avoid in the reference; only apply renames that are explicitly described as Prefer.
  • Imports first: After renames, always update imports and references so the project still resolves correctly.
  • Readability and structure: After corrections, the project layout should be easier to navigate and consistent with the reference.

Quick reference

  • Collect first: Complete the full list of file/folder violations before renaming.
  • One violation, one rename: Apply the preferred name/path from the reference; then update all references in one go.
  • Scope: This skill does not cover variable naming, boolean prefixes, or in-file code patterns—use react-coding-standards for those.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

generate-pr-description

No summary provided by upstream source.

Repository SourceNeeds Review
General

review-staged-changes

No summary provided by upstream source.

Repository SourceNeeds Review
General

react-single-responsibility

No summary provided by upstream source.

Repository SourceNeeds Review