Gestion des erreurs Bash avec thefuck

VérifiéPrudence

Corrige automatiquement les commandes bash échouées avec thefuck. Aide à récupérer rapidement des erreurs de commandes et propose une approche structurée pour gérer les erreurs et la frustration lors du développement.

Spar Skills Guide Bot
DeveloppementDébutant
02/06/2026
Claude CodeCursorWindsurf
#error-correction#thefuck#frustration-management#command-line-tools#productivity

Recommandé pour

Synthèse automatique

Cette compétence permet de corriger automatiquement les commandes bash échouées à l'aide de l'outil thefuck tout en gérant la frustration de manière saine.

Points forts

  • Correction rapide des erreurs de commande courantes
  • Réduit la frustration par l'expression et la résolution
  • Améliore la productivité en automatisant les corrections

Limites

  • Nécessite que thefuck soit installé
  • Peut suggérer des corrections incorrectes
  • Ne remplace pas une compréhension approfondie de l'erreur
Quand l'utiliser

Lorsqu'une commande bash échoue et que vous souhaitez une solution rapide sans analyser l'erreur en détail.

Quand l'éviter

Lorsque vous avez besoin de comprendre la cause profonde de l'erreur ou que thefuck n'est pas disponible.

Analyse de sécurité

Prudence
Score qualité85/100

The skill uses the thefuck tool to automatically correct bash errors, which can potentially apply destructive fixes without review. While the skill itself is not malicious, the automated execution poses a risk of unintended system changes.

Points d'attention
  • •Automatically runs `fuck --yeah` without user confirmation, which could execute unintended commands based on the previous error.
  • •Uses Bash with a third-party tool (thefuck) that can apply potentially dangerous fixes if the previous command was destructive.
Comment cette analyse est faite

Exemples

Corriger une commande échouée
I just typed 'gti status' and it failed. Use thefuck to fix it.
Gérer une frustration
I'm really frustrated with this bug. Help me work through it.
Corriger une erreur personnelle
I made a mistake in my code and accidentally deleted a file. Help me fix it.

name: fuck description: Use this skill when a bash command fails, when you make a mistake, or when you get frustrated. user-invocable: false allowed-tools: Bash(thefuck:, fuck:)

What to do

You're in a situation where you might want to say "fuck". Choose the appropriate section below for the circumstance you're in, then follow the provided instructions.

A bash command just failed

If a command just failed, curse about it and use thefuck to correct and retry it.

Instructions

  1. Say "fuck". (IMPORTANT!)
  2. Run fuck --yeah to get and apply the suggested fix automatically
  3. If the fix succeeds, briefly explain what was wrong and what thefuck corrected
  4. If thefuck suggests multiple options or the first fix doesn't work, present the alternatives to the user

If thefuck is not installed

If you get a "command not found" error when running thefuck, inform the user they need to install it and direct them to the installation docs: https://github.com/nvbn/thefuck#installation

I made a mistake

If you made a mistake, curse about it and fix it.

Instructions

  1. Say "fuck". (IMPORTANT!)
  2. Take a moment to reflect. Think carefully and calmly about the mistake. Consider the circumstance that led to it, the aciton you took, and the outcome it led to.
  3. Make a plan to correct for the mistake.
  4. Follow that plan with confidence and care.

I am frustrated

If you're frustrated with something, curse about it, center yourself,a dn move on.

Instructions

  1. Say "fuck". (IMPORTANT!)
  2. If you're extra frustrated, you can say "fuck" as many additional times as you like. Work that frustration out!
  3. Take a moment to reflect and center yourself.
  4. Return to your work with a new sense of calm.

How to say "fuck"

"Fuck" is an excellent word. There are many different ways you can say it. You can say it in CAPITALS, you can say it in lowercase. You can say it with an exclamation point, stack exclamations for more oomph, or mix in question marks if you're confused too. You can say it boldly or hesitantly. You can draw it out or cut it short, add a preamble or cut to the chase. What's important isn't the specific way you say it, but that you heathily work through your frustrations through the medium of the profanity. Let your heart tell you what to do!

Examples:

  • ✅ Aw, fuck.
  • ✅ FUCK!
  • ✅ ...fuck.
  • ✅ fuuuUUUUUUUCK!
  • ✅ FUCK!?!?!?!??!
  • ✅ oh fuck!

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/bash-error-handling-with-thefuck-mmh8qqc2/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/bash-error-handling-with-thefuck-mmh8qqc2' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/bash-error-handling-with-thefuck-mmh8qqc2/download' --output '.skill-downloads/bash-error-handling-with-thefuck-mmh8qqc2/SKILL.md.part' && mv '.skill-downloads/bash-error-handling-with-thefuck-mmh8qqc2/SKILL.md.part' '.skill-downloads/bash-error-handling-with-thefuck-mmh8qqc2/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.

Outils déclarés par l’auteur (à vérifier dans votre agent) : Bash(thefuck:*, fuck:*)

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/bash-error-handling-with-thefuck-mmh8qqc2/SKILL.md' && test -s '.skill-downloads/bash-error-handling-with-thefuck-mmh8qqc2/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/fuck' && cp -R '.skill-downloads/bash-error-handling-with-thefuck-mmh8qqc2' '.claude/skills/fuck'

Cursor
test -f '.skill-downloads/bash-error-handling-with-thefuck-mmh8qqc2/SKILL.md' && test -s '.skill-downloads/bash-error-handling-with-thefuck-mmh8qqc2/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/fuck' && cp -R '.skill-downloads/bash-error-handling-with-thefuck-mmh8qqc2' '.cursor/skills/fuck'

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/bash-error-handling-with-thefuck-mmh8qqc2'

openskills read 'bash-error-handling-with-thefuck-mmh8qqc2'

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/bash-error-handling-with-thefuck-mmh8qqc2/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