Self-Reflection Skills: Transforming Failures and Corrections into Reusable Agent Experiences

Preface

In Agent development, similar problems recur frequently: a specific shell command suddenly fails, the user corrects with “No, it should be…”, an external API returns an error, or a more reliable approach is realized only after the fact. By default, after a conversation ends, these corrections often remain only within that specific context, leaving the Agent likely to fall into the same traps in the next task.

The following is an introduction to the community Skill on SkillHub: the “Self-Reflection Skill”. Its positioning is to capture learnings, errors, and corrections to support continuous improvement, and to review accumulated content before starting major tasks. The facts in this article are sourced from the SkillHub page and installation documentation; for installation and paths, please refer to the official instructions.

What is this

The Self-Reflection Skill (Coordinates: @user_2d5dabaa/ziwofansi-ceshi, Version: 1.0.0) is a community skill (Source: community) under the SkillHub category ai-agent. It is maintained by the publisher user_2d5dabaa; the page author is displayed as user_孙悟空. The tag is requires_api_key=false, meaning it does not depend on an additional API Key.

Official Introduction (Key points from the English original): Records learnings, errors, and corrections for continuous improvement; and reviews learnings before major tasks.

Core Functions

According to the official introduction, this Skill stipulates that the Agent should proactively capture reflection content in the following situations (implementation details are not exhaustive here; refer to the installed SKILL.md for specifics):

  1. A command or operation fails unexpectedly.
  2. The user corrects the Agent (e.g., “No, that’s wrong…”, “Actually…”).
  3. The user requests a capability that the Agent does not currently possess.
  4. An external API or tool call fails.
  5. The Agent realizes its own knowledge is outdated or incorrect.
  6. A better approach is discovered for a repetitive task.

In addition, recorded learning content should be reviewed before starting a major task to reduce repeated errors.

The skill body follows the general SKILL.md format and is executed by the Agent according to the skill instructions when the above scenarios match; it does not replace your existing business code or testing processes.

Installation and Activation

The installation process follows the SkillHub documentation at https://skillhub.cn/install/skillhub.md. The page also provides the same guidance: please install @user_2d5dabaa/ziwofansi-ceshi according to that document.

1. Check or install the skillhub CLI

First, confirm whether the CLI already exists on your machine:

command -v skillhub && skillhub --version

If it is not installed, you can install it via the official script (fully includes the CLI and default Skills; add --cli-only if only the CLI is needed):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
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

The official requirement mandates using --dir during installation to point to the actual skills directory read by the current Agent; if omitted, it defaults to ./skills/, which may not be recognized, and usually requires a client restart to take effect.

skillhub install @user_2d5dabaa/ziwofansi-ceshi --dir <skills directory>

Common paths (excerpt from SkillHub installation documentation):

Environment skills directory
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Codex ~/.codex/skills/ or .agents/skills/ under the project
Windsurf ~/.codeium/windsurf/skills/ or .windsurf/skills/

In Cursor, you can set <skills directory> to ~/.cursor/skills/. For Claude Code, Codex, etc., replace according to the table above; OpenClaw and similar variants use their own agreed skills directories, consistent with the description in Section 4 of the documentation.

When installing the CLI for the first time, the SkillHub documentation will ask whether to set SkillHub as the priority skill source; if you are only searching or installing a single skill, you can skip the priority source configuration and directly execute the commands in Section 3.

Typical Usage

The public page does not include independent executable script examples. The typical usage is: after installing and enabling the skill, trigger one of the six scenarios listed officially during a conversation, and the Agent will record learnings, errors, and corrections according to SKILL.md; before starting large changes or long-chain tasks, let the Agent review the accumulated content first.

If you need to confirm specific write locations, fields, or review commands, you should open the SKILL.md inside the skill package after installation to verify; this article does not fabricate configuration items not present in the official materials.

When searching for similar skills, you can also use the CLI:

skillhub search ziwofansi

Use Cases and Notes

Who it is for: Teams or individuals who use Cursor, Claude Code, Codex, etc., for long-term automated development and troubleshooting, and who want to extract “pitfalls—corrections—better practices” from single conversations rather than explaining from scratch every time.

Prerequisites: A working skillhub CLI is required, and the skill must be installed to the correct --dir; requires_api_key=false indicates that additional keys are not mandatory, but it is still subject to the local Agent and network environment.

Data and Version: SkillHub scraping data shows a rating of 100000, downloads of 1044, and installs of 0 (statistics change over time; refer to the page). Version is 1.0.0; for upgrades, use the skillhub install/update process and still specify --dir.

Limitations: Community sourced (community); behavioral details are subject to the documentation within the skill package; it cannot replace version control, CI, or manual Code Review, but simply solidifies the reflection process into skill instructions that the Agent can follow.

Conclusion

The Self-Reflection Skill writes scenarios such as failures, user corrections, and capability gaps into clear trigger conditions, and emphasizes review before major tasks. It is suitable as a supplement to the “experience layer” in ai-agent workflows. Installation coordinates: @user_2d5dabaa/ziwofansi-ceshi. Official entry: https://www.skillhub.cn/skills/user_2d5dabaa/ziwofansi-ceshi.

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

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

Xiaoye