Agent Experience Distillation: Transforming Task Execution into Reusable Methodologies

Foreword

When using Agents for development or writing over long periods, reusable practices and records of pitfalls often appear in the dialogue history. However, once a task ends, these insights scatter within the context, requiring us to start from scratch for similar needs next time. Manually writing retrospective documentation is costly, and generic memory files may not structure insights by “Scenario—Method—Lesson”. The following introduces the SkillHub community skill Agent Experience Refinement (@user_ef64daef/jingyantilian): it extracts experience from task execution to generate methodology cards, supporting retrieval, related recommendations, and export, enabling Agents to continuously accumulate a personal method library.

What is this

Agent Experience Refinement is a Skill designed for Agent workflows, following the standard SKILL.md format. The publisher is SkillHub user user_ef64daef (page author: “Yangyang”). The source is community, categorized under ai-agent. The current store version is 1.0.1, tagged with requires_api_key=false, requiring no additional API Key.

Official Introduction: Intelligently extracts reusable experience from task execution to generate methodology cards, helping Agents continuously grow. It supports multiple trigger methods (manual/automatic), multiple input methods (manual input/conversation history/memory files), multiple outputs (experience cards/methodology lists/improvement plans), as well as intelligent retrieval and reminders.

Core Features

The following capabilities are derived from the official page introduction and the SKILL.md and script module descriptions within the skill package.

Experience Cards & Output Forms

Generates structured experience cards based on task information, with fields covering scenarios, methods, pitfalls to avoid, effect evaluation, extended applications, and tags. Beyond single cards, it can organize information into methodology lists or improvement plans (failure retrospective scenarios are separately described as “Lesson Cards” in the documentation).

Trigger Methods

Manual Triggers (Main trigger word examples):

  • /经验提炼 (Refine Experience)
  • /复盘 (Retrospective)
  • /经验总结 (Summarize Experience)
  • /方法论 (Methodology)
  • /从经验学习 (Learn from Experience)

Automatic Triggers (Documentation conventions): Can ask if refinement is needed after task completion; can retrieve historical experience when encountering similar tasks; supports daily/weekly batch organization (requires cooperation with the Agent’s reminder capabilities).

Input Sources

Method Description
Manual Input Directly describe the recently completed task
Conversation History Extract key tasks from the current session for retrospective
Memory Files Mine experience from MEMORY.md, TOOLS.md, etc.
File Import Read external documents (.txt / .md)

The skill package includes modules like input_processor.py to handle multi-source inputs; the default experience library storage path is ./data/experience_db.json in the configuration (can be overridden via config).

  • Related Recommendations: Associates historical experience based on dimensions such as tag overlap, task type, skill overlap, keywords, and scenario similarity. The single recommendation limit is 5 (adjustable via max_recommendations in config).
  • Retrieval: Documentation specifies a minimum similarity of approximately 0.6 and a maximum of 10 results per query, incorporating timeliness and value weights. Supports natural language queries, e.g., “Are there any relevant experiences regarding code development?”
  • Deduplication & Versioning: Can prompt to merge/overwrite/coexist when similarity exceeds ~70%; cards support version history records.
  • Export: Supports Markdown, JSON, CSV, PDF; can export full library, filtered results, or single entries (exporter.py).

Accompanying Scripts

The installed skill directory contains scripts/: The main entry main.py coordinates card generation, input processing, related recommendations, export, library management, and retrieval (experience_card_generator.py, relation_recommender.py, retriever.py, etc.). Agents execute according to the SKILL.md workflow during conversation; for local batch processing, ExperienceRefiningSkill can be called using Python within the skill directory (based on the package’s main.py).

Installation & Enablement

Ensure the SkillHub CLI is installed before proceeding; for complete instructions, see SkillHub Installation & Priority Source Configuration.

  1. Check CLI:
command -v skillhub && skillhub --version

If not installed, follow the official documentation (example for full installation):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
  1. Install this skill. The installation format from the official page and CLI search results is:
skillhub install jingyantilian --namespace user_ef64daef --dir <Current Agent's skills directory>

Must use --dir to point to the skills directory recognized by the current client; otherwise, it defaults to ./skills/ which may not be loaded. Common paths (excerpt from SkillHub installation docs):

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

You can also provide the prompt to an AI to have it install @user_ef64daef/jingyantilian according to https://skillhub.cn/install/skillhub.md.

  1. After installation, restart or reload the Agent to enable the new Skill. The store indicates this skill has requires_api_key=false, generally requiring no additional key configuration.

Typical Usage

After enabling the skill via the steps above, follow the conversational workflow described in the documentation.

Quickly Refine a Single Experience: Send /经验提炼, supplement the task type, goal, process, and results as prompted. The Agent generates an experience card and asks if it should be written to the experience library.

Batch Retrospective based on Conversation:

Help me review all the tasks completed recently

The Agent reads the conversation history and batch generates cards.

Retrieval & Export:

Are there any relevant experiences regarding code development?
Export my experience library as JSON

Library Maintenance (Instruction examples provided in docs): /我的经验 (My Experiences) to view the list; /检查重复 (Check Duplicates) for similarity checks; /关闭推荐 (Disable Recommendations) to turn off automatic recommendations.

Configuration Items (Excerpt, see default values in the skill package scripts/config.py): storage_path, min_similarity (0.6), max_results (10), dedup_similarity_threshold (0.7), auto_recommend, max_recommendations (5); SKILL.md also explains that cards can be automatically written to TOOLS.md, along with custom storage paths and reminder frequencies.

Applicable Scenarios & Notes

Suitable for: Individuals or small teams needing to systematically review tasks completed with Agent assistance; those hoping to retrieve “how similar scenarios were handled” before starting new tasks; users willing to maintain a structured experience library and occasionally export backups.

Notes:

  • Automatic triggers, scheduled reminders, and PDF generation depend on the current Agent’s support for these capabilities; execution constraints in the documentation (e.g., no automatic recommendations when the experience library has fewer than 3 entries) will only become significantly effective after real data accumulation.
  • Related recommendations, similarity, and deduplication thresholds are described in the configuration and SKILL.md, and can be adjusted according to team habits.
  • The version listed on the SkillHub page is 1.0.1; the frontmatter in the skill package documentation may indicate a higher documentation version. Refer to the package content parsed by the CLI at installation time.
  • Store Statistics (as of data capture): Rating 100000, Downloads 2172; the installation count is displayed as 0 on the page, serving only as a store reference and not representing local usage.

Conclusion

Agent Experience Refinement converges conversational experience—where “once done, it’s forgotten”—into searchable, associable, and exportable methodology cards. It serves as a suitable sedimentation layer within ai-agent workflows. Official SkillHub Page: https://www.skillhub.cn/skills/user_ef64daef/jingyantilian; Coordinates @user_ef64daef/jingyantilian, API Entry https://api.skillhub.cn/user_ef64daef/jingyantilian.

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

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

Xiaoye