prd-v06-environment-setup

Record development environment requirements for the PRD v0.6 architecture phase to align the team and enable AI agent understanding. Triggered by requests to define environment configuration, document toolchains, create dev setup guides, or questions like “what tools are needed,” “environment config,” or “new member setup.” Depends on TECH- (tech stack selection) and ARC- (architecture decisions) entries. Outputs ENV- entries covering development, CI/CD, and infrastructure environments as input for v0.7 execution.

Last repository push
GitHub Stars
179
Forks
12
Issues / PRs
6

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "prd-v06-environment-setup" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-ed091b8f62a155c5211372122dde701b06b1b7ee6a67ecc1adc9d8cd8a633e4a. Verify the upstream source and version against https://github.com/mattgierhart/PRD-driven-context-engineering before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Record development environment requirements for the PRD v0.6 architecture phase to align the team and enable AI agent understanding. Triggered by requests to define environment configuration, document toolchains, create dev setup guides, or questions like “what tools are needed,” “environment config,” or “new member setup.” Depends on TECH- (tech stack selection) and ARC- (architecture decisions) entries. Outputs ENV- entries covering development, CI/CD, and infrastructure environments as input for v0.7 execution.

0 Downloads

Introduction source: third_party · mattgierhart · 0.0.1 Reference

SkillPi interpretation

Tasks
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.
Inputs and outputs
``` 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:
Software, accounts and paid services
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.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: prd-v06-environment-setup
description: 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.
context: fork
allowed-tools:
  - Read
  - Write
  - Edit
  - Glob
  - Grep

Environment Setup

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.

Consumes

This skill requires prior work from v0.5-v0.6:

  • TECH-* technology decisions (from v0.5 Technical Stack Selection) — Choices for frontend/backend/database/CI/CD determine which tools, languages, and package managers developers need
  • ARC-* architecture decisions (from v0.6 Architecture Design) — Architectural patterns (monolith vs microservices, container strategy, deployment topology) inform infrastructure and scripting needs

This skill assumes v0.5 Technical Stack Selection is complete with TECH- entries specifying the tech stack.

Produces

This skill creates/updates:

  • ENV-001: Development Environment — Local setup specification with CLIs (global), packages (per-project), config files, verification steps. Enables consistent development experience across team
  • ENV-002: CI/CD Pipeline (optional) — Automated testing and deployment workflow specifications with required secrets and pipeline stages
  • ENV-003: Production Infrastructure (optional) — Production hosting, environment variables, services, and deployment topology

All ENV- entries are specifications, not confidence-based. They are:

  • Concrete and verifiable (each CLI/package has an install command; each config file has a purpose)
  • Preferring CLIs over MCPs (standard tools work in CI/CD; MCPs don't scale)
  • Per-project, not global (package managers install dependencies in the project, not globally)

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)

Environment Types

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.

Design Principles

1. Prefer CLIs Over MCPs

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.

2. Per-Project Over Global

Rule: Language-specific packages installed per-project, not globally.

Global (OK):

  • Version managers (mise, asdf, nvm)
  • System tools (jq, ripgrep)
  • Platform CLIs (gh, aws-cli)

Per-Project (Required):

  • Linters/formatters (eslint, prettier)
  • Type checkers (typescript)
  • Testing frameworks (jest, pytest)

3. Structured Over Prose

Rule: ENV- specs use structured data (tables, code blocks), not narrative.

Why:

  • AI agents can parse and execute
  • Humans can scan quickly
  • Diff-friendly in version control

4. Verification Required

Rule: Every ENV- spec includes verification commands.

Why:

  • Confirms setup succeeded
  • Debugging aid
  • Onboarding confidence

Setup Process

  1. Pull TECH- decisions — What technologies are we using?
  2. Pull ARC- decisions — What architecture patterns apply?
  3. Inventory tooling needs — What do developers need installed?
  4. Categorize by scope — Global vs per-project
  5. Define configuration files — What configs are needed?
  6. Create verification steps — How to confirm setup works?
  7. Document in ENV- entries — Record in SoT.TECHNICAL_DECISIONS.md

ENV-001 Output Template (Development Environment)

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 Output Template (CI/CD Pipeline)

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 Output Template (Production Infrastructure)

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

Common Tool Categories

Version/Environment Managers

  • mise, asdf, nvm, pyenv, rbenv
  • Purpose: Manage language versions per-project

Code Quality

  • JavaScript/TypeScript: eslint, prettier, biome
  • Python: ruff, black, pylint
  • Go: golangci-lint

Type Checking

  • JavaScript/TypeScript: typescript
  • Python: mypy, pyright

Data Processing

  • jq (JSON), yq (YAML)

API Testing

  • httpie, curl, bruno-cli

Git Workflows

  • gh (GitHub CLI), glab (GitLab CLI)

Anti-Patterns to Avoid

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

Quality Gates

Before proceeding to Build Execution:

  • [ ] ENV-001 documents all development tools
  • [ ] All tools have install commands
  • [ ] All packages are in package manifest
  • [ ] Configuration files are listed with purpose
  • [ ] Standard scripts defined (validate, fix, test)
  • [ ] Verification commands work
  • [ ] CLI preferred over MCP documented

Downstream Connections

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

Detailed References

  • ENV- entry template: See assets/env.md
  • Environment examples: See references/examples.md

Version history

  1. v3.2.0 GitHub ↗
    Original release notes

    ## [3.2.0] — 2026-04-01 ### Added - `.claude/rules/` directory with 6 modular rule files (01-session-protocols through 06-cross-agent-communication) — auto-loaded by Claude Code via `alwaysApply: true` frontmatter - `SoT/SoT.LESSONS_LEARNED.md` — new SoT file with LL-XXX prefix for cross-session behavioral corrections and validated patterns - Staleness protocol in `SoT/SoT.UNIQUE_ID_SYSTEM.md` — <30d current, 30-90d review, >90d verify before use - `MEMORY_ARCHIVE.md` for all 4 agents — stores entries promoted to SoT during Phase E harvest - `.claude/hooks/traceability-gate.sh` — PreToolUse hook (Write|Edit) verifies active EPIC before source code writes - `.claude/hooks/sot-sync-reminder.sh` — PostToolUse hook (Write|Edit) reminds agent to update SoT after code writes - EPIC template: coordinator pattern (multi-agent routing table, synthesis checkpoint, self-contained worker prompts) - EPIC template: memory harvest step in Phase E (agent memory → SoT.LESSONS_LEARNED.md) - EPIC template: session ownership/locking with Active Session field (2-hour staleness threshold) - Squad Status dashboard in README.md (agent activity + EPIC status tables) - Cross-agent communication protocol rule (file-based async via SoT cross-references, EPIC observations, session state blockers) - Git-based memory sync: `subagent-memory-save.sh` auto-stages MEMORY.md changes; commit convention `memory({agent}): {summary}` - `context` and `allowed-tools` frontmatter fields added to all 33 skills - `CLAUDE.local.md` added to `.gitignore` for per-developer overrides - Context loading order documented as intentional cache architecture (stable→volatile for prompt cache efficiency) ### Changed - **Agent renamed**: `werk` → `devlab` across all files (AGENT.md, domain-profile.yaml, CHANGELOG, MIGRATION, all cross-references in horizon/studio/metro AGENT.md files) - Agent MEMORY.md simplified from 5-8 complex tables → 4 sections (Feedback, Patterns, Decisions, Handoff Notes) — prior format was never populated - `subagent-memory-save.sh` upgraded from passive `systemMessage` → active `hookSpecificOutput` with `additionalContext` (matches load hook pattern) - CLAUDE.md slimmed from 114 lines → ~30 lines (pointer to `.claude/rules/`) - `settings.json` expanded from 5 hook events → 7 (added PreToolUse, PostToolUse) - HOOK_CONTRACT.md updated with new hooks inventory, git commit conventions, Python dependency note - `domain-profile.yaml` — added LL prefix, agent registry updated (werk → devlab) ### Breaking - **Agent `werk` removed** — renamed to `devlab`. Repos referencing `werk` in EPIC leads, agent routing, or custom hooks must update to `devlab` - **CLAUDE.md content moved** — rules now in `.claude/rules/*.md`. CLAUDE.md is a pointer only. Repos that grep CLAUDE.md for rule content must update to search `.claude/rules/` - **MEMORY.md format changed** — old tables replaced with 4-section format. Repos with populated MEMORY.md files should migrate content into the new sections - **settings.json schema expanded** — PreToolUse and PostToolUse entries added. Repos using `/localize` must re-sync settings.json

  2. v3.1.0 GitHub ↗
    Original release notes

    ## [3.1.0] — 2026-03-18 ### Added - `prd-v04-visual-prototype-gate` skill — converts SCR- entries into structured prompts for Google Stitch (or equivalent UI generation tool), captures stakeholder feedback routed back to SoT IDs. Sits between Screen Flow Definition and v0.5 Red Team Review. - `prd-v06-environment-setup` registered in domain-profile.yaml, skills-inventory.md, and DEVLAB agent (skill existed on disk but was missing from all registries) ### Changed - `.claude/domain-profile.yaml` — domain skills list updated (24 → 26 entries) - `.claude/skills/skills-inventory.md` — added Visual Prototype Gate and Environment Setup entries (Quick Nav, stage overview tables, full skill specs) - `.claude/agents/studio/AGENT.md` — added `prd-v04-visual-prototype-gate` to Skills I Invoke - `.claude/agents/devlab/AGENT.md` — added `prd-v06-environment-setup` to Skills I Invoke - `.claude/README.md` — updated v0.4 skill count (3 → 4) and v0.6 skill count (2 → 3) - Skill count: 26 → 28 PRD lifecycle skills + 5 methodology skills

  3. v3.0.0 GitHub ↗
    Original release notes

    ## [3.0.0] — 2026-02-12 ### Added - `.claude/VERSION` — single source of truth for template version - `CHANGELOG.md` — structural changes documented per version - `MIGRATION.md` — step-by-step migration guide for derivative repos - `<!-- SECTION: -->` and `<!-- CUSTOMIZABLE: -->` markers in all template files for merge-friendly syncing - `.claude/hooks/HOOK_CONTRACT.md` — universal hook interface specification (language-agnostic) - `.claude/hooks/context-validation.sh` — shell variant of SessionStart hook - `.claude/hooks/context-density-gate.sh` — shell variant of UserPromptSubmit hook - `.claude/hooks/sot-update-trigger.sh` — shell variant of Stop hook - `.claude/domain-profile.yaml` — parameterized ID prefixes, skill taxonomy (core vs domain), agent registry - Dependency manifests in all hook `.md` documentation files - `template_version` frontmatter field in CLAUDE.md, PRD.md, README_template.md, EPIC_TEMPLATE.md, SoT.README.md ### Changed - EPIC template sections: numbered (`## 0. Session State`) → semantic (`## Session State`) - CLAUDE.md: "Section 0" references → "Session State" semantic references - ID Ownership in CLAUDE.md now references `domain-profile.yaml` as canonical registry - `.claude/README.md` updated to reflect actual directory structure (agents, hooks, skills) - Agent files restructured: flat `.claude/agents/DEVLAB.md` → `.claude/agents/devlab/AGENT.md` + `MEMORY.md` ### Breaking - Agent paths changed: `agents/{NAME}.md` → `agents/{name}/AGENT.md` + `agents/{name}/MEMORY.md` - EPIC section headers no longer numbered — scripts referencing "Section 0" must update to "Session State" - See `MIGRATION.md` for complete derivative update checklist

  4. v2.0.0 GitHub ↗
    Original release notes

    ## [2.0.0] — 2026-01-12 ### Added - Complete skill library: 26 PRD lifecycle skills (v0.1–v0.9) + 5 methodology skills (ghm-*) (note: count updated to 28 in v3.1.0) - Skill-per-directory structure with SKILL.md + assets/ + references/ - 3 hooks: context-validation, context-density-gate, sot-update-trigger - Hook .md documentation paired with each script - 4 agent definitions: HORIZON, STUDIO, DEVLAB, METRO - 12 SoT files standardized to ~100-150 lines each - EPIC template with 5-phase execution model - Progressive documentation protocol in CLAUDE.md - README_template.md for derivative repos ### Changed - Standardized SoT files to consistent structure with YAML frontmatter - Methodology renamed to "PRD Led Context Engineering"

  5. v1.0.0 GitHub ↗
    Original release notes

    ## [1.0.0] — 2025-12-22 ### Added - Initial template structure - CLAUDE.md agent operating guide - PRD.md progressive requirements template - SoT directory with ID-based knowledge graph - EPIC template for execution planning - README.md methodology explainer

Current listing version

0.0.1

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Areas to improve

  • 缺少显式 When to Use 章节 Reported severity: Minor

    Skill 主体内容详实,但未设置独立 When to Use 章节说明典型使用场景

    Recommendation: 建议在 skill_body 开头添加 When to Use 章节,列举 3-5 个典型触发场景示例

Highlights

  • 提供完整的 ENV- 条目输出模板(ENV-001/002/003),结构化程度高
  • 明确区分全局 CLI 与项目级依赖,符合现代开发最佳实践
  • 包含质量门控检查清单,确保输出完整性
Trigger Precision85/100

Highlights

  • 触发词覆盖全面且边界清晰,包含中英文常见表达变体
  • description 位置正确且内容完整,无截断或错位
Structure and Standards92/100

Areas to improve

  • frontmatter 可更完整 Reported severity: Minor

    allowed-tools 列表包含 Read/Write/Edit/Glob/Grep,但未说明具体使用方式

    Recommendation: 建议补充 allowed-tools 的使用说明或示例

Highlights

  • Setup Process 七步法逻辑清晰,具备强可操作性
  • 提供反模式对照表(Anti-Patterns),提升指导价值
  • 所有 ENV- 模板均包含 Related IDs 字段,确保可追溯性
Execution Reliability88/100

Highlights

  • 所有工具均提供官方安装源和验证命令
  • 明确 CLI > MCP 优先级原则,保障 CI/CD 兼容性
  • Verification Required 原则强制每个 ENV- 包含验证步骤
Evidence Verifiability (mean of the first four)86/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 63, 123, 320
  • Accounts, secrets or authorization

    Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.

    Mentioned in main document · lines 120
Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • mise.jdx.dev
  • nodejs.org
  • raw.githubusercontent.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

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.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.