Self-Correction: Using Skill to Guide the Model in Self-Checking and Correction When Layering Patches on Incorrect Responses

Preface

When using large language models to write code, revise copy, or perform reasoning, a common practice is to follow up with “That’s wrong, try again.” Without structured constraints, the model often builds on the erroneous assumptions from the previous round, making things increasingly chaotic with each iteration. This article introduces the SkillHub community skill “Self-Correction” (@user_ecc9df84/self-correction), which is designed to optimize user prompts through a self-check and error-correction process when responses do not meet expectations, rather than merely patching over the original mistakes.

What Is This

“Self-Correction” is a Skill designed for AI Agents, located at @user_ecc9df84/self-correction. It is currently at version 1.0.0, sourced from the community, published by user_ecc9df84, and categorized under ai-agent. The official summary describes it as a model self-check and error-correction skill; it is built upon the underlying principles of large language models and is used to optimize user prompts, enabling direction correction when outputs deviate from expectations, rather than compounding errors with each additional attempt. The page indicates requires_api_key=false, meaning installation and usage do not depend on any additional API key.

Core Features

Based on SkillHub’s public documentation, the verifiable capability boundaries are as follows:

  1. Self-check: Introduces a verification step into the Agent execution pipeline, allowing the model to review its current response or intermediate conclusions against expectations.
  2. Error correction and course correction: When results do not meet expectations, adjusts the reasoning approach and prompt according to the Skill’s guidance, avoiding simple repetition of the erroneous path from the previous round.
  3. User prompt optimization: Addresses the question of “how to describe tasks and constraints to the model” rather than merely stacking short instructions like “try again.”

Specific trigger conditions, checklists, and prompt templates are determined by the installed SKILL.md; this article does not cover implementation details not appearing on the official page.

Installation and Activation

The installation instructions provided on the SkillHub page are: first read the SkillHub Installation and Source Configuration, then install this skill.

1. Verify skillhub CLI

Check whether the CLI is already installed on your machine:

command -v skillhub && skillhub --version

If it is not installed, you can follow the installation documentation to perform a full installation (including the CLI and default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

If only the CLI is needed:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

2. Install to the current Agent’s skills directory

When installing, you must use --dir to point to the skills directory recognized by your current client; otherwise, it will default to ./skills/, and the Agent may not be able to load it. The general installation command format is as follows:

skillhub install @user_ecc9df84/self-correction --dir <skills directory>

Common paths (from the SkillHub installation documentation):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ within the project

You can also provide the installation instructions as a prompt to an AI, letting it complete the installation according to the documentation:

Please install @user_ecc9df84/self-correction based on https://skillhub.cn/install/skillhub.md.

After installation, restart or refresh the Agent as required by your client to enable the Skill.

Typical Usage

The official page does not provide a standalone copyable one-click dialogue example; based on the summary, a reproducible usage pattern is as follows:

  1. Normally present tasks (code, analysis, copywriting, etc.) to an Agent that has this Skill enabled.
  2. When the first or subsequent response clearly deviates from expectations, explicitly state “the points that do not meet expectations” (factual errors, omitted constraints, logical gaps, etc.), allowing the Agent to enter self-check and error correction under the Skill’s constraints, rather than simply responding with “Sure, I’ll rewrite it.”
  3. When course correction is needed, prioritize supplementing or rewriting the user prompt (goals, boundaries, acceptance criteria) to help the Skill guide the model onto a different path, rather than merely fine-tuning wording on the same erroneous premise.

If precise steps and phrasing templates are needed, please open the SKILL.md within the skill package after installation and follow the author’s instructions.

Applicable Scenarios and Notes

Who It’s For

  • Developers who frequently need to iteratively correct Agent outputs and worry about “drifting further away with each correction.”
  • Users who want to solidify “check — correct — rewrite prompt” into their workflow rather than improvising each time.

Limitations and Notes

  • Community-sourced (community); quality and update frequency depend on the publisher’s maintenance. It is recommended to verify in a test environment before major tasks.
  • Self-correction depends on the model following Skill instructions; human review should still be retained for complex tasks.
  • SkillHub statistics (based on retrieved data): rating 100000, downloads 5539, installs 95; these figures change with platform updates and do not constitute performance guarantees.

Conclusion

“Self-Correction” packages “model self-check + user prompt optimization” into an installable Agent Skill, addressing the problem of errors compounding on top of original mistakes during multi-round correction. To install or view documentation, visit the SkillHub page: Self-Correction, API coordinates page: https://api.skillhub.cn/user_ecc9df84/self-correction.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye