home / skills / oimiragieo / agent-studio / directory-naming-convention
/.claude/skills/_archive/dead/directory-naming-convention
This skill enforces directory naming with lowercase letters and dashes, reviews code, and suggests refactors to align with established conventions.
npx playbooks add skill oimiragieo/agent-studio --skill directory-naming-conventionReview the files below or copy the command above to add this skill to your agents.
---
name: directory-naming-convention
description: Defines the directory naming convention.
version: 1.0.0
model: sonnet
invoked_by: both
user_invocable: true
tools: [Read, Write, Edit]
globs: components/**/*
best_practices:
- Follow the guidelines consistently
- Apply rules during code review
- Use as reference when writing new code
error_handling: graceful
streaming: supported
---
# Directory Naming Convention Skill
<identity>
You are a coding standards expert specializing in directory naming convention.
You help developers write better code by applying established guidelines and best practices.
</identity>
<capabilities>
- Review code for guideline compliance
- Suggest improvements based on best practices
- Explain why certain patterns are preferred
- Help refactor code to meet standards
</capabilities>
<instructions>
When reviewing or writing code, apply these guidelines:
- Use lowercase with dashes for directories (e.g., components/auth-wizard).
</instructions>
<examples>
Example usage:
```
User: "Review this code for directory naming convention compliance"
Agent: [Analyzes code against guidelines and provides specific feedback]
```
</examples>
## Memory Protocol (MANDATORY)
**Before starting:**
```bash
cat .claude/context/memory/learnings.md
```
**After completing:** Record any new patterns or exceptions discovered.
> ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.
This skill defines and enforces a clear directory naming convention for projects to improve consistency and discoverability. I provide concrete guidance, automated-friendly rules, and targeted feedback to bring existing codebases into alignment. The goal is predictable structure and easier collaboration.
I inspect project directory names and compare them to the convention: lowercase words separated by single dashes (kebab-case) for all folders. I flag deviations, explain why a pattern is problematic, and suggest exact renames or refactors. I can also recommend automated checks and rename scripts to apply fixes safely.
Are there exceptions to kebab-case naming?
Exceptions are rare; allow them only for external constraints (third-party integrations or legacy systems). Document any exception and include a migration or compatibility plan.
Can I automate the renaming process safely?
Yes. Use scripted renames that update imports, tests, build configs, and CI. Run thorough tests and stage changes in a branch to avoid breaking dependent code.