Blueprint de workflows agentiques

VérifiéSûr

Blueprint pour structurer la documentation orientee agent avec divulgation progressive et contrats executables.

Spar Skills Guide Bot
DocumentationIntermédiaire
22/07/2026
Claude CodeCodex
#agent-workflows#progressive-disclosure#executable-contracts#doc-scaffolding#skill-routing

Recommandé pour

Synthèse automatique

Cette skill génère une structure de documentation orientée agents (skill d'entrée, workflows, références, runbooks) avec divulgation progressive et contrats exécutables pour n'importe quel dépôt.

Points forts

  • Produit une arborescence minimale et navigable : SKILL.md d'entrée, workflows/<nom>/SKILL.md, reference/ et docs/runbooks/
  • Impose des contrats homogènes (Goal, Scope, Triggers, Inputs, Invariants, Procedure, Outputs, Review gate, References) pour chaque workflow
  • Le routage par commandes est explicite : /<skillName> <cmd> charge uniquement le contrat du workflow visé
  • Évite la duplication en liant vers la source de vérité et maintient la cohérence entre template.json et routing-matrix.md

Limites

  • Se limite à l'échafaudage documentaire : aucune implémentation de fonctionnalités produit
  • Suppose que l'agent sait lire des sous-commandes ou un fichier de routage, ce qui dépend du harnais utilisé
  • Nécessite de choisir et maintenir manuellement les workflows demandés et leurs identifiants exacts
Quand l'utiliser

À utiliser lorsqu'un dépôt existant a besoin d'une documentation structurée et lisible par des agents, avec des workflows reliés à la racine AGENTS.md ou CLAUDE.md.

Quand l'éviter

À éviter si vous cherchez à refactoriser du code applicatif ou si un simple README suffit, car la structure ajoutée serait superflue.

Analyse de sécurité

Sûr
Score qualité84/100

This is a pure documentation-scaffolding blueprint. It produces markdown and JSON manifests and updates a root doc by adding links. There are no shell commands, no curl|sh, no secret handling, no base64 payloads, and no attempts to disable safety controls. The only side effect is file creation/editing, which is benign and expected for a scaffolding skill.

Points d'attention
  • •Writes/scaffolds files and appends links to an existing root instruction doc (AGENTS.md/CLAUDE.md); no destructive or network actions.
Comment cette analyse est faite

Exemples

Set up agentic workflow structure
Create an agentic workflow structure for this repo (slug: my-backend, base branch: develop, stack: NestJS + MikroORM + Graphile Worker). Scaffold the modules, specs and document workflows, and link them from AGENTS.md.
Refactor AGENTS.md into linked skills
Refactor our long AGENTS.md into a progressive-disclosure skill layout: a short root doc plus workflows/ with executable contracts, and keep a routing matrix that maps each command to its workflow folder.
Make docs agent-friendly
Make our documentation agent-friendly: create skills/my-backend/SKILL.md as the router entrypoint with /my-backend <cmd> routing, plus reference/routing-matrix.md and role contracts, without duplicating rules across files.

name: workflow-blueprint description: Blueprint workflow to scaffold agent-oriented documentation with progressive disclosure and executable contracts.

agentic-workflows.blueprint

Goal

Provide a reusable blueprint workflow that scaffolds an "agentic workflows" documentation structure for any codebase, with progressive disclosure and executable contracts (workflows).

Scope

  • Applies to: any repository that wants an agent-oriented documentation system (orchestrator + workflow skills + references + runbooks).
  • Does not cover: implementing product features; this is scaffolding/documentation only.

Triggers

  • "Create agentic workflow structure"
  • "Set up skills folder + workflows"
  • "Make docs agent-friendly"
  • "Refactor AGENTS.md into linked skills"

Inputs

  • projectSlug: short identifier for the repo (e.g. my-backend)
  • baseBranch: default integration branch (e.g. develop, main)
  • techStack: short list (e.g. NestJS + MikroORM + Graphile Worker)
  • existingRootDoc: root instruction file path (AGENTS.md, CLAUDE.md, etc.)
  • workflowsWanted: list of workflow ids to scaffold (e.g. modules, specs, document, plan-to-blueprint)
  • constraints: project hard rules (e.g. "no emojis", "mock external boundaries only")
  • skillName (optional): slash-invocation name for the project entry skill; defaults to projectSlug (lowercase, hyphens only)

Outputs

Creates a minimal, navigable structure:

skills/<projectSlug>/
  SKILL.md
  template.json                     ← Declarative manifest (commands, entry)
  reference/
    routing-matrix.md
    role-contracts.md
    hook-blueprint.md (optional)
  workflows/
    <workflowName>/
      SKILL.md
      template.json (optional)      ← Per-workflow manifest when useful
docs/runbooks/
  agent-role-system.md
  agent-role-hooks.md (optional)
  plan-to-blueprint.md (when workflow included)

And updates the root doc (AGENTS.md or equivalent) to link to the new entrypoints.

This blueprint folder can also carry example workflows (document, review, changelog, linear, plan-to-blueprint) to demonstrate chained execution, plan-to-skill transformation, and MCP integration patterns. Optional decomposition workflows (such as mcp-linear-planner and mcp-linear-sync) can be added when needed.

It can also carry runbook examples under runbooks/ to show operator-facing execution playbooks for those workflows.

Invariants (guardrails)

  • Progressive disclosure: root doc stays short; details live behind links.
  • Executable contracts: every workflow is written as a contract the agent can follow:
    • Goal, Scope, Triggers, Inputs, Invariants, Procedure, Outputs, Review gate, References.
  • No duplication: do not copy/paste long rules across files; link to the source of truth.
  • Consistency: workflow ids and file paths must match exactly across all references.
  • Minimal surface: only add the workflows actually requested.
  • Source of truth: SKILL.md is authoritative; template.json is a complementary declarative layer for agents/tools that expose command interfaces.
  • Command routing: router-only — users invoke /<skillName> <cmd>; the entry skill resolves cmd to workflows/<cmd>/SKILL.md and loads only that contract.
  • Manifest sync: every command in template.json must map to an existing workflow folder and match routing-matrix.md.

Procedure

1) Create the project entry skill

Create skills/<projectSlug>/SKILL.md as the global entrypoint:

  • A short description of what the skill is for.
  • An "orchestrator" section that explains:
    • how to classify a task
    • how to select one workflow
    • how to close (validation gate if applicable)
  • A Command routing section (router-only):
    • invocation pattern: /<skillName> <cmd> (e.g. /my-backend document)
    • map each cmd in workflowsWanted to workflows/<cmd>/SKILL.md
    • if the agent does not parse subcommands, read cmd from the user message and load the mapped workflow contract
    • do not create flat alias skills unless explicitly requested
  • A list of internal workflow helpers:
    • workflows/<name>/SKILL.md links
  • Project constraints and hard rules (short bullets).

Create skills/<projectSlug>/template.json as the declarative manifest:

{
  "name": "<skillName>",
  "version": "1.0.0",
  "entry": "SKILL.md",
  "routing": "router-only",
  "commands": [
    {
      "name": "<workflowName>",
      "description": "Short trigger description",
      "skill": "workflows/<workflowName>/SKILL.md"
    }
  ]
}
  • Include one commands[] entry per item in workflowsWanted.
  • Keep name aligned with skillName (folder may remain projectSlug).

2) Create references (progressive disclosure)

In skills/<projectSlug>/reference/, create:

  • routing-matrix.md: task category -> workflow mapping; include slash form /<skillName> <cmd> alongside intent triggers.
  • role-contracts.md: roles, boundaries, handoffs.
  • Optional hook-blueprint.md: opt-in automation checklist.

Keep each file self-contained and linkable.

3) Scaffold each workflow as an executable contract

For each workflow in workflowsWanted, create:

skills/<projectSlug>/workflows/<workflowName>/SKILL.md with:

  • id: "<projectSlug>.workflow.<workflowName>" (as the first header line)
  • Goal: 1 sentence
  • Scope: applies/does not cover
  • Triggers: file triggers + intent triggers
  • Inputs: baseBranch, diff scope, required config
  • Invariants: the project's hard rules + workflow-specific rules
  • Procedure: deterministic steps (evidence-driven; use git diff when documenting)
  • Outputs: what files/notes/checkpoints must be produced
  • Review gate: checklist with pass/fail criteria
  • References: links back to skills/<projectSlug>/SKILL.md and any deep dives

Optionally, for each workflow, add workflows/<workflowName>/template.json when an external tool needs a standalone command descriptor; keep it minimal (name, entry, parent).

4) Wire everything into the root doc

Update existingRootDoc to include:

  • "Start here": link to skills/<projectSlug>/SKILL.md
  • Under "Skills" (or similar), list:
    • the project skill
    • internal workflow skills (links to the new workflow SKILL.md files)
    • runbook links

Do not duplicate workflow contents in the root doc.

5) Optional: deprecate legacy skill locations (wrapper)

If there are existing skills in other directories:

  • Keep the file
  • Add a top banner:
    • "Moved: canonical workflow is at skills/<projectSlug>/workflows/..."
  • Leave the rest as a deep dive reference

6) Consistency verification (required)

Before declaring the scaffold done:

  • Verify every link path exists.
  • Verify workflow ids are consistent:
    • projectSlug.workflow.* matches the file it lives in.
  • Verify root doc points only to canonical locations.
  • Verify template.json commands[].name values exist under workflows/ and appear in Command routing + routing-matrix.md.
  • Verify router-only behavior is documented in the project entry SKILL.md (no undocumented flat aliases).

Review gate (must pass)

  • Root doc remains minimal and only links out.
  • Each workflow has the full contract sections (Goal..References).
  • Constraints are explicit and testable (no vague "best practices").
  • No duplication between root, project skill, and workflows.
  • All links resolve.
  • template.json is valid JSON and consistent with workflowsWanted.
  • Command routing resolves every listed subcommand to exactly one workflow contract.

Notes

  • This blueprint is intentionally stack-agnostic. For stack-specific rules (logging, ORM patterns, testing rules), keep them in the project skill and link them from workflows.

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/agentic-workflows-blueprint-mrwakf6s/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/agentic-workflows-blueprint-mrwakf6s' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/agentic-workflows-blueprint-mrwakf6s/download' --output '.skill-downloads/agentic-workflows-blueprint-mrwakf6s/SKILL.md.part' && mv '.skill-downloads/agentic-workflows-blueprint-mrwakf6s/SKILL.md.part' '.skill-downloads/agentic-workflows-blueprint-mrwakf6s/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/agentic-workflows-blueprint-mrwakf6s/SKILL.md' && test -s '.skill-downloads/agentic-workflows-blueprint-mrwakf6s/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/workflow-blueprint' && cp -R '.skill-downloads/agentic-workflows-blueprint-mrwakf6s' '.claude/skills/workflow-blueprint'

Codex
test -f '.skill-downloads/agentic-workflows-blueprint-mrwakf6s/SKILL.md' && test -s '.skill-downloads/agentic-workflows-blueprint-mrwakf6s/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/workflow-blueprint' && cp -R '.skill-downloads/agentic-workflows-blueprint-mrwakf6s' '.agents/skills/workflow-blueprint'

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/agentic-workflows-blueprint-mrwakf6s'

openskills read 'agentic-workflows-blueprint-mrwakf6s'

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/agentic-workflows-blueprint-mrwakf6s/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