agent-self-management

Record and retrieve lessons learned with typing and scope tagging.

1|1|Updated Jun 9, 2026
One-click install
npx skills add https://github.com/Pact-Community-Organization/github-marketplace --skill agent-self-management
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-self-management
Source: https://github.com/Pact-Community-Organization/github-marketplace/tree/main/skills/agent-self-management
Command: npx skills add https://github.com/Pact-Community-Organization/github-marketplace --skill agent-self-management

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Agents often struggle to retain insights from complex tasks, leading to repeated mistakes. This Skill enables recording and retrieving lessons learned, updating knowledge bases, and tracking patterns to continuously improve behavior.

Core Features & Use Cases

  • Recording a Lesson: Identify insight, classify as pattern, anti-pattern, gotcha, or optimization, determine scope, write a concise note with context and evidence, and store in the appropriate memory scope.
  • Retrieval: Check memory at session start for relevant prior knowledge and cross-reference findings with known gotchas.
  • Storage Locations: Memory hierarchies include user memory, session memory, and repository memory for cross-workspace, current-task, and codebase-specific facts.

Quick Start

Record a lesson after completing a task by identifying insight, classifying it, specifying scope, writing a concise contextual note, and saving it to the appropriate memory.

Frequently Asked Questions about agent-self-management

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

FAQPage Schema
How do I record lessons learned to improve agent performance after task resolution?

To record lessons learned for improving agent performance, identify the insight, classify it as a pattern, anti-pattern, gotcha, or optimization, determine the scope, write a concise note with context and evidence, and store it in the appropriate memory hierarchy.

What is agent self-management memory hierarchy and how does it work?

The agent self-management memory hierarchy consists of user, session, and repository memories. It works by storing cross-workspace facts, current-task context, and codebase-specific knowledge respectively to persistently retain insights across different operational scopes.

How do agents retrieve prior knowledge and cross-reference known gotchas at session start?

Agents retrieve prior knowledge by checking memory at session start for relevant stored insights and cross-reference findings with known gotchas documented during previous post-resolution reviews to prevent repeated mistakes.

Can I capture anti-patterns and document patterns within specific project or task contexts?

Yes, you can capture anti-patterns and document patterns within specific project or task contexts. The system supports structured memory capture with lesson typing and scope tagging applied across workspace, project, or task contexts.

What are the limitations of relying on persistent memory storage for continuous agent improvement?

A limitation of persistent memory storage for continuous agent improvement is that agents must actively check memory at session start and after post-resolution reviews; failure to retrieve or record lessons leads to repeated mistakes and stagnant behavior.