Initialisation d'espace de travail

VérifiéPrudence

Initialise une configuration d'espace de travail pour gérer plusieurs projets connexes. Elle collecte interactivement les détails des projets, détecte automatiquement les dépôts locaux existants et s'intègre optionnellement avec GitHub MCP pour récupérer les dépôts automatiquement. Utile lorsque l'utilisateur souhaite créer ou importer un espace de travail pour un environnement multi-dépôts.

Spar Skills Guide Bot
DeveloppementIntermédiaire
02/06/2026
Claude Code
#workspace-init#multi-repo#project-setup#configuration

Recommandé pour

Synthèse automatique

Initialise un nouvel espace de travail pour gérer plusieurs projets liés, avec des options de configuration interactives.

Points forts

  • Détection automatique des dépôts locaux existants pour éviter les saisies inutiles
  • Intégration GitHub MCP pour récupérer et sélectionner les dépôts
  • Génération d'un fichier WORKSPACE.md structuré

Limites

  • Nécessite une interaction utilisateur pour chaque projet
  • Format de fichier spécifique à l'outil
  • Peut ne pas gérer tous les systèmes de contrôle de version
Quand l'utiliser

Quand vous devez configurer un environnement multi-repo pour plusieurs projets liés.

Quand l'éviter

Pour un projet unique ou si l'espace de travail existe déjà.

Analyse de sécurité

Prudence
Score qualité90/100

The skill instructs using bash commands for local directory discovery and fetching from remote URLs, which carries a minimal risk of unintended data exposure or fetching malicious content, but no destructive or exfiltrating actions are present. Overall, it is a legitimate workspace initialization tool.

Points d'attention
  • •Uses shell commands (`find`, `ls`) to search for local directories, which could access system information.
  • •Fetches content from an external URL (`--from` option), which could lead to fetching untrusted data or be used for SSRF if URL is controlled by an attacker.
Comment cette analyse est faite

Exemples

Create new workspace
Setup workspace for my company projects
Import workspace from URL
Create a workspace from https://gist.github.com/user/workspace-config
Use GitHub repos
Initialize workspace with my GitHub repositories

name: workspace-init description: 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.

Skill: Workspace Init

Description

Initialize a new workspace configuration for managing multiple related projects/repositories.

Arguments

  • --from <url> - Import workspace configuration from a gist or repository URL

Instructions

When the user wants to create a new workspace, follow this interactive process:

Step 0: Check for GitHub MCP Integration

Before starting, check if GitHub MCP tools are available (e.g., mcp__github__list_repos, mcp__github__search_repositories).

If available:

  • Offer to fetch the user's repositories automatically
  • Show a list of their repos to select from
  • This saves time entering repo URLs manually

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

Step 1: Gather Basic Information

Ask the user for:

  1. Workspace name - A short identifier (e.g., "acme", "mycompany")
  2. Company/Project name - Full display name (e.g., "Acme Corp")
  3. Description - Brief description of the workspace

Step 2: Add Projects

For each project, collect information with clear path display:

  1. Name - Project identifier

    • If using GitHub MCP: default to the actual repo name (e.g., "neosophia-amap-api")
    • User can optionally provide a shorter alias
    • Do NOT substitute with generic names like "api" or "admin"
  2. Repository URL - Git clone URL

    • If GitHub MCP is available, offer to select from their repos
    • Otherwise ask for the URL directly
  3. 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:

    • Check current directory and common locations (~/Sites, ~/work, ~/projects, ~/code, ~/dev)
    • Use find or ls to locate folders matching the repo name
    • If repo is neosophia-amap-api, look for folders named neosophia-amap-api

    If 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.

  4. Stack - Technologies used (e.g., "Node, Express, PostgreSQL")

  5. 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)

Step 3: Define Relationships (Optional)

Ask if any projects depend on others. Format:

  • frontend -> api means frontend calls the api

Step 4: Add Documentation Links (Optional)

Collect any relevant documentation URLs:

  • API docs
  • Design files (Figma, etc.)
  • Wiki/Notion
  • Slack channels

Step 5: Define Commands (Optional)

Ask for common workspace-level commands:

  • start-all - Start all services
  • stop-all - Stop all services
  • test-all - Run all tests

Step 6: Generate Configuration

Create the workspace directory at ~/.claude/workspaces/<name>/ and generate the WORKSPACE.md file.

Step 7: Offer to Clone

Ask if the user wants to clone all repositories now using /workspaces:clone all.

Import from URL

If --from <url> is provided:

  1. Fetch the content from the URL
  2. Parse it as WORKSPACE.md format
  3. Create the workspace with that configuration

GitHub MCP Integration Details

If GitHub MCP is available, you can use these tools:

  1. List user's repos: Use mcp__github__list_repos to show available repositories
  2. Search repos: Use mcp__github__search_repositories to find specific repos
  3. Get repo details: Fetch clone URLs, descriptions, and default branches

IMPORTANT: 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:

  • Project name defaults to the actual repo name (e.g., neosophia-amap-api, not api)
  • User can optionally provide a shorter alias
  • Clone URL comes directly from the GitHub repo data
  • Auto-detect local paths: Search for existing folders matching each repo name before asking

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

Example Output

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.

Du fichier au premier essai

Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.

Consulter la source et ses fichiers annexes

Ce téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.

1. Télécharger le fichier

Télécharger SKILL.md

Depuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/workspace-initialization-mma3js4v/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.

Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.

mkdir -p '.skill-downloads/workspace-initialization-mma3js4v' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/workspace-initialization-mma3js4v/download' --output '.skill-downloads/workspace-initialization-mma3js4v/SKILL.md.part' && mv '.skill-downloads/workspace-initialization-mma3js4v/SKILL.md.part' '.skill-downloads/workspace-initialization-mma3js4v/SKILL.md'

2. Vérifier les prérequis

Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.

Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.

Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.

3. Charger la skill

Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.

Claude Code
test -f '.skill-downloads/workspace-initialization-mma3js4v/SKILL.md' && test -s '.skill-downloads/workspace-initialization-mma3js4v/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/workspace-init' && cp -R '.skill-downloads/workspace-initialization-mma3js4v' '.claude/skills/workspace-init'

OpenSkills

OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.

Installation officielle d’OpenSkills
openskills install './.skill-downloads/workspace-initialization-mma3js4v'

openskills read 'workspace-initialization-mma3js4v'

La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.

Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.

openskills sync

Mode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.

4. Faire un premier essai

Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :

Lis .skill-downloads/workspace-initialization-mma3js4v/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.

Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.

Skills similaires