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
6002/06/2026
Claude CodeCursorWindsurf
#error-correction#thefuck#frustration-management#command-line-tools#productivity

Recommandé pour

Notre avis

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.

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!
Skills similaires