Architecture logiciellesource GitHub
Assistant de configuration de projet
/project-setupMettez en place de nouveaux projets en respectant une structure adéquate et les meilleures pratiques.
// contenu du skill
Project Setup Helper
Set up new projects with proper structure and best practices.
Purpose
This command helps you set up new projects with proper directory structure, configuration files, and development environment.
Usage
/project-setupWhat this command does
- Creates project structure with standard directories
- Sets up configuration files (.gitignore, README, etc.)
- Initializes version control and development tools
- Configures environment files and dependencies
- Follows language-specific conventions and best practices
Project Structure Templates
Generic Project Structure
project-name/
├── README.md # Project documentation
├── .gitignore # Git ignore rules
├── .env.example # Environment variables template
├── LICENSE # Project license
├── CHANGELOG.md # Version history
├── docs/ # Documentation
│ ├── API.md
│ ├── CONTRIBUTING.md
│ └── DEPLOYMENT.md
├── src/ # Source code
│ ├── main/
│ ├── utils/
│ └── config/
├── tests/ # Test files
│ ├── unit/
│ ├── integration/
│ └── fixtures/
├── scripts/ # Build and deployment scripts
│ ├── build.sh
│ ├── deploy.sh
│ └── setup.sh
└── config/ # Configuration files
├── development.yml
├── production.yml
└── testing.ymlWeb Application Structure
web-app/
├── public/ # Static assets
│ ├── index.html
│ ├── favicon.ico
│ └── assets/
│ ├── css/
│ ├── js/
│ └── images/
├── src/ # Source code
│ ├── components/ # Reusable components
│ ├── pages/ # Page components
│ ├── services/ # API services
│ ├── utils/ # Utility functions
│ ├── styles/ # Stylesheets
│ └── config/ # Configuration
├── tests/ # Test files
└── build/ # Build outputAPI Project Structure
api-project/
├── src/
│ ├── controllers/ # Request handlers
│ ├── models/ # Data models
│ ├── services/ # Business logic
│ ├── middleware/ # Custom middleware
│ ├── routes/ # API routes
│ ├── utils/ # Utility functions
│ └── config/ # Configuration
├── tests/
│ ├── unit/
│ ├── integration/
│ └── e2e/
├── docs/
│ ├── api-spec.yml # OpenAPI specification
│ └── README.md
└── scripts/
├── seed-db.js # Database seeding
└── migrate.js # Database migrationsEssential Configuration Files
.gitignore Template
gitignore
# Dependencies
node_modules/
*.log
npm-debug.log*
# Environment files
.env
.env.local
.env.production
# Build outputs
dist/
build/
*.tgz
# IDE files
.vscode/
.idea/
*.swp
*.swo
# OS files
.DS_Store
Thumbs.db
# Temporary files
*.tmp
*.tempREADME.md Template
markdown
# Project Name
Brief description of what this project does.
## Features
- Feature 1
- Feature 2
- Feature 3
## Installation
\`\`\`bash
# Clone the repository
git clone https://github.com/username/project-name.git
# Install dependencies
npm install
# Copy environment file
cp .env.example .env
\`\`\`
## Usage
\`\`\`bash
# Start development server
npm run dev
# Run tests
npm test
# Build for production
npm run build
\`\`\`
## API Documentation
[API documentation](docs/API.md)
## Contributing
Please read [CONTRIBUTING.md](docs/CONTRIBUTING.md) for details.
## License
This project is licensed under the MIT License - see [LICENSE](LICENSE) file..env.example Template
env
# Application
NODE_ENV=development
PORT=3000
HOST=localhost
# Database
DB_HOST=localhost
DB_PORT=5432
DB_NAME=myapp
DB_USER=username
DB_PASSWORD=password
# API Keys
API_KEY=your-api-key-here
SECRET_KEY=your-secret-key-here
# External Services
REDIS_URL=redis://localhost:6379
EMAIL_SERVICE_API_KEY=your-email-keyDevelopment Environment Setup
Package.json Scripts
json
{
"scripts": {
"start": "node src/index.js",
"dev": "nodemon src/index.js",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"lint": "eslint src/",
"lint:fix": "eslint src/ --fix",
"format": "prettier --write src/",
"build": "webpack --mode production",
"build:dev": "webpack --mode development",
"clean": "rm -rf dist/"
}
}Git Initialization
bash
# Initialize Git repository
git init
# Add initial files
git add .
# Create initial commit
git commit -m "feat: initial project setup
- Add project structure
- Configure development environment
- Add documentation templates
- Set up testing framework"
# Add remote origin
git remote add origin https://github.com/username/project-name.git
# Push to remote
git push -u origin mainLanguage-Specific Setup
Node.js/JavaScript
// source originale publique
davila7/claude-code-templates/cli-tool/templates/common/.claude/commands/project-setup.md
Licence : MIT License
Projet indépendant, non affilié à Anthropic. Ce skill reste la propriété de son auteur original.
// similaires