Instanciation de modèle Bootstrapp

VérifiéSûr

Instancie un projet à partir d'un bundle de template Bootstrapp. Permet de lire la spécification du template, de résoudre les paramètres (valeurs par défaut ou saisies utilisateur) et d'exécuter le script de génération. Utile pour initialiser rapidement un projet structuré (Xcode, etc.) en suivant un modèle prédéfini.

Spar Skills Guide Bot
DeveloppementIntermédiaire
7002/06/2026
Claude Code
#bootstrapp#template#project-initialization#automation

Recommandé pour

Notre avis

Instancie un projet à partir d'un modèle Bootstrapp en lisant une spécification, en résolvant les paramètres et en exécutant un script Python.

Points forts

  • Automatise la génération de projets et réduit la configuration manuelle.
  • Gère les valeurs par défaut des paramètres et ignore automatiquement les paramètres dépendants.
  • Fournit une sortie détaillée et indique le chemin du projet généré.

Limites

  • Nécessite une spécification de modèle Bootstrapp avec un fichier `Bootstrapp.json`.
  • Tous les paramètres doivent avoir une valeur par défaut ou être fournis par l'utilisateur, sinon le processus s'arrête.
  • Fonctionne uniquement dans les environnements disposant de Python 3 et du script `bootstrapp.py`.
Quand l'utiliser

Lorsque vous devez rapidement créer un projet à partir d'un modèle structuré avec des options configurables et une intervention manuelle minimale.

Quand l'éviter

Lorsque le modèle n'a pas de valeurs par défaut pour les paramètres et que vous ne pouvez pas les fournir interactivement, ou lorsqu'une simple copie de fichiers suffit.

Analyse de sécurité

Sûr
Score qualité88/100

The skill runs a local Python script with user-supplied parameters; no network access, no external downloads, no destructive commands. Bash usage is limited to executing that script safely.

Aucun point d'attention détecté

Exemples

Instantiate a default template
Use the Bootstrapp template at /path/to/template to create a new project.
Instantiate with custom parameter
Use the Bootstrapp template at /path/to/template and set LICENSE_TYPE=MIT.
Instantiate and open in Finder
Instantiate the Bootstrapp template at /path/to/template, then open the output directory.

name: bootstrapp description: Instantiate a project from a Bootstrapp template bundle user-invocable: true allowed-tools: Bash, Read argument-hint: [template-path]

Bootstrapp Template Instantiation

The user wants to instantiate a template. The template path is: $ARGUMENTS

Instructions

Step 1: Read the template spec

Read Bootstrapp.json inside the template path. Also read Bootstrapp.md if it exists and show its contents to the user.

Step 2: Resolve parameters using defaults

Read the parameters array from the spec. For each parameter, use its default value. Skip parameters whose dependsOn references a parameter that evaluates to false.

If ANY parameter does NOT have a default value, ABORT. Do not run the script. Instead, list ALL parameters in a table showing:

  • Parameter ID
  • Type (String, Bool, Option)
  • Default value or MISSING

Tell the user which parameters are missing defaults and ask them to provide values.

Step 3: Run the script

Only run this if ALL parameters have values (from defaults or user-provided).

The script is at scripts/bootstrapp.py relative to this skill's directory.

python3 scripts/bootstrapp.py "<template-path>" \
  --param KEY1=VALUE1 --param KEY2=VALUE2 \
  --exclude-package NAME \
  --verbose
  • Include ALL resolved parameters.
  • Quote values with spaces: --param "COPYRIGHT_HOLDER=Apparata AB"
  • For Option params, pass the option string: --param LICENSE_TYPE=MIT
  • For Bool params, pass true or false: --param GIT_INIT=false
  • Include all packages by default (no --exclude-package unless the user says otherwise).

Step 4: Report result

The script prints the output path as its last line to stdout. Tell the user the full path. For Xcode projects, mention they can open the .xcodeproj.

Then ask if they want to open the output directory in Finder (open "<path>").

Skills similaires