mirror of
https://github.com/SuperClaude-Org/SuperClaude_Framework.git
synced 2025-12-29 16:16:08 +00:00
Major streamlining achievement: - Eliminate 2,733 lines of duplicate content across commands - Reduce individual command files by ~70% (130-150 → 35-60 lines) - Leverage existing shared/*.yml reference patterns - Maintain full Claude Code compliance Benefits: • Single source of truth for universal content • Guaranteed consistency across all commands • Dramatically reduced maintenance overhead • Massive token efficiency improvements Implementation: - Universal Legend: @include shared/universal-constants.yml#Universal Legend - Universal Flags: @include shared/flag-inheritance.yml#Universal_Always - Command patterns: References to appropriate shared/*.yml files - Template system: Enhanced command-patterns.yml 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
109 lines
2.8 KiB
Markdown
109 lines
2.8 KiB
Markdown
# /dev-setup - Configure development environment and CI/CD
|
|
|
|
@include shared/universal-constants.yml#Universal_Legend
|
|
|
|
## Purpose
|
|
Configure comprehensive development environments and CI/CD pipelines based on project requirements in $ARGUMENTS.
|
|
|
|
## Syntax
|
|
`/dev-setup [flags] [target]`
|
|
|
|
@include shared/flag-inheritance.yml#Universal_Always
|
|
|
|
Thinking flags (optional):
|
|
- --think→environment configuration & dependency analysis
|
|
- --think-hard→complex CI/CD pipelines & multi-stage builds
|
|
- --ultrathink→complete development ecosystem design
|
|
|
|
## Core Flags
|
|
|
|
--type flag:
|
|
- node: Node.js/TypeScript project setup
|
|
- python: Python virtual environment & tooling
|
|
- react: React + Vite/Next.js configuration
|
|
- fullstack: Complete full-stack environment
|
|
- monorepo: Multi-package monorepo setup
|
|
|
|
--ci flag:
|
|
- github: GitHub Actions workflows
|
|
- gitlab: GitLab CI/CD pipelines
|
|
- jenkins: Jenkins pipeline configuration
|
|
- circleci: CircleCI configuration
|
|
- custom: Custom CI/CD solution
|
|
|
|
--tools flag:
|
|
- Include dev tools: linters, formatters, pre-commit hooks
|
|
- Configure VS Code settings & extensions
|
|
- Setup debugging configurations
|
|
- Install recommended tooling
|
|
|
|
## Setup Components
|
|
|
|
Environment Configuration:
|
|
- Package manager setup (npm/yarn/pnpm)
|
|
- Version management (.nvmrc, .python-version)
|
|
- Environment variables & .env structure
|
|
- Docker configuration if needed
|
|
|
|
Code Quality:
|
|
- ESLint/Prettier configuration
|
|
- Pre-commit hooks (husky, lint-staged)
|
|
- Test framework setup (Jest, Pytest, etc)
|
|
- Code coverage configuration
|
|
|
|
CI/CD Pipeline:
|
|
- Build & test workflows
|
|
- Deployment configurations
|
|
- Security scanning (SAST/DAST)
|
|
- Dependency vulnerability checks
|
|
- Release automation
|
|
|
|
Development Tools:
|
|
- VS Code workspace settings
|
|
- Debug configurations
|
|
- Task runners & scripts
|
|
- Documentation generation
|
|
|
|
## Best Practices
|
|
|
|
Security:
|
|
- Never commit secrets or credentials
|
|
- Use environment variables for sensitive data
|
|
- Configure security scanning in CI
|
|
- Implement dependency vulnerability checks
|
|
|
|
Performance:
|
|
- Cache dependencies in CI
|
|
- Parallelize test execution
|
|
- Optimize build processes
|
|
- Use appropriate resource limits
|
|
|
|
Maintainability:
|
|
- Consistent tooling across team
|
|
- Clear documentation
|
|
- Automated quality checks
|
|
- Reproducible environments
|
|
|
|
## Examples
|
|
|
|
```bash
|
|
# Node.js project with GitHub Actions
|
|
/dev-setup --type node --ci github --tools
|
|
|
|
# Python project with comprehensive tooling
|
|
/dev-setup --type python --tools --think
|
|
|
|
# Full-stack monorepo with GitLab CI
|
|
/dev-setup --type monorepo --ci gitlab --think-hard
|
|
|
|
# React project with all quality tools
|
|
/dev-setup --type react --tools --ci github
|
|
```
|
|
|
|
## Deliverables
|
|
|
|
- Complete environment configuration files
|
|
- CI/CD pipeline definitions
|
|
- Development tool configurations
|
|
- Setup documentation & README updates
|
|
- Scripts for common development tasks |