22: Consolidating failures, error correction, and experiences into reusable Agent learning records

Introduction

When using AI Agents for coding or DevOps over long periods, similar errors often recur across different sessions: occasional command failures, real-time corrections from users, external API errors, or instances where the model realizes its information is outdated. Once a session ends, the context is lost, requiring a complete explanation from scratch in the next round. This article introduces the SkillHub community Skill “22” (Coordinate @user_be2168d6/11), which is designed to capture learnings, errors, and corrections to support continuous improvement, as well as review accumulated content before major tasks.

What is This

“22” is a community Skill published by user_be2168d6 on SkillHub. It is categorized under ai-agent, with the current version being 1.0.0. Its tags indicate requires_api_key=false, meaning no additional API Key is needed. The official description summarizes its capability in one sentence: Captures learnings, errors, and corrections to enable continuous improvement.

Maintenance and Distribution Entry Points:

Core Functions

Based on the SkillHub page and metadata, the verifiable capability boundaries are as follows:

  1. Capture Learnings
    During conversations or tasks, write down conclusions and practices worth retaining for reference in subsequent sessions.

  2. Capture Errors
    When commands, operations, or external tools fail, incorporate the failure context into learning records to reduce the recurrence of similar issues.

  3. Capture Corrections
    When a user explicitly negates or corrects the Agent’s output (e.g., pointing out “No,” “Actually it should be…”), structure and save the correction content.

  4. Review Before Major Tasks
    The official description requires reviewing existing learnings before conducting major tasks to avoid repeating old mistakes.

  5. Trigger Scenarios (Officially Listed)
    The Skill description specifies usage in the following situations (key points from the original text, implementation details not expanded):

    • Unexpected failure of a command or operation;
    • User corrects the Agent (e.g., “No, that’s wrong…”, “Actually…”);
    • User requests a capability that does not yet exist;
    • External API or tool failure;
    • Agent realizes its knowledge is outdated or incorrect;
    • A better practice is discovered for a repetitive task.

This Skill follows the standard SKILL.md format; the page does not disclose finer details such as storage paths, file naming, or CLI subcommands, so this text will not speculate on these contents.

Installation and Enablement

The installation process follows the official SkillHub installation documentation. The prompt given on the page is to let the AI install @user_be2168d6/11 based on https://skillhub.cn/install/skillhub.md.

1. Check SkillHub CLI

First, confirm if skillhub is available on your local machine:

command -v skillhub && skillhub --version

If not installed, you can perform a full installation (CLI + default Skills) according to the installation documentation:

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 the skill, you must use --dir to point to the skills directory recognized by the current client; otherwise, it will default to ./skills/, and the Agent may not be able to load it.

skillhub install user_be2168d6/11 --dir <skills directory>

Common paths listed in the installation documentation (choose one based on the client you actually use):

Client skills Directory
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Codex ~/.codex/skills/ or .agents/skills/ under the project
Gemini CLI ~/.gemini/skills/

The coordinate notation follows the SkillHub page: @user_be2168d6/11; when searching and installing via CLI, usually use user_be2168d6/11 or the identifier found via skillhub search. If the client requires a restart or skill reloading after installation, follow the client’s instructions.

Typical Usage

Public materials do not provide copy-paste end-to-end command examples, but when to enable this Skill is described very specifically in the introduction. Below are reproducible workflows organized according to official scenarios (executed by the Agent according to SKILL.md after enabling the Skill, rather than an independent script).

  1. Command Failure
    After a shell command or tool call fails, ask the Agent to record the failure reason and the final viable practice into learnings while fixing the issue.

  2. User Correction
    When a user negates the current solution, request the Agent to update its understanding and write to corrections to avoid proceeding with wrong assumptions next time.

  3. Capability Gap
    When a user requests a capability not available in the current environment, record the requirements and temporary workarounds to facilitate future expansion or manual handover.

  4. External Dependency Failure
    When an API or MCP tool errors, record the error code, environment, and recovery steps.

  5. Outdated Knowledge
    When the Agent discovers that documentation or APIs do not match the current status, record the corrected source of truth (within the scope allowed by the SKILL).

  6. Process Optimization
    After finding a shorter path for repetitive tasks, write it into learnings for use in “reviewing before major tasks.”

Applicable Scenarios and Notes

Who it is for

  • Developers using Agents like Cursor, Claude Code, or Codex long-term in the same repository or product line;
  • Individuals or small teams wishing to extract “pitfalls—corrections—better practices” from single conversations to form an inheritable context for the team.

Limitations and Notes

  • The page metadata shows Install Count as 0 (based on SkillHub statistics at the time of crawling). The actual experience depends on whether you install the Skill to the correct --dir path.
  • No API Key is required, but the persistence method and privacy scope of learning records are subject to the SKILL.md after installation; the public page does not describe synchronization or sharing mechanisms, so do not assume cloud backup.
  • Rating and download counts are platform statistics (Rating 100000, Downloads 3444 at time of crawling) and serve only as popularity references, not quality endorsements.
  • The name “22” has no additional subtitle; when using skillhub search, it is recommended to use the coordinate user_be2168d6/11 for precise location.

Conclusion

“22” solves the problem of experience loss between Agent sessions: writing failures, user corrections, and better practices into reviewable learning records, and reviewing them before major tasks. If you wish to install it, start with the SkillHub page and installation documentation.

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

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

Xiaoye