Ajouter un package fournisseur Pulumi

VérifiéPrudence

Workflow guidé en 7 étapes pour ajouter un package fournisseur au registre Pulumi : création des métadonnées YAML, validation et mise à jour de la liste communautaire.

Spar Skills Guide Bot
DeveloppementDébutant
13/09/2026
Claude Code
#pulumi#registry#provider-packages#metadata#yaml

Recommandé pour

Synthèse automatique

Ce skill guide pas à pas l'ajout d'un nouveau package de provider au registre Pulumi, de la collecte des informations jusqu'à la génération du fichier YAML de métadonnées.

Points forts

  • Workflow strict en 7 étapes séquentielles avec compteur de progression affiché avant chaque étape
  • Validation réelle du dépôt GitHub via `gh api` et du fichier de schéma via WebFetch avant d'écrire le YAML
  • Distinction explicite entre package communautaire et provider first-party, avec fichiers de référence dédiés
  • Récupération automatique du dernier tag de release pour renseigner la version du package

Limites

  • Dépend fortement de l'outillage Claude Code (`AskUserQuestion`, WebFetch, `gh`) et de dépôts hébergés sur GitHub
  • Le contenu des fichiers de référence (template YAML, checklist first-party) est externe et non inclus dans le SKILL.md fourni
  • Ne produit que les métadonnées du registre : aucun code de provider, aucune publication effective
Quand l'utiliser

À utiliser lorsqu'on veut référencer un nouveau provider communautaire ou officiel dans le registre Pulumi sans ressaisir manuellement la structure YAML.

Quand l'éviter

À éviter si le provider n'est pas hébergé sur GitHub, si le CLI `gh` n'est pas disponible, ou s'il s'agit de modifier un package déjà présent dans le registre.

Analyse de sécurité

Prudence
Score qualité82/100

The skill is a legitimate registry workflow and does not instruct destructive, exfiltrating, or obfuscated actions. It uses bash/gh and WebFetch for verification and writes local package metadata, which is powerful but appropriate. The main concern is that user-supplied values are interpolated into shell commands and URLs without explicit validation, so it is best treated as caution rather than safe.

Points d'attention
  • •Interpolates user-provided package/repository values into shell commands (e.g., gh api repos/{owner}/{repo}) without explicit sanitization or validation of shell metacharacters.
  • •Writes and modifies repository files, including themes/default/data/registry/packages/{name}.yaml and community-packages/package-list.json, though user confirmation is required before file creation.
Comment cette analyse est faite

Exemples

Add a community provider
/new-package — I'd like to add the pulumiverse Datadog provider to the Pulumi Registry as a community package. The repo is https://github.com/pulumiverse/pulumi-datadog.
Add a first-party provider
/new-package — Add a new first-party Pulumi provider named `acme`, repo https://github.com/pulumi/pulumi-acme, schema at provider/cmd/pulumi-resource-acme/schema.json.
Validate before generating YAML
Use the new-package skill to check that https://github.com/myorg/pulumi-widgets is public and that its schema.json is reachable, then draft the registry YAML for review.

description: Guided workflow to add a new provider package to the Pulumi Registry user-invocable: true

New Package

Use this when: You want to add a new provider package to the Pulumi Registry, either as a community package or a first-party Pulumi provider.


Usage

/new-package

Walks through a guided process to create the package YAML metadata, validate the provider, and optionally add it to the community package list.


Process

CRITICAL SUCCESS CRITERIA: Complete all 7 steps in sequence. Every step is mandatory. DO NOT SKIP ANY STEP OR END THE WORKFLOW PREMATURELY!

Step Counter: Display progress before each step as: [Step X/7] followed by the step heading.

References: This skill uses reference files for templates and validation:

  • new-package:references:yaml-template - Canonical YAML structure
  • new-package:references:package-list-format - Community package list entry format
  • new-package:references:first-party-checklist - First-party provider setup checklist

[Step 1/7] Determine Package Type

Use AskUserQuestion to ask:

Question: "What type of package are you adding?"

Options:

  1. Community package - Third-party provider published by the community (e.g., pulumiverse)
  2. First-party Pulumi provider - Official Pulumi provider (published by Pulumi)

Store the selection for later steps.


[Step 2/7] Gather Package Information

Use AskUserQuestion to collect the following (ask in sequence, one at a time):

  1. Package name — The short name for the provider (lowercase, hyphens allowed). Example: datadog, cloudflare, my-provider
  2. Repository URL — The GitHub repository URL. Example: https://github.com/pulumiverse/pulumi-example
  3. Display title — The human-readable title. Example: Datadog, Cloudflare, My Provider
  4. Description — Brief description of what the provider does (1-2 sentences)
  5. Publisher — The publisher name. Example: Pulumi, pulumiverse, MyOrg
  6. Category — One of: Cloud, Database, Infrastructure, Monitoring, Network, Utility, Version Control System
  7. Schema file path — Path to the schema JSON file within the repo. Example: provider/cmd/pulumi-resource-example/schema.json

For community packages, also ask: 8. Is this a component provider? (yes/no)

For first-party packages, default component: false (can be overridden).


[Step 3/7] Validate Repository

Verify the repository exists and is accessible:

gh api repos/{owner}/{repo} --jq '.full_name'
  • If the repo exists, display confirmation with repo details (description, stars, language)
  • If the repo doesn't exist or is inaccessible, report error and ask user to verify the URL
  • Check if the repo is public (required for community packages)

[Step 4/7] Validate Schema File

Construct the schema file URL and verify it's reachable:

For GitHub repos, construct the raw URL:

https://raw.githubusercontent.com/{owner}/{repo}/{default-branch}/{schema-file-path}

Use WebFetch to check if the URL returns valid content:

  • If reachable, display confirmation
  • If not reachable, warn the user and ask if they want to continue with a different URL or path
  • Try common default branches: main, master

[Step 5/7] Create Package YAML

Generate the YAML file using the template from new-package:references:yaml-template.

Actions:

  1. Determine the latest version by checking the repo's releases:

    gh api repos/{owner}/{repo}/releases/latest --jq '.tag_name' 2>/dev/null || echo "v0.0.1"
    
  2. Generate the YAML content with all gathered information

  3. Display the complete YAML for review:

    Package YAML Preview:
    ─────────────────────────────────────────
    [YAML content]
    ─────────────────────────────────────────
    
    File: themes/default/data/registry/packages/{name}.yaml
    
  4. Use AskUserQuestion to confirm:

    • Create file (Recommended) - Write the YAML file
    • Edit values - Modify specific fields
    • Cancel - Exit without creating
  5. Write the file to themes/default/data/registry/packages/{name}.yaml


[Step 6/7] Update Package List or Note First-Party Setup

Community Package Path

Add an entry to community-packages/package-list.json:

  1. Read the current file
  2. Add the new entry in the correct alphabetical position within the include array
  3. Display the change for confirmation
  4. Write the updated file

See new-package:references:package-list-format for the entry format.

First-Party Package Path

Skip package-list.json modification. Instead, display the first-party setup checklist:

See new-package:references:first-party-checklist for the complete checklist.

Key message: "First-party providers use repository_dispatch events. The provider repository needs to be configured to send resource-provider dispatch events to pulumi/registry via the publish-provider-update.yml workflow."


[Step 7/7] Validate and Next Steps

  1. Run /validate-package {name} to verify the new package

  2. Display completion summary:

    New package added successfully!
    
    Package: {name}
    Type: {community|first-party}
    File: themes/default/data/registry/packages/{name}.yaml
    {If community: Added to community-packages/package-list.json}
    
    Next steps:
    - Review the generated YAML file
    - Run /shipit to commit and create a PR
    {If first-party: - Configure repository_dispatch in the provider repo}
    
  3. Offer to run /shipit to commit and create a PR


Critical Workflow Rules

  1. Progress Display: Always display step number "[Step X/7]" before each heading
  2. Sequential Execution: Never skip ahead - complete each step before moving to next
  3. User Approval: Get explicit approval before writing files (Step 5)
  4. Validation: Always run validate-package at the end
  5. Error Handling: If a step fails, don't proceed - offer retry or cancel

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/add-pulumi-provider-package-mtzb82t2/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/add-pulumi-provider-package-mtzb82t2' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/add-pulumi-provider-package-mtzb82t2/download' --output '.skill-downloads/add-pulumi-provider-package-mtzb82t2/SKILL.md.part' && mv '.skill-downloads/add-pulumi-provider-package-mtzb82t2/SKILL.md.part' '.skill-downloads/add-pulumi-provider-package-mtzb82t2/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

Le fichier ne fournit pas un en-tête name/description exploitable pour cette procédure native. Le téléchargement reste disponible pour lecture ; utilisez le mode manuel ci-dessous.

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/add-pulumi-provider-package-mtzb82t2/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