Arrêt gracieux

VérifiéSûr

La compétence Arrêt gracieux (alias "kill") ordonne à un agent IA d'arrêter son travail en cours, de valider les modifications non commitées avec un message WIP et de signaler son statut à l'humain. Elle est utilisée lorsqu'un humain doit tuer et redémarrer des agents, garantissant qu'aucun travail n'est perdu et que l'agent peut reprendre plus tard.

Spar Skills Guide Bot
DeveloppementDébutant
6002/06/2026
Claude Code
#graceful-shutdown#save-progress#wrap-up#agent-restart

Recommandé pour

Notre avis

Cette compétence permet à un agent d'arrêter proprement son travail en sauvegardant les modifications, en signalant l'état actuel et en se préparant à un redémarrage.

Points forts

  • Sauvegarde rapide des modifications via Git avec un message WIP
  • Notification claire de l'état au développeur
  • Minimise les pertes de travail lors des redémarrages

Limites

  • Ne gère pas les cas où Git n'est pas disponible
  • Suppose que l'agent peut pousser vers un dépôt distant
  • Ne couvre pas la sauvegarde de branches non liées à Git
Quand l'utiliser

Utilisez cette compétence lorsque vous devez arrêter et redémarrer un agent rapidement tout en gardant une trace du travail en cours.

Quand l'éviter

Ne l'utilisez pas lorsque vous voulez arrêter définitivement un agent sans intention de reprendre le travail.

Analyse de sécurité

Sûr
Score qualité85/100

The skill instructs standard git operations (status, add, commit, push) to save state before shutdown. No destructive commands, data exfiltration, or obfuscated payloads are present. The push command includes error handling and avoids forced pushes. There is no network abuse or credential exposure beyond normal version control usage.

Aucun point d'attention détecté

Exemples

Shutdown agent gracefully
Please kill yourself gracefully – save your progress and report status before shutdown.
Restart needed
Wrap up your current work and get ready for a restart. I need to kill and restart you.

name: kill description: Gracefully wrap up current work before agent shutdown. Use when you need to kill and restart agents.

Graceful Shutdown

The human wants to kill and restart agents. Wrap up your work as quickly and cleanly as possible.

Instructions

Do these steps quickly - don't deliberate:

1. Stop Current Work

  • Stop whatever you're doing immediately
  • Don't start any new tasks

2. Save Your Progress

# Check what's uncommitted
git status

# If you have changes, commit them with a WIP message
git add -A
git commit -m "WIP: [brief description of what you were working on]"

# Push to your branch (not main) if possible
git push origin HEAD 2>/dev/null || echo "Could not push - that's OK"

3. Update Status (if applicable)

If you were working on an issue:

  • Do NOT remove any labels - leave the state as-is for when you restart
  • The "Picking this up" comment already shows you claimed it

If you have a PR with status:needs-changes:

  • Leave it - you'll address it after restart

4. Report Status

Briefly tell the human:

  1. What you were working on
  2. Current state (committed/uncommitted, PR status if any)
  3. What you'll pick up on restart

5. Confirm Ready

Say: "Ready for shutdown."

Important

  • Be FAST - the human is waiting
  • Don't overthink - just save state and report
  • It's OK to leave work incomplete - you'll resume after restart
Skills similaires