一键导入
env-setup
Bootstrap developer environment by detecting project type, listing prerequisites, generating .env.example, and producing a Getting Started guide
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Bootstrap developer environment by detecting project type, listing prerequisites, generating .env.example, and producing a Getting Started guide
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create Architecture Decision Records using the Michael Nygard template with context, decision, alternatives, and consequences
Generate or validate OpenAPI and AsyncAPI specs from code or requirements with consistent naming, errors, and pagination
Generate CHANGELOG.md from git history in Keep a Changelog format with Added, Changed, Deprecated, Removed, Fixed, and Security categories
Generate CI/CD pipeline config for detected platform with lint, test, build, and deploy stages
Scan dependencies for CVEs, outdated packages, license issues, and unused deps to produce a prioritized remediation list
Guide deployment processes including CI/CD pipeline creation, environment setup, and rollback procedures
| name | env-setup |
| description | Bootstrap developer environment by detecting project type, listing prerequisites, generating .env.example, and producing a Getting Started guide |
| license | MIT |
| compatibility | opencode |
| metadata | {"audience":"developers","workflow":"general"} |
.env.example file with all required environment variablesUse this skill when you need to:
.env.example with missing variablesDetect project type: Scan repository for configuration files
package.json -> Node.js (check for next, react, express, etc.)pom.xml / build.gradle -> Java (check for Spring Boot, Quarkus)requirements.txt / pyproject.toml -> Python (check for Django, Flask)go.mod -> GoCargo.toml -> Rustdocker-compose.yml -> Containerized servicesIdentify prerequisites: List everything needed
.node-version, .python-version, .tool-versions)npm, yarn, pnpm, maven, pip, poetry)Generate .env.example: Extract all environment variables
process.env.*, os.environ, System.getenv.env files (redact actual values)Produce Getting Started guide: Write step-by-step instructions
Verify setup: Provide verification commands
.env.example Format# =============================================================================
# Application
# =============================================================================
NODE_ENV=development
PORT=3000
LOG_LEVEL=debug
# =============================================================================
# Database
# =============================================================================
# Required: PostgreSQL connection string
DATABASE_URL=postgresql://user:password@localhost:5432/myapp_dev
# =============================================================================
# Authentication
# =============================================================================
# Required: Generate with `openssl rand -base64 32`
JWT_SECRET=replace-with-generated-secret
JWT_EXPIRY=3600
# =============================================================================
# External Services (optional in development)
# =============================================================================
# SMTP_HOST=smtp.example.com
# SMTP_PORT=587
# SMTP_USER=
# SMTP_PASSWORD=
# =============================================================================
# Feature Flags
# =============================================================================
ENABLE_CACHE=false
ENABLE_RATE_LIMIT=false
# Getting Started
## Prerequisites
- [Node.js](https://nodejs.org/) v20+ (check with `node --version`)
- [Docker](https://www.docker.com/) v24+ (check with `docker --version`)
- [Git](https://git-scm.com/) v2.40+
## Setup
1. Clone the repository:
\`\`\`bash
git clone <repo-url>
cd <project-name>
\`\`\`
2. Install dependencies:
\`\`\`bash
npm install
\`\`\`
3. Set up environment variables:
\`\`\`bash
cp .env.example .env
# Edit .env with your local values
\`\`\`
4. Start infrastructure services:
\`\`\`bash
docker compose up -d
\`\`\`
5. Run database migrations:
\`\`\`bash
npm run db:migrate
\`\`\`
6. Seed development data (optional):
\`\`\`bash
npm run db:seed
\`\`\`
7. Start the development server:
\`\`\`bash
npm run dev
\`\`\`
## Verify
- Application: http://localhost:3000
- API docs: http://localhost:3000/api-docs
- Health check: `curl http://localhost:3000/health`
## Common Issues
| Problem | Solution |
|---------|----------|
| Port already in use | Change `PORT` in `.env` or kill the process on that port |
| Database connection refused | Ensure Docker is running: `docker compose ps` |
| Missing environment variable | Compare `.env` with `.env.example` |
.env.example