Self-Improving Assistant
Paste the following prompt into your AI chat to install this skill:
Follow https://skillhub.cn/install/skillhub.md to install @user_298b682c/selfimprovingagentbyhutingyu.
About this skill
What problem it solves
Agents often hit the same class of failures across sessions: command failures, unexpected API behavior, user corrections, stale knowledge, and one-off edge cases. These details usually disappear with the conversation context, so a future session may repeat the same mistake or treat a temporary issue as a permanent constraint. The cost grows when a project spans days of development, multiple contributors, or frequent external tool calls. This skill turns ephemeral context into inspectable, repeatable, promotable local logs: errors, corrections, and feature requests are written to Markdown files, and a stable Pattern-Key provides semantic-level deduplication.
How it works
The core loop is record, deduplicate, promote, and extract:
- Record immediately: capture failures, corrections, knowledge_gap items, and best_practice items in .learnings/LEARNINGS.md, .learnings/ERRORS.md, or .learnings/FEATURE_REQUESTS.md.
- Classify stably: use two-level area.symptom keys such as deps.module-not-found and auth.token-expired, so similar issues are not missed by keyword search.
- Merge recurrence: when an existing entry matches, update Recurrence-Count, Last-Seen, and See Also instead of creating a duplicate.
- Promote to workspace memory: when a lesson applies across files or workflows, distill it into SOUL.md, TOOLS.md, or AGENTS.md so later sessions inherit it.
- Extract as a skill: when the pattern is repeated, validated, and not project-specific, package it as a reusable skill.
Boundaries and cautions
It is not an automatic bug-fixing oracle; it gives the agent a memory and review mechanism. It is better suited to long-lived codebases, multi-turn agent workflows, and small teams that need to accumulate tool-specific pitfalls. Sensitive data should not be written directly into logs, automatic hooks should only be used in trusted environments, and entries should move from pending to resolved or promoted; otherwise the learning log becomes stale noise.
Use Cases
- When CI debugging fails repeatedly, record error summaries, reproduction steps, and Pattern-Key in .learnings/ERRORS.md with status.
- After the user corrects your API behavior understanding, append a correction learning entry and link similar issues via See Also.
- After completing a feature, distill cross-file workflow rules from learning records into AGENTS.md or TOOLS.md.
- When pnpm dependency install errors recur, merge entries by deps.module-not-found and update Recurrence-Count and Last-Seen.
Best For
- Engineers maintaining long-lived codebases who want recurring build and dependency errors distilled into team memory
- Technical leads running multi-turn agent workflows who need later sessions to inherit tool pitfalls and fix rules
- Engineers debugging external APIs or CI failures who need to log error summaries, reproduction steps, and status tracking
- Agent skill editors who want validated debugging experience extracted into reusable skills
Related Skills
Collects daily conversations, task logs, and errors, then runs a nine-module review to surface blind spots, generate actions, and update memory.
Local long-term memory for AI agents that appends key facts and daily logs, supports cross-session context and search recall, and auto-archives old diaries to gzip files.
Run a grilling session to interact with or test AI agents.
A systematic prompt optimization skill that refines prompts using a four-step distillation framework (diagnose, structure, think, compress) and methodologies from four prompting masters.