Notre avis
Réinitialise le répertoire de travail pour la tâche suivante en vérifiant l'absence de modifications non validées, en basculant vers la branche principale et en tirant les dernières mises à jour.
Points forts
- Automatise un processus manuel de plusieurs étapes
- Évite les conflits en vérifiant d'abord les modifications non validées
- Préserve l'intégrité du dépôt en ne procédant qu'après validation des prérequis
Limites
- Ne gère que les branches master/main
- N'efface pas les modifications non validées — nécessite une action utilisateur
- Dépend de la connexion réseau pour le pull
À la fin d'une tâche, pour préparer le dépôt pour la tâche suivante de manière propre.
Lorsque vous avez encore des modifications non validées que vous souhaitez conserver dans la branche courante.
Analyse de sécurité
SûrThe skill only uses standard Git commands (status, checkout, pull) within the local repository, with no external data exfiltration, destructive operations, or execution of arbitrary code.
Aucun point d'attention détecté
Exemples
/doneReset the repository to the main branch with the latest changes, but first check for uncommitted changes.name: done description: Reset the working directory for the next task by ensuring no uncommitted changes exist, then switching to the main branch and pulling latest. disable-model-invocation: true allowed-tools: Bash(git *)
Done - Reset for next task
You are finishing up the current work and resetting the repo to be ready for the next task.
Steps
-
Check for uncommitted changes: Run
git status --porcelain. If there is ANY output (staged, unstaged, or untracked files), stop immediately and tell the user:- List the uncommitted/untracked files
- Tell them to commit or stash their changes before running
/done - Do NOT proceed to the next steps
-
Determine the default branch: Run
git branch --list master mainto check which exists. Prefermasterif it exists, otherwise usemain. If neither exists, tell the user that no master or main branch was found and stop. -
Switch to the default branch: Run
git checkout <branch>where<branch>is the branch determined in step 2. -
Pull latest changes: Run
git pullto fetch and merge the latest changes from the remote. -
Confirm: Tell the user they are now on the default branch with the latest changes and ready to start the next task.
Expert Next.js App Router
Developpement
Un skill qui transforme Claude en expert Next.js App Router.
Générateur de README
Developpement
Crée des README.md professionnels et complets pour vos projets.
Rédacteur de Documentation API
Developpement
Génère de la documentation API complète au format OpenAPI/Swagger.