self-refinement

Identify recurring error patterns from user corrections and consolidate them into persistent Rules and Skills.

159|47|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/davidYichengWei/agentic-engineering-framework --skill self-refinement
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: self-refinement
Source: https://github.com/davidYichengWei/agentic-engineering-framework/tree/main/skills/self-refinement
Command: npx skills add https://github.com/davidYichengWei/agentic-engineering-framework --skill self-refinement

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

将纠错经验沉淀为持久化的 Rules/Skills 更新,构建反馈闭环。当被用户纠正且错误具有模式性时自动触发,或通过 /reflect 命令手动触发回顾。

Core Features & Use Cases

  • 自动将纠错过程中的错误模式转化为可复用的 Rules/Skills,形成持续改进的闭环。
  • 支持自动触发(模式化错误时)或手动触发(/reflect)回顾与沉淀。
  • 沉淀内容以结构化文本记录到规则/技能中,便于在新会话中复用。

Quick Start

请在对话中出现需要沉淀的错误模式后,输入触发指令进行回顾并将经验沉淀到对应的 Rules/Skills 中。

Frequently Asked Questions about self-refinement

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I persist error patterns from user corrections into reusable rules?

To persist error patterns, the self-refinement Skill identifies recurring mistakes from user corrections and consolidates them into persistent Rules or Skills. It records changes with traceable file edits, ensuring the refined logic applies across future conversations.

What is a feedback loop for consolidating corrections into skills?

A feedback loop for consolidating corrections automatically detects pattern-based errors during a session, or triggers manually via /reflect, to extract the error pattern. It then writes this experience into existing Skills and Rules as structured text for reuse.

How do I trigger a review of recurring mistakes to update my rules?

You can trigger a review of recurring mistakes automatically when a pattern-based error is detected, or manually by entering the /reflect command. This initiates the consolidation process to update your persistent Rules and Skills with safe prompts.

Does self-refinement work automatically or do I need to manually trigger rule creation?

Self-refinement supports both automatic triggering on pattern-based errors and manual triggering via the /reflect command. It ensures that identified error patterns are consolidated into existing Skills and Rules with traceable file edits across future conversations.

How to ensure traceable file edits when updating persistent rules from error patterns?

To ensure traceable file edits when updating persistent rules, the self-refinement framework applies safe prompts to record changes directly within existing Skills and Rules. This structured text recording maintains an actionable history of consolidated error patterns.