agentleFS
MorningStar0709MorningStar0709/trae-agent-enhancements/skills/self-improvement/SKILL.md

self-improvement

Skill18 starsChanged 7 months agoMITView on GitHub

Captures learnings, errors, and corrections to enable continuous improvement. Use when a command fails unexpectedly, the user corrects a misunderstanding, an external tool breaks, or a better approach is discovered. 适用于“把这个报错记下来”、“记住我刚才说的规则”、“更新最佳实践”或“把这个教训沉淀下来”等需要自我进化的场景。

21 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use skill-vetter, github and 2 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • UseAI-proSkill

    skill-vetter

    Security-first vetting for OpenClaw skills. Use before installing any skill from ClawHub, GitHub, or other sources.

    Also in 4 projects that use this

  • NVIDIASkill

    github

    Interact with GitHub using the gh CLI restricted to REST API only (no GraphQL). Use when the user wants to work with GitHub issues, pull requests, repos, releases, or Actions — especially in sandboxed environments where the GraphQL endpoint may be blocked. Trigger keywords - github, gh, pull request, PR, github issue, github actions, workflow, release, gh api.

    Also in 3 projects that use this

  • VercelSkill

    agent-browser

    Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

    Also in 4 projects that use this

  • VercelSkill

    find-skills

    Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 19 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Task Wrap-up: Before completing a major task, review if any persistent workarounds should be captured.

    line 18
  2. Distinctive:

    When you finish logging a learning, report back using this format:

    line 41
  3. Distinctive:

    After reporting, resume the original workflow that triggered the learning.

    line 50
  4. Distinctive:

    Unclear Correction: Ask for clarification before logging.

    line 54
  5. Distinctive:

    Redundant Memory: Use UPDATE to merge with existing.

    line 55
  6. Distinctive:

    Sensitive Data: NEVER log secrets, tokens, or private keys.

    line 56
  7. Very specific:

    Tool Unavailable: If manage_core_memory fails, fall back to manual capture via resources/execution-guide.md.

    line 58

“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Self-Improvement

Capture development insights, command failures, and user feedback into Trae's Core Memory, MCP Memory (for cross-session persistence), or project-level rules.

Classification rule of thumb: Core Memory for session-level corrections; MCP Memory for cross-session reusable knowledge; Project Rule for recurring patterns worth codifying; New Skill for a capability that deserves its own toolbox.

Use This Skill

  • Command/Tool Failure: An operation fails unexpectedly (e.g., port conflict, missing dependency).
  • User Correction: The user corrects your output, logic, or architectural approach.
  • Best Practice Discovery: You find a more efficient or robust way to perform a recurring task.
  • Knowledge Gap: You realize your understanding of the project or an API is outdated.
  • Task Wrap-up: Before completing a major task, review if any persistent workarounds should be captured.

Do Not Use

  • Transient network glitch or environment fluke that won't recur.
  • Non-technical chat without actionable feedback.
  • Routine code change without any new learning involved.
  • Task progress summarization (use standard output contracts for that).

Quick Reference

SituationAction
New learning discoveredresources/execution-guide.md → classify → store
Recurring pattern (3+ times)resources/promotion-guide.md → consider Rule
Learning qualifies as reusable Skillresources/execution-guide.md → use skill-creator
Memory is near limit or outdatedresources/memory-maintenance.md → audit → DELETE
User says "帮我整理记忆"Ask scope → explain snapshot limit → user verifies total from settings → resources/memory-maintenance.md 用户触发流程
Memory fragments seem to be growingAsk user → if confirmed, use resources/memory-maintenance.md 整合审计
Similar memory already existsUse UPDATE on existing entry, don't duplicate

Output Format

When you finish logging a learning, report back using this format:

**教训已记录 (Learning Captured)**
**分类:** `[Core Memory / MCP Memory / Project Rule / New Skill]`
**摘要:** [一句话概括]
**应用场景:** [什么情况下会用]

After reporting, resume the original workflow that triggered the learning. Do not treat self-improvement as a terminal step — the caller's execution should continue after logging.

Failure Strategy

  • Unclear Correction: Ask for clarification before logging.
  • Redundant Memory: Use UPDATE to merge with existing; don't create duplicates.
  • Sensitive Data: NEVER log secrets, tokens, or private keys.
  • Low-Value Learning: Skip trivial/obvious insights to avoid memory pollution.
  • Tool Unavailable: If manage_core_memory fails, fall back to manual capture via resources/execution-guide.md; if any script fails, retry once before reporting failure.

Integration

  • systematic-debugging: Client — non-obvious root causes are logged via self-improvement as knowledge_gap or insight.
  • test-driven-development: Client — false-green tests discovered during mutation testing are logged as anti-pattern experiences.
  • verification-before-completion: Client — non-obvious validation failures are logged as Experience.
  • finishing-a-development-branch: Client — during branch wrap-up, persistent workarounds and rule discoveries are promoted via self-improvement.
  • subagent-driven-development: Client — repeated subagent failures are logged to prevent future mis-routing.
  • memory-kernel: Downstream — after capturing a learning, if classified as MCP Memory, invoke memory-kernel to write it to the knowledge graph for cross-session persistence.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.