Fast-forward via OpenSpec

VérifiéSûr

Créez rapidement tous les artefacts nécessaires à l'implémentation en une seule commande, sans passer par chaque étape individuellement.

Spar Skills Guide Bot
DeveloppementIntermédiaire
22/07/2026
Claude Code
#openspec#spec-driven-development#artifact-generation#cli-workflow#planning

Recommandé pour

Synthèse automatique

Automatise la création en une seule passe de tous les artefacts OpenSpec nécessaires avant l'implémentation, en s'appuyant sur la CLI openspec pour déterminer l'ordre et le contenu de chaque fichier.

Points forts

  • Enchaîne les artefacts dans l'ordre des dépendances à partir de `openspec status --json` au lieu de faire saisir chaque étape à l'utilisateur
  • Utilise les instructions, règles et templates fournis par `openspec instructions` pour chaque type d'artefact, ce qui garantit la conformité au schéma
  • Suit la progression avec TodoWrite et s'arrête précisément quand tous les artefacts de `applyRequires` sont terminés
  • Prévoit une clarification par AskUserQuestion lorsque la demande ou un artefact manque de contexte

Limites

  • Suppose que la CLI openspec est installée et que le dépôt est déjà initialisé avec un répertoire `openspec/changes/`
  • Repose sur des outils spécifiques à Claude Code (AskUserQuestion, TodoWrite) et n'est donc pas portable tel quel
  • Ne produit que les artefacts de planification : aucune ligne de code d'implémentation n'est écrite
Quand l'utiliser

À utiliser lorsqu'un changement est déjà identifié et que vous voulez générer d'un coup proposition, spec, design et tâches pour démarrer l'implémentation sans étape par étape.

Quand l'éviter

À éviter si vous préférez relire et valider chaque artefact individuellement, ou si la CLI openspec n'est pas disponible dans l'environnement.

Analyse de sécurité

Sûr
Score qualité78/100

The skill only orchestrates the OpenSpec CLI (`openspec new/status/instructions`) plus agent-internal tools (AskUserQuestion, TodoWrite). All invoked commands are documented, non-destructive, and scoped to creating artifacts under `openspec/changes/<name>/`; there is no secret handling, no network exfiltration, no obfuscation, and no safety-disabling content. Bash usage is legitimate and limited, so risk is minimal.

Aucun point d'attention détecté

Comment cette analyse est faite

Exemples

Fast-forward a named change
Fast-forward the change `add-user-auth` — create all the OpenSpec artifacts I need so I can start implementing.
Generate everything from a description
I want to add SSO login with Google to our app. Run the full OpenSpec fast-forward and generate every artifact needed to start building.
Resume an incomplete change
Take the change `refactor-billing-service` and create whatever artifacts are still missing until it's apply-ready.

name: openspec-ff-change description: Fast-forward through OpenSpec artifact creation. Use when the user wants to quickly create all artifacts needed for implementation without stepping through each one individually. license: MIT compatibility: Requires openspec CLI. metadata: author: openspec version: "1.0" generatedBy: "1.3.1"

Fast-forward through artifact creation - generate everything needed to start implementation in one go.

Input: The user's request should include a change name (kebab-case) OR a description of what they want to build.

Steps

  1. If no clear input provided, ask what they want to build

    Use the AskUserQuestion tool (open-ended, no preset options) to ask:

    "What change do you want to work on? Describe what you want to build or fix."

    From their description, derive a kebab-case name (e.g., "add user authentication" → add-user-auth).

    IMPORTANT: Do NOT proceed without understanding what the user wants to build.

    If the request uses overloaded repo terms or unclear planning language, apply grill-with-docs before creating artifacts so proposal/spec/design/task wording matches CONTEXT.md and real codebase terminology.

  2. Create the change directory

    openspec new change "<name>"
    

    This creates a scaffolded change at openspec/changes/<name>/.

  3. Get the artifact build order

    openspec status --change "<name>" --json
    

    Parse the JSON to get:

    • applyRequires: array of artifact IDs needed before implementation (e.g., ["tasks"])
    • artifacts: list of all artifacts with their status and dependencies
  4. Create artifacts in sequence until apply-ready

    Use the TodoWrite tool to track progress through the artifacts.

    Loop through artifacts in dependency order (artifacts with no pending dependencies first):

    a. For each artifact that is ready (dependencies satisfied):

    • Get instructions:
      openspec instructions <artifact-id> --change "<name>" --json
      
    • The instructions JSON includes:
      • context: Project background (constraints for you - do NOT include in output)
      • rules: Artifact-specific rules (constraints for you - do NOT include in output)
      • template: The structure to use for your output file
      • instruction: Schema-specific guidance for this artifact type
      • outputPath: Where to write the artifact
      • dependencies: Completed artifacts to read for context
    • Read any completed dependency files for context
    • Create the artifact file using template as the structure
    • Apply context and rules as constraints - but do NOT copy them into the file
    • Show brief progress: "✓ Created <artifact-id>"

    b. Continue until all applyRequires artifacts are complete

    • After creating each artifact, re-run openspec status --change "<name>" --json
    • Check if every artifact ID in applyRequires has status: "done" in the artifacts array
    • Stop when all applyRequires artifacts are done

    c. If an artifact requires user input (unclear context):

    • Use AskUserQuestion tool to clarify
    • Then continue with creation
  5. Show final status

    openspec status --change "<name>"
    

Output

After completing all artifacts, summarize:

  • Change name and location
  • List of artifacts created with brief descriptions
  • What's ready: "All artifacts created! Ready for implementation."
  • Prompt: "Run /opsx:apply or ask me to implement to start working on the tasks."

Artifact Creation Guidelines

  • Follow the instruction field from openspec instructions for each artifact type
  • The schema defines what each artifact should contain - follow it
  • Read dependency artifacts for context before creating new ones
  • Use template as the structure for your output file - fill in its sections
  • IMPORTANT: context and rules are constraints for YOU, not content for the file
    • Do NOT copy <context>, <rules>, <project_context> blocks into the artifact
    • These guide what you write, but should never appear in the output

Guardrails

  • Create ALL artifacts needed for implementation (as defined by schema's apply.requires)
  • Always read dependency artifacts before creating a new one
  • If context is critically unclear, ask the user - but prefer making reasonable decisions to keep momentum
  • If a change with that name already exists, suggest continuing that change instead
  • Verify each artifact file exists after writing before proceeding to next

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/openspec-fast-forward-changes-mrwak9a4/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/openspec-fast-forward-changes-mrwak9a4' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/openspec-fast-forward-changes-mrwak9a4/download' --output '.skill-downloads/openspec-fast-forward-changes-mrwak9a4/SKILL.md.part' && mv '.skill-downloads/openspec-fast-forward-changes-mrwak9a4/SKILL.md.part' '.skill-downloads/openspec-fast-forward-changes-mrwak9a4/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.

Environnement déclaré par l’auteur : Requires openspec CLI.

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/openspec-fast-forward-changes-mrwak9a4/SKILL.md' && test -s '.skill-downloads/openspec-fast-forward-changes-mrwak9a4/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/openspec-ff-change' && cp -R '.skill-downloads/openspec-fast-forward-changes-mrwak9a4' '.claude/skills/openspec-ff-change'

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/openspec-fast-forward-changes-mrwak9a4'

openskills read 'openspec-fast-forward-changes-mrwak9a4'

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/openspec-fast-forward-changes-mrwak9a4/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