| name | workspace-setup |
| description | Run setup scripts for workspace projects including dependency installation, migrations, and environment configuration. Use when user says "setup projects", "install dependencies", or "run setup". |
Skill: Workspace Setup
Description
Run setup scripts for one or all projects in the workspace, including dependency installation, environment configuration, and database migrations.
Arguments
[project] - Name of a specific project to set up
all - Set up all projects (default)
Instructions
When the user wants to set up projects:
Step 1: Detect Workspace
Identify the current workspace and load the configuration.
Step 2: Parse Setup Scripts
Read the ## Setup Scripts section from WORKSPACE.md:
## Setup Scripts
api: npm install && cp .env.example .env && npm run db:migrate
admin: npm install && cp .env.example .env
homepage: npm install
mobile: npm install && cd ios && pod install
Step 3: Run Setup for Each Project
For each project (or the specified one):
- Check if project is cloned - Skip if not
- Run setup script in the project directory
- Report progress
Output Format
š§ Setting up workspace projects...
Setting up api...
ā npm install
Installing dependencies... done
ā cp .env.example .env
ā Environment file created
ā npm run db:migrate
Running migrations... done
ā api setup complete
Setting up admin...
ā npm install
Installing dependencies... done
ā admin setup complete
Summary:
⢠Set up: api, admin
⢠Skipped: homepage (no setup script)
⢠Failed: 0
Post-Setup
After successful setup, suggest:
Run '/workspaces:start all' to start the services.