thefuck

Correct syntax errors in executed shell commands with user confirmation.

1|Updated Jun 22, 2026
One-click install
npx skills add https://github.com/jchildree/The-QUESTION --skill thefuck
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: thefuck
Source: https://github.com/jchildree/The-QUESTION/tree/main/.agents/skills/thefuck
Command: npx skills add https://github.com/jchildree/The-QUESTION --skill thefuck

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill resolves errors in previously executed shell commands, providing users with the ability to correct and re-execute commands that have failed.

Core Features & Use Cases

  • Command Error Correction: Automatically identifies and fixes common errors in executed shell commands.
  • Trigger-Based Execution: Activated by specific keywords such as "fix that command" or "correct that".
  • Manual Error Correction: Allows users to manually paste failed commands and errors for correction.
  • Confirmation Before Execution: Always prompts the user before running a corrected command to prevent accidental destructive actions.

Quick Start

Use the "/fix that command" trigger to correct a previous failed shell command.

Frequently Asked Questions about thefuck

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix shell command errors automatically?

To fix shell command errors, you can use a trigger phrase like "fix that command" to automatically identify syntax errors and fuzzy match command names for suggested corrections.

What is the best way to correct failed shell commands?

Correcting failed shell commands is best handled by pasting the failed command and its error output, which allows fuzzy matching to diagnose the issue and offer a corrected solution.

Do I need to confirm before a corrected command runs?

Yes, you must confirm before a corrected command executes, ensuring you have the opportunity to review the suggested syntax fix and prevent accidental destructive actions in your shell environment.

Can I use command line error correction for syntax mistakes?

You can use command line error correction for syntax mistakes by triggering the utility, which utilizes fuzzy matching for command names to offer solutions for common error scenarios.

What are the limitations of scripting error correction utilities?

Scripting error correction utilities require user input to diagnose the error and confirm corrections, meaning they cannot run fully autonomously and rely on manual confirmation before executing fixed shell commands.