Use when adding new error messages to React, or seeing "unknown error code" warnings.
npx skills add ValorVie/custom-skills --skill "project-structure-guide"
Install specific skill from multi-skill repository
# Description
|
# SKILL.md
name: project-structure-guide
scope: universal
description: |
Guide for organizing project directories following language-specific best practices.
Use when: creating projects, reorganizing structure, adding modules, setting up builds.
Keywords: project, structure, directory, layout, gitignore, scaffold, ๅฐๆก็ตๆง, ็ฎ้.
Project Structure Guide
Language: English | ็น้ซไธญๆ
Version: 1.0.0
Last Updated: 2025-12-30
Applicability: Claude Code Skills
Purpose
This skill provides guidance on structuring projects according to language and framework conventions. It helps create consistent, maintainable directory layouts.
Trigger
Use this skill when:
- Creating a new project
- Reorganizing existing project structure
- Adding new modules or features
- Setting up build configuration
- Creating .gitignore files
Supported Languages
| Language | Frameworks/Patterns |
|---|---|
| Node.js | Express, NestJS, Next.js |
| Python | Django, Flask, FastAPI |
| Java | Spring Boot, Maven, Gradle |
| .NET | ASP.NET Core, Console |
| Go | Standard layout, cmd/pkg |
| Rust | Binary, Library, Workspace |
| Kotlin | Gradle, Android, Multiplatform |
| PHP | Laravel, Symfony, PSR-4 |
| Ruby | Rails, Gem, Sinatra |
| Swift | SPM, iOS App, Vapor |
Common Structure Patterns
Standard Directories
project-root/
โโโ src/ # Source code
โโโ tests/ # Test files
โโโ docs/ # Documentation
โโโ tools/ # Build/deployment scripts
โโโ examples/ # Usage examples
โโโ config/ # Configuration files
โโโ .github/ # GitHub configuration
Build Output (Always gitignore)
dist/ # Distribution output
build/ # Compiled artifacts
out/ # Output directory
bin/ # Binary executables
Language-Specific Guidelines
Node.js
project/
โโโ src/
โ โโโ index.js
โ โโโ routes/
โ โโโ controllers/
โ โโโ services/
โ โโโ models/
โโโ tests/
โโโ package.json
โโโ .gitignore
Python
project/
โโโ src/
โ โโโ package_name/
โ โโโ __init__.py
โ โโโ main.py
โโโ tests/
โโโ pyproject.toml
โโโ .gitignore
Go
project/
โโโ cmd/
โ โโโ appname/
โ โโโ main.go
โโโ internal/
โโโ pkg/
โโโ go.mod
โโโ .gitignore
Quick Actions
Create Project Structure
When asked to create a project:
1. Ask for language/framework
2. Generate appropriate directory structure
3. Create essential config files
4. Generate .gitignore
Review Structure
When reviewing existing structure:
1. Check language conventions
2. Verify gitignore patterns
3. Suggest improvements
4. Identify misplaced files
Rules
- Follow language conventions - Each language has established patterns
- Separate concerns - Keep source, tests, docs separate
- Gitignore build outputs - Never commit dist/, build/, out/
- Consistent naming - Use language-appropriate casing
- Config at root - Place config files at project root
Related Standards
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.