AgentSkillsCN

workspace-setup

初始化项目的开发环境。适用于搭建新项目、为开发者进行入职培训,或配置依赖项时使用。

SKILL.md
--- frontmatter
name: workspace-setup
description: Initialize development environment for a project. Use when setting up a new project, onboarding a developer, or configuring dependencies.

Workspace Setup

Set up a consistent development environment.

Common Setups

Node.js

bash
npm install
npm run dev

Python

bash
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Rust

bash
cargo build
cargo test

Docker

bash
docker-compose up -d

Checklist

  • Dependencies installed
  • .env configured (from .env.example)
  • Dev server starts
  • Tests pass

Environment Template

bash
# .env.example
DATABASE_URL=postgresql://user:pass@localhost:5432/db
API_KEY=your-key
DEBUG=true

Tips

  • Document setup in README
  • Use .env.example as template
  • Record issues in wiki/experience/