project-structure-guide
2
总安装量
0
周安装量
#64531
全站排名
安装命令
npx skills add https://github.com/asiaostrich/universal-dev-standards --skill project-structure-guide
Skill 文档
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:
- Ask for language/framework
- Generate appropriate directory structure
- Create essential config files
- Generate .gitignore
Review Structure
When reviewing existing structure:
- Check language conventions
- Verify gitignore patterns
- Suggest improvements
- 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