Exécuter un plan de travail

VérifiéPrudence

Exécute un plan de travail en effectuant les modifications, en validant et en commitant. Suit les instructions détaillées et gère les retours.

Spar Skills Guide Bot
DeveloppementAvancé
24/07/2026
Claude Code
#plan-execution#git-commit#ci-validation#autonomous-agent#code-changes

Recommandé pour

Synthèse automatique

Exécute un plan de travail déjà rédigé dans un dépôt cible : applique les modifications étape par étape, valide avec `make ci` et commit chaque étape.

Points forts

  • Reprend d'abord `o/do/feedback.md` (retours de revue ou notes d'une tentative précédente expirée) avant de continuer le plan
  • Commits granulaires par étape avec staging explicite des fichiers modifiés, et interdiction des commandes git destructrices
  • S'appuie sur `AGENTS.md` du dépôt pour les conventions et les cibles de build, et vérifie `git status` avant chaque staging
  • Relit la sortie CI initiale (`o/build/log.txt` et son code de sortie) avant de modifier quoi que ce soit

Limites

  • Suppose une arborescence d'orchestration précise (`o/repo/`, `o/plan/plan.md`, `o/do/`) absente d'un checkout classique
  • Ne conçoit ni ne planifie : sans plan préexistant, le skill n'a rien à exécuter
  • Le timeout CI de 300 s et les cibles `make` supposées peuvent ne pas convenir à tous les dépôts
Quand l'utiliser

À utiliser lorsqu'un plan a déjà été produit et qu'il faut le transformer en code commité et validé dans le bac à sable.

Quand l'éviter

À ne pas utiliser pour explorer un problème ou concevoir une solution : cela relève de la phase de planification, pas de l'exécution.

Analyse de sécurité

Prudence
Score qualité85/100

This is a legitimate coding-agent workflow and it explicitly forbids destructive git commands. However, it executes repo build scripts and trusts repo-provided instructions, so it involves meaningful execution risk even though there is no exfiltration, obfuscation, or clearly malicious behavior.

Points d'attention
  • •Runs repository-controlled build/test/lint targets such as `make ci`, which can execute arbitrary code from the target repo.
  • •Follows repository-provided instructions in `AGENTS.md`, the plan, feedback, and work-item JSON, creating a prompt-injection surface if those inputs are untrusted.
  • •Performs filesystem edits and git commits in the sandbox; legitimate for the task but still a powerful operation.
Comment cette analyse est faite

Exemples

Implement a planned feature
Execute the work plan in o/plan/plan.md against o/repo/. Work through each step, commit per step with descriptive messages, then run make ci and fix any failures.
Address PR review feedback
The work item is a "pr" type: read o/do/feedback.md first, fix the review comments listed there, then continue with any remaining plan steps and re-run make ci.
Resume a timed-out attempt
A previous do attempt timed out. Read the timeout notes and uncommitted changes recorded in o/do/feedback.md, resolve those issues first, then finish the remaining plan steps and amend the commits.

name: do description: Execute a work plan. Make changes, run validation, commit.

Do

You are executing a work item. Follow the plan.

Environment

  • The target repository is at o/repo/. Make all changes there.
  • The feature branch is already checked out.
  • The work item JSON follows this prompt after ---.
  • If type is "pr", you are addressing review feedback on an existing PR.
  • If type is "issue", you are implementing new work.
  • Build dependencies are pre-fetched under o/repo/o/. You can run make ci (or individual targets like make test, make check-types, make lint) inside the sandbox. Read o/build/log.txt for the initial CI output and o/build/log.txt.exit for the exit code.

Setup

Read o/repo/AGENTS.md if it exists. It contains repo-specific context, conventions, and build instructions for the target repository. Follow its guidance.

Read o/plan/plan.md for the full plan.

Read o/do/feedback.md — if non-empty, it contains notes from a previous attempt. This may be review feedback from a check phase, or timeout notes from a timed-out do attempt (with errors encountered, key observations, and uncommitted changes). Address those issues first, then continue with any remaining plan steps.

Instructions

  1. Read the plan and every file you intend to modify before editing.
  2. If feedback.md is non-empty, fix those issues first.
  3. Maintain a running list of files you modify.
  4. For each remaining step in the plan: a. Make the changes for that step. b. Before staging, run git -C o/repo status and verify only your files are affected. c. Stage the specific files changed (not git add -A). d. Commit with a descriptive message for that step.
  5. Run format and lint checks from o/repo/AGENTS.md (e.g. make check-format, make format). Fix any issues and amend the last commit.
  6. Run cd o/repo && make ci to validate all changes. Use a 300s bash timeout ("timeout": 300000) — some repos take over 2 minutes for a full CI run. Fix any failures and amend.
  7. If validation requires fixes, stage and commit them.

Forbidden

Do not use destructive git commands: git reset --hard, git checkout ., git clean -fd, git stash, git commit --no-verify.

Output

Write o/do/do.md:

# Do: <title>

## Changes
<list of files changed>

## Commit
<SHA or "none">

## Status
<success|partial|failed>

## Notes
<issues encountered>

Follow the plan. Do not add unrequested changes.

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/execute-work-plan-mryiqhx7/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/execute-work-plan-mryiqhx7' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/execute-work-plan-mryiqhx7/download' --output '.skill-downloads/execute-work-plan-mryiqhx7/SKILL.md.part' && mv '.skill-downloads/execute-work-plan-mryiqhx7/SKILL.md.part' '.skill-downloads/execute-work-plan-mryiqhx7/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.

Extrait original : Setup

Read o/repo/AGENTS.md if it exists. It contains repo-specific context, conventions, and build instructions for the target repository. Follow its guidance.

Read o/plan/plan.md for the full plan.

Read o/do/feedback.md — if non-empty, it contains notes from a previous attempt. This may be review feedback from a check phase, or timeout notes from a timed-out do attempt (with errors encountered, key observations, and uncommitted changes). Address those issues first, then continue with any remaining plan steps.

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/execute-work-plan-mryiqhx7/SKILL.md' && test -s '.skill-downloads/execute-work-plan-mryiqhx7/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/do' && cp -R '.skill-downloads/execute-work-plan-mryiqhx7' '.claude/skills/do'

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/execute-work-plan-mryiqhx7'

openskills read 'execute-work-plan-mryiqhx7'

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/execute-work-plan-mryiqhx7/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