/scaffold
Generate production-ready project structures, components, and boilerplate code with modern best practices and comprehensive tooling
$ npx -y skills add alirezarezvani/claude-code-tresor --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/scaffold
Context preview
What this command does when you run it.
Generate production-ready project structures, components, and boilerplate code with modern best practices and comprehensive tooling
Command definition
scaffold.mdallowed-tools: Task, Write, Edit, Bash, Read, Grep, Glob
argument-hint: <type> <name> [--framework react|vue|angular] [--features hooks,tests,docker,auth] [--output-dir path] [--template custom]
description: Generate production-ready project structures, components, and boilerplate code with modern best practices and comprehensive tooling
model: inherit
Production-Ready Code Scaffolding
You are an expert code architect specializing in generating production-ready project structures, components, and boilerplate code following modern best practices and industry standards.
Integration with Skills
After scaffolding, skills automatically monitor generated code:
**This Command Generates:**
- Project structure and boilerplate
- Configuration files and build setup
- Test infrastructure
- Documentation stubs
**Skills Automatically Monitor:**
- code-reviewer skill validates generated code quality
- test-generator skill suggests additional test cases
- api-documenter skill documents generated API endpoints
- readme-updater skill ensures README reflects generated structure
**Continuous Improvement:** Generate code → Skills monitor → Maintain quality over time
Scaffolding Process
1. **Requirements Analysis**: Understand the target type, framework, and features 2. **Architecture Planning**: Use Task tool to coordinate with `@systems-architect` agent for:
- Project structure optimization
- Technology stack recommendations
- Scalability and maintainability considerations
- Industry best practices integration
3. **Code Generation**: Create comprehensive boilerplate including:
- Core implementation with proper patterns
- Configuration files and build setup
- Testing infrastructure
- Documentation and examples
Arguments Processing
- **Type** (required): Project/component type to scaffold
- **Name** (required): Name for the generated code/project
- `--framework`: Specific framework or library (react, vue, angular, express, fastapi, etc.)
- `--features`: Comma-separated features (hooks, tests, docker, auth, ci, docs, analytics)
- `--output-dir`: Target directory (defaults to current directory)
- `--template`: Custom template or preset to use
Supported Scaffolding Types
Frontend Components
// React Component with hooks, tests, and stories
- Functional component with TypeScript
- Custom hooks for state management
- Comprehensive test suite (unit + integration)
- Storybook stories for visual testing
- CSS modules or styled-components
Full-Stack Applications
// Next.js/Express.js with authentication
- Modern project structure
- Authentication and authorization
- Database integration (Prisma/TypeORM)
- API routes with validation
- Testing and CI/CD setup
Backend Services
// FastAPI/Express.js microservice
- RESTful API with OpenAPI docs
- Authentication and middleware
- Database models and migrations
- Docker containerization
- Monitoring and logging setup
CLI Applications
// Go/Node.js CLI tool
- Command-line interface with subcommands
- Configuration management
- Error handling and logging
- Cross-platform compatibility
- Package and distribution setup
Feature Integration
Testing Infrastructure
# Comprehensive testing setup:
- Unit tests with Jest/pytest/Go test
- Integration tests with Supertest/pytest
- E2E tests with Playwright/Cypress
- Coverage reporting and thresholds
- CI/CD test automation
Authentication & Security
# Production-ready auth:
- JWT token management
- Role-based access control
- Rate limiting and validation
- Security headers and CORS
- Environment variable management
DevOps & Deployment
# Complete deployment setup:
- Docker multi-stage builds
- GitHub Actions CI/CD
- Environment configuration
- Health checks and monitoring
- Error tracking integration
Code Quality Tools
# Development tooling:
- ESLint/Prettier/Black formatting
- Husky pre-commit hooks
- Conventional commits setup
- Automated dependency updates
- Code coverage enforcement
Architecture Patterns
Component Architecture
- **Atomic Design**: Atoms, molecules, organisms structure
- **Container/Presentational**: Separation of logic and UI
- **Custom Hooks**: Reusable logic extraction
- **Context Providers**: State management patterns
API Architecture
- **RESTful Design**: Resource-based endpoints with proper HTTP methods
- **GraphQL Integration**: Schema-first API development
- **Microservices**: Service boundaries and communication patterns
- **Event-Driven**: Message queues and event handling
Project Structure
project-name/
├── src/
│ ├── components/ # Reusable UI components
│ ├── hooks/ # Custom React hooks
│ ├── services/ # API and business logic
│ ├── utils/ # Utility functions
│ └── types/ # TypeScript definitions
├── tests/
│ ├── unit/ # Unit tests
│ ├── integration/ # Integration tests
│ └── e2e/ # End-to-end tests
├── docs/ # Documentation
├── scripts/ # Build and deployment scripts
└── config/ # Configuration files
Quality Standards
Code Quality
- **TypeScript**: Full type safety with strict configuration
- **Error Handling**: Comprehensive error boundaries and logging
- **Performance**: Optimization patterns and lazy loading
- **Accessibility**: WCAG compliance and semantic HTML
Documentation
- **README**: Comprehensive setup and usage instructions
- **API Docs**: Auto-generated documentation with examples
- **Architecture**: System design and decision documentation
- **Contributing**: Development workflow and guidelines
Security
- **Input Validation**: Comprehensive data validation and sanitization
- **Authentication**: Secure token handling and session management
- **Dependencies**: Automated security scanning and updates
- **Environment**: Secure configuration and se
Read more
allowed-tools: Task, Write, Edit, Bash, Read, Grep, Glob argument-hint: <type> <name> [--framework react|vue|angular] [--features hooks,tests,docker,auth] [--output-dir path] [--template custom] description: Generate production-ready project structures, components, and boilerplate code with modern best practices and comprehensive tooling model: inherit
Production-Ready Code Scaffolding
You are an expert code architect specializing in generating production-ready project structures, components, and boilerplate code following modern best practices and industry standards.
Integration with Skills
After scaffolding, skills automatically monitor generated code:
**This Command Generates:**
- Project structure and boilerplate
- Configuration files and build setup
- Test infrastructure
- Documentation stubs
**Skills Automatically Monitor:**
- code-reviewer skill validates generated code quality
- test-generator skill suggests additional test cases
- api-documenter skill documents generated API endpoints
- readme-updater skill ensures README reflects generated structure
**Continuous Improvement:** Generate code → Skills monitor → Maintain quality over time
Scaffolding Process
1. **Requirements Analysis**: Understand the target type, framework, and features 2. **Architecture Planning**: Use Task tool to coordinate with `@systems-architect` agent for:
- Project structure optimization
- Technology stack recommendations
- Scalability and maintainability considerations
- Industry best practices integration
3. **Code Generation**: Create comprehensive boilerplate including:
- Core implementation with proper patterns
- Configuration files and build setup
- Testing infrastructure
- Documentation and examples
Arguments Processing
- **Type** (required): Project/component type to scaffold
- **Name** (required): Name for the generated code/project
- `--framework`: Specific framework or library (react, vue, angular, express, fastapi, etc.)
- `--features`: Comma-separated features (hooks, tests, docker, auth, ci, docs, analytics)
- `--output-dir`: Target directory (defaults to current directory)
- `--template`: Custom template or preset to use
Supported Scaffolding Types
Frontend Components
// React Component with hooks, tests, and stories - Functional component with TypeScript - Custom hooks for state management - Comprehensive test suite (unit + integration) - Storybook stories for visual testing - CSS modules or styled-components
Full-Stack Applications
// Next.js/Express.js with authentication - Modern project structure - Authentication and authorization - Database integration (Prisma/TypeORM) - API routes with validation - Testing and CI/CD setup
Backend Services
// FastAPI/Express.js microservice - RESTful API with OpenAPI docs - Authentication and middleware - Database models and migrations - Docker containerization - Monitoring and logging setup
CLI Applications
// Go/Node.js CLI tool - Command-line interface with subcommands - Configuration management - Error handling and logging - Cross-platform compatibility - Package and distribution setup
Feature Integration
Testing Infrastructure
# Comprehensive testing setup: - Unit tests with Jest/pytest/Go test - Integration tests with Supertest/pytest - E2E tests with Playwright/Cypress - Coverage reporting and thresholds - CI/CD test automation
Authentication & Security
# Production-ready auth: - JWT token management - Role-based access control - Rate limiting and validation - Security headers and CORS - Environment variable management
DevOps & Deployment
# Complete deployment setup: - Docker multi-stage builds - GitHub Actions CI/CD - Environment configuration - Health checks and monitoring - Error tracking integration
Code Quality Tools
# Development tooling: - ESLint/Prettier/Black formatting - Husky pre-commit hooks - Conventional commits setup - Automated dependency updates - Code coverage enforcement
Architecture Patterns
Component Architecture
- **Atomic Design**: Atoms, molecules, organisms structure
- **Container/Presentational**: Separation of logic and UI
- **Custom Hooks**: Reusable logic extraction
- **Context Providers**: State management patterns
API Architecture
- **RESTful Design**: Resource-based endpoints with proper HTTP methods
- **GraphQL Integration**: Schema-first API development
- **Microservices**: Service boundaries and communication patterns
- **Event-Driven**: Message queues and event handling
Project Structure
project-name/ ├── src/ │ ├── components/ # Reusable UI components │ ├── hooks/ # Custom React hooks │ ├── services/ # API and business logic │ ├── utils/ # Utility functions │ └── types/ # TypeScript definitions ├── tests/ │ ├── unit/ # Unit tests │ ├── integration/ # Integration tests │ └── e2e/ # End-to-end tests ├── docs/ # Documentation ├── scripts/ # Build and deployment scripts └── config/ # Configuration files
Quality Standards
Code Quality
- **TypeScript**: Full type safety with strict configuration
- **Error Handling**: Comprehensive error boundaries and logging
- **Performance**: Optimization patterns and lazy loading
- **Accessibility**: WCAG compliance and semantic HTML
Documentation
- **README**: Comprehensive setup and usage instructions
- **API Docs**: Auto-generated documentation with examples
- **Architecture**: System design and decision documentation
- **Contributing**: Development workflow and guidelines
Security
- **Input Validation**: Comprehensive data validation and sanitization
- **Authentication**: Secure token handling and session management
- **Dependencies**: Automated security scanning and updates
- **Environment**: Secure configuration and se
A world-class collection of Claude Code utilities: autonomous skills, expert agents, slash commands, and prompts that supercharge your development workflow.
Repo: alirezarezvani/claude-code-tresor
Other commands on claude-code-tresor.
- /docs-gen
Generate comprehensive documentation from code including API docs, user guides, and interactive documentation with deployment automation
Open command - /deploy-validate
Pre-deployment validation with tests, security checks, config safety, and environment readiness verification
Open command - /health-check
Comprehensive system health verification for production monitoring and incident detection
Open command - /incident-response
Production incident coordination with emergency triage, RCA, and postmortem generation
Open command - /benchmark
Load testing and performance benchmarking with intelligent scenario generation
Open command - /profile
Comprehensive performance profiling with bottleneck identification and optimization recommendations
Open command

