Initialize a new workspace configuration for managing multiple related projects. Use when user says "setup workspace", "create workspace", "init workspace", or wants to configure a new multi-repo environment.
Initialize a new workspace configuration for managing multiple related projects/repositories.
--from <url> - Import workspace configuration from a gist or repository URLWhen the user wants to create a new workspace, follow this interactive process:
Before starting, check if GitHub MCP tools are available (e.g., mcp__github__list_repos, mcp__github__search_repositories).
If available:
Example:
I noticed you have GitHub MCP configured. Would you like me to:
1. Fetch your repositories from GitHub to help set up the workspace
2. Enter repository information manually
Ask the user for:
For each project, collect information with clear path display:
Name - Project identifier
Repository URL - Git clone URL
Local path - Where the project lives locally
IMPORTANT: Auto-detect existing repos first!
Before asking where to clone, search for existing local folders that match the repo name:
~/Sites, ~/work, ~/projects, ~/code, ~/dev)find or ls to locate folders matching the repo nameneosophia-amap-api, look for folders named neosophia-amap-apiIf found: Auto-use that path. Don't ask the user.
✓ Found neosophia-amap-api at /Users/patricio/Sites/neosophia-amap-api
If NOT found: Then ask where to clone it.
Where should neosophia-amap-api be cloned?
Suggested: /Users/patricio/Sites/neosophia-amap-api
This saves time when users already have repos cloned locally.
Stack - Technologies used (e.g., "Node, Express, PostgreSQL")
Port - Development server port (if applicable)
After each project, show a summary:
Project added:
Name: api
Repo: git@github.com:acme/api.git
Path: /Users/patricio/Sites/acme/api
Stack: Node, Express
Port: 3000
Add another project? (y/n)
Ask if any projects depend on others. Format:
frontend -> api means frontend calls the apiCollect any relevant documentation URLs:
Ask for common workspace-level commands:
start-all - Start all servicesstop-all - Stop all servicestest-all - Run all testsCreate the workspace directory at ~/.claude/workspaces/<name>/ and generate the WORKSPACE.md file.
Ask if the user wants to clone all repositories now using /workspaces:clone all.
If --from <url> is provided:
If GitHub MCP is available, you can use these tools:
mcp__github__list_repos to show available repositoriesmcp__github__search_repositories to find specific reposIMPORTANT: When showing repos from GitHub, display the actual repository names exactly as they appear in GitHub. Do NOT substitute with generic names like "api", "landing", "web", "admin".
When listing repos, show them with their real names:
Your GitHub repositories:
1. neosophia-amap-api - Backend API for AMAP
2. neosophia-amap-admin - Admin dashboard for AMAP
3. neosophia-amap-landing - Landing page
4. neosophia-experts-dashboard - Experts dashboard
5. neosophia-screen-api - Screen API service
6. arkvault - Vault application
7. arkscan - Block explorer
Select repos to add (comma-separated numbers, e.g., "1,2,4"):
When user selects repos:
neosophia-amap-api, not api)Example auto-detection flow:
Selected: neosophia-amap-api, neosophia-amap-landing, neosophia-amap-admin
Scanning for existing repos...
✓ neosophia-amap-api found at /Users/patricio/Sites/neosophia-amap-api
✓ neosophia-amap-landing found at /Users/patricio/Sites/neosophia-amap-landing
✗ neosophia-amap-admin not found locally
Where should neosophia-amap-admin be cloned?
Suggested: /Users/patricio/Sites/neosophia-amap-admin
After successful initialization:
✓ Workspace 'neosophia' created at ~/.claude/workspaces/neosophia/
Projects configured:
• neosophia-amap-api
Path: /Users/patricio/Sites/neosophia-amap-api (existing)
Port: 3000
• neosophia-amap-landing
Path: /Users/patricio/Sites/neosophia-amap-landing (existing)
Port: 3001
• neosophia-amap-admin
Path: /Users/patricio/Sites/neosophia-amap-admin (to clone)
Port: 3002
Run '/workspaces:clone all' to clone missing repositories.
npx skills add patricio0312rev/workspace-init下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer