.claude/skills/prd-v06-environment-setup/SKILL.md
Document development environment requirements for team consistency and AI agent understanding during PRD v0.6 Architecture. Triggers on requests to define environment setup, document tooling, create dev setup guide, or when user asks "what tools do I need?", "environment setup", "dev environment", "CLI requirements", "project setup", "onboarding setup". Consumes TECH- (stack selections), ARC- (architecture decisions). Outputs ENV- entries for development, CI/CD, and infrastructure environments. Feeds v0.7 Build Execution.
npx skillsauth add mattgierhart/PRD-driven-context-engineering prd-v06-environment-setupInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Position in workflow: v0.6 Architecture Design / Technical Specification → v0.6 Environment Setup → v0.7 Build Execution
Environment setup documents the tools, packages, and configurations developers need to work on the project. This eliminates environment drift and speeds up onboarding.
This skill requires prior work from v0.5-v0.6:
This skill assumes v0.5 Technical Stack Selection is complete with TECH- entries specifying the tech stack.
This skill creates/updates:
All ENV- entries are specifications, not confidence-based. They are:
Example ENV-001 entry (Development Environment):
ENV-001: Development Environment
Category: Development Setup
Status: Approved | Date: 2026-02-26
Owner: Engineering Team
Purpose:
Local development setup for team consistency and AI agent understanding.
CLIs (Global, install once):
- Node.js 20.x: https://nodejs.org — Language runtime
Install: `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash && nvm install 20`
Verify: `node --version`
- mise: https://mise.jdx.dev — Version manager
Install: `curl https://mise.jdx.dev/install.sh | sh`
Verify: `mise --version`
Packages (Per-Project):
- typescript: Type checking (devDependency)
- eslint, prettier: Code quality (devDependencies)
- jest: Testing framework (devDependency)
- Listed in package.json, installed via: `npm install`
Configuration Files:
| File | Purpose |
|------|---------|
| package.json | Dependencies, scripts, project metadata |
| tsconfig.json | TypeScript compiler options |
| .eslintrc.json | Linting rules |
| .prettierrc | Code formatting rules |
| .env.example | Template for environment variables |
Scripts:
{
"validate": "npm run lint && npm run type-check",
"lint": "eslint src/",
"fix": "eslint src/ --fix && prettier --write src/",
"type-check": "tsc --noEmit",
"test": "jest",
"dev": "next dev",
"build": "next build"
}
Verification:
# 1. Check global CLIs
node --version
mise --version
# 2. Check per-project packages
npm list | head -20
# 3. Run validation
npm run validate
# 4. Run tests
npm run test
Related IDs: TECH-001 (Next.js), TECH-002 (TypeScript), ARC-001 (monolith structure)
Example ENV-002 entry (CI/CD):
ENV-002: CI/CD Pipeline
Category: Automation
Status: Approved | Date: 2026-02-26
Purpose:
Automated testing and deployment configuration.
Workflow Files:
- .github/workflows/test.yml: Run tests on push to any branch
- .github/workflows/deploy.yml: Deploy main branch to production on merge
Required Secrets (set in GitHub Settings → Secrets):
| Secret | Purpose |
|--------|---------|
| VERCEL_TOKEN | Authentication for Vercel deployment |
| DATABASE_URL | Production database connection string |
| API_KEY | Third-party API credentials |
Pipeline Stages:
1. Install: `npm install`
2. Lint: `npm run validate` (must pass)
3. Test: `npm run test` (must pass)
4. Build: `npm run build` (must succeed)
5. Deploy: Push to Vercel (main branch only)
Related IDs: ENV-001, TECH-002 (Node.js), ARC-001 (monolith deployment)
| Type | What It Defines | When Required | |------|-----------------|---------------| | ENV-001 | Development environment (local setup) | Always | | ENV-002 | CI/CD pipeline configuration | When using automated testing/deployment | | ENV-003 | Production infrastructure | When deploying to production |
Rule: ENV-001 (Development Environment) is required for every project. ENV-002 and ENV-003 are optional based on project needs.
Rule: Use CLIs for operations, MCPs only when CLIs are insufficient.
| Factor | CLI | MCP | |--------|-----|-----| | Works in CI/CD | Yes | No | | Works locally | Yes | Yes (limited contexts) | | Structured output | JSON, exit codes | Varies | | Debugging | Standard tools | Harder |
Decision: Default to CLI. Only document MCPs for operations where CLIs don't exist.
Rule: Language-specific packages installed per-project, not globally.
Global (OK):
Per-Project (Required):
Rule: ENV- specs use structured data (tables, code blocks), not narrative.
Why:
Rule: Every ENV- spec includes verification commands.
Why:
ENV-001: Development Environment
Category: Development Setup
Status: Approved | Date: YYYY-MM-DD
Owner: {Team/Person}
Purpose:
Document local development requirements for team consistency.
CLIs (Global):
- {tool}: {purpose} — {install command}
Packages (Per-Project):
- {package}: {purpose}
Configuration Files:
| File | Purpose |
|------|---------|
| {file} | {purpose} |
Scripts:
{
"validate": "{quality check command}",
"fix": "{auto-fix command}",
"test": "{test command}"
}
Verification:
# 1. Check tools
{tool} --version
# 2. Check packages
{package manager list command}
# 3. Run validation
npm run validate
Related IDs: TECH-XXX, ARC-XXX
ENV-002: CI/CD Pipeline
Category: Automation
Status: Approved | Date: YYYY-MM-DD
Purpose:
Document automated testing and deployment configuration.
Workflow Files:
- {path}: {purpose}
Required Secrets:
| Secret | Purpose | Where to Set |
|--------|---------|--------------|
| {name} | {purpose} | {location} |
Pipeline Stages:
1. {Stage}: {What happens}
2. {Stage}: {What happens}
Related IDs: ENV-001, DEP-XXX
ENV-003: Production Infrastructure
Category: Infrastructure
Status: Approved | Date: YYYY-MM-DD
Purpose:
Document production hosting and services configuration.
Hosting Platform:
{Platform and configuration details}
Environment Variables:
| Variable | Purpose | Required |
|----------|---------|----------|
| {name} | {purpose} | {yes/no} |
Services:
| Service | Purpose | Connection |
|---------|---------|------------|
| {service} | {purpose} | {how connected} |
Related IDs: DEP-XXX, MON-XXX
mise, asdf, nvm, pyenv, rbenveslint, prettier, biomeruff, black, pylintgolangci-linttypescriptmypy, pyrightjq (JSON), yq (YAML)httpie, curl, bruno-cligh (GitHub CLI), glab (GitLab CLI)| Anti-Pattern | Signal | Fix |
|--------------|--------|-----|
| Global package pollution | npm install -g for project packages | Use devDependencies |
| Missing verification | No way to confirm setup | Add verification commands |
| Prose instead of structure | Long paragraphs describing setup | Use tables and code blocks |
| MCP over CLI | Using MCP when CLI exists | Prefer CLI for portability |
| Undocumented config | Config files without explanation | Document purpose of each file |
| Implicit dependencies | Setup fails without warning | List all dependencies explicitly |
Before proceeding to Build Execution:
ENV- entries feed into:
| Consumer | What It Uses | Example | |----------|--------------|---------| | v0.7 Build Execution | ENV-001 defines dev setup | Developer follows ENV-001 to set up | | Onboarding | ENV-001 as setup guide | New dev uses ENV-001 for first day | | CI/CD | ENV-002 defines pipeline | GitHub Actions mirrors ENV-002 | | Deployment | ENV-003 defines infrastructure | DEP- references ENV-003 |
assets/env.mdreferences/examples.mdtools
Make technology decisions for every product capability by discovering existing assets, evaluating vendor-aligned options, and categorizing as Reuse/Extend/Build/Buy/Integrate/Research during PRD v0.5 Red Team Review. Handles both greenfield and brownfield contexts. Triggers on "tech stack", "build or buy?", "what technologies?", "technical decisions", "what do we reuse?", "existing stack", "vendor constraint", "IBM-first", "what tools do we need?", "evaluate solutions", "select tech stack". Consumes FEA- (features), SCR- (screens), RISK- (constraints). Outputs TECH- entries with decisions, rationale, and cross-references. Feeds v0.6 Architecture Design.
development
Define success criteria and tracking setup for launch during PRD v0.9 Go-to-Market. Triggers on requests to define launch metrics, set up tracking, or when user asks "how do we measure launch success?", "launch KPIs", "tracking setup", "success criteria", "analytics", "launch goals". Outputs KPI- entries specialized for launch measurement.
development
Define go-to-market strategy including launch plan, messaging, channels, and timing during PRD v0.9 Go-to-Market. Triggers on requests to plan launch, define GTM strategy, or when user asks "how do we launch?", "go-to-market", "launch plan", "marketing strategy", "messaging", "launch channels", "GTM". Outputs GTM- entries with launch plan components.
development
Establish channels and processes for capturing and processing post-launch feedback during PRD v0.9 Go-to-Market. Triggers on requests to set up feedback systems, capture user input, or when user asks "how do we collect feedback?", "feedback loop", "user research", "post-launch feedback", "customer feedback", "NPS", "voice of customer". Outputs CFD- entries specialized for post-launch feedback capture.