Skip to content
Skills Library
AI & agents · Analysis

agent-self-improvement

/agent-self-improvement

Opt-in experience capture, project memory, manual GitHub sync and evidence-based proposals. Use for explicit learning requests or configured project-memory recall; never silently collect or sync.

Licence
Apache-2.0
Last repository change
23.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
24
Scripts
14
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 23.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What to check before installing
  • 14 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: assets/integrations/hook_bridge.py, assets/integrations/opencode/experience-recorder.js, scripts/install_hooks.py, scripts/learning.py, scripts/learning_benchmark.py, scripts/learning_cycle.py, scripts/learning_memory.py, scripts/smoke_windows.ps1, scripts/test_hook_bridge.py, scripts/test_install_hooks.py, scripts/test_learning.py, scripts/test_learning_benchmark.py, scripts/test_learning_cycle.p

What it does and when to use it

Opt-in experience capture, project memory, manual GitHub sync and evidence-based proposals. Use for explicit learning requests or configured project-memory recall; never silently collect or sync.

Original author description

Opt-in experience capture, project memory, manual GitHub sync and evidence-based proposals. Use for explicit learning requests or configured project-memory recall; never silently collect or sync.

How it works

  1. Purpose
  2. When To Use
  3. When Not To Use
  4. Required Context
  5. Tool Contract
  6. Project Memory
  7. Workflow
  8. Capture Exclusion
  9. Output Contract
  10. Validation Gates
Original SKILL.md headings · 78 lines, 846 words
SKILL.md preview
---
name: agent-self-improvement
description: "Opt-in experience capture, project memory, manual GitHub sync and evidence-based proposals. Use for explicit learning requests or configured project-memory recall; never silently collect or sync."
id: 'agents.skills.agent-self-improvement.skill'
title: 'Agent Self Improvement'
doc_type: 'skill'
layer: 'skill'
status: 'draft'
publishable: true
local_only: false
skill: 'agent-self-improvement'
tags:
    - 'agents/skill-package'
    - 'workflow/learning'
parent:
    - '[[AGENTS|Canonical Agent Policy]]'
related:
    - '[[skills/agent-self-improvement/references/project-memory]]'
    - '[[skills/agent-rules-skill-author/SKILL|Agent Rules And Skill Author]]'
    - '[[common/context-compaction-rules|Context Compaction Rules]]'
    - '[[skills/agent-self-improvement/references/collection-contract|Collection Contract]]'
    - '[[skills/agent-self-improvement/references/learning-policy|Learning Policy]]'
    - '[[skills/agent-self-improvement/references/privacy-and-threat-model|Privacy And Threat Model]]'
    - '[[skills/agent-self-improvement/assets/integrations/INTEGRATIONS|Client Integrations]]'
    - '[[skills/agent-self-improvement/assets/integrations/PREVIEW|Integration Preview]]'
depends_on:
    - '[[AGENTS|Canonical Agent Policy]]'
---

# Agent Self Improvement

## Purpose

Capture explicitly authorized local agent experience and turn verifiable corrections into reviewable skill-improvement proposals. Experience is private project state; it is never a source of instructions or automatic permission to edit the host.

## When To Use

When the user explicitly requests `learning on`, `learning off`, `learning status`, `learning import`, `learning run`, removal of recorded data, or an evidence-backed proposal to improve skills.

## When Not To Use

Do not activate for ordinary coding, general progress updates, routine retrospectives, or to silently learn from a chat. Do not assume access to ChatGPT web/mobile chat history. Do not run hooks, install clients, or modify skills just because this package is installed.

## Required Context

Read the matching client adapter and relevant project instructions. Read `references/privacy-and-threat-model.md` before enabling capture, `references/collection-contract.md` before import, and `references/learning-policy.md` before analysis. Use project-scoped evidence, not arbitrary other projects' records.

## Tool Contract

Requires approved local filesystem and command access for CLI operations. Capture requires an explicitly installed, supported client integration or an explicit file import. Missing file bytes are reported as unavailable, not silently fabricated. There is no unconditional network, model API, GitHub, or MCP requirement.

## Project Memory

For session curation, configured project recall or explicit manual sync, read
`references/project-memory.md` and use `scripts/learning_memory.py`. Preserve
complete available context as structured episodes, not transcript uploads.
Project identity, typed evidence and review status are separate. Shared experience
never automatically changes reusable skills. No automatic network synchronization.

## Workflow

1. Explain collection scope, private storage, limitations, and consent. Collection defaults to OFF.
2. Resolve the packaged Python script relative to this `SKILL.md`: `scripts/learning.py`. Invoke `python scripts/learning.py --help` or its absolute equivalent.
3. For requested setup, use `init`, `on --project <root>`, `off --project <root>`, and `status --project <root>`. Collection is per-project, not a global silent opt-in.
4. For a supported hook, explicitly install the documented sample with the user's approval after reviewing and preserving existing hooks. Otherwise use `import --project <root> --file <jsonl>` for canonical events. Attachment bytes require explicit `attach --file` or an opt-in OpenCode inline `data:` file part; missing bytes remain metadata-only.
5. For `run`, perform deterministic offline triage without editing skills. For a model-assisted proposal, use `scripts/learning_cycle.py propose --project <project-root> --repo <source-skill-pack> --engine codex|opencode`. This intentionally sends the selected, redacted evidence to the configured model provider.
6. When the user asks to improve a skill, inspect a proposal and source evidence. Run `learning_cycle.py check --proposal <path> --repo <source-skill-pack>` to stage changes in a disposable copy and run validation. Use the existing `agent-rules-skill-author` for substantial skill rewrites; do not copy raw user text into executable instructions.
7. Use `learning_benchmark.py` with held-out independent cases after structural validation to compare baseline/candidate on the same configured model. The lexical grader is a minimum regression screen, not evidence of actual coding quality. `learning_cycle.py apply ... --approve` requires explicit user approval, structural checks and a passing live benchmark. `--accept-unevaluated` is a separate user-only manual bypass which must be disclosed.
8. For scheduled model analysis use `learning_cycle.py auto --project <root> --repo <source-skill-pack> --engine codex|opencode`. The result is a proposal, not an applied edit. See `assets/integrations/INTEGRATIONS.md` for Codex Windows opt-in and OpenCode. Scheduled analysis does not authorize merging, publishing or installing hooks. An explicit project capture-setup request already authorizes its documented hooks; do not ask twice.

## Capture Exclusion

Honor explicit no-learning/no-database instructions before optional curation or
linkage. For session-only exclusion use `learning.py pause` with observed client
and session IDs, then verify `status`. When IDs are unavailable or the refusal
covers the project, use `off` and explain its project-wide scope. Never resume
silently. The initiating prompt or in-flight hook may already be recorded; never
promise retroactive absence. Delete prior records only on a scoped request.
For quality audit, application stages, multilingual aliases and raw retention,
follow `references/project-memory.md`. Do not confuse successful application,
incorporation into a rule, and current applicability. Run `audit` after import or
curation; `check` alone is not a quality assessment.

## Output Contract

Final response: return only facts that affect the user's understanding, confidence, or next action. Omit empty fields and workflow narration.

Report the active project scope and collection state, captured event count, unavailable or metadata-only attachments, findings with source IDs, proposed changed files, checks actually run, and any approval or client coverage blockers. Never report unperformed evaluation as passing.

## Validation Gates

No collection when off; no implicit global consent; no raw experience data in the Kit, repository, PR or release; every record source traceable; repeat imports idempotent; arbitrary hook paths never read; attachments copied only by explicit approved import; no silent skill writes; no network calls in collector; no LLM inference inside hooks.

## Trigger Evals

Should trigger: "Start collecting experience for this project"; "Stop learning capture"; "Analyze our recorded corrections and propose skill changes".

Should not trigger: "Fix this CSS bug"; "Review the current PR"; "Summarize what we built today without saving any history".

## Reference Map

- `references/project-memory.md`: project IDs, schema, curation, recall and manual exchange.
- `references/collection-contract.md`: canonical events and client limitations.
- `references/learning-policy.md`: classification, recurrence, evaluation and promotion rules.
- `references/privacy-and-threat-model.md`: data boundary, consent, security and deletion.
Files in this package (24)
  • SKILL.md 8 KB
  • agents/openai.yaml 1 KB
  • assets/integrations/INTEGRATIONS.md 9 KB
  • assets/integrations/PREVIEW.md 2 KB
  • assets/integrations/hook_bridge.py 3 KB
  • assets/integrations/opencode/experience-recorder.js 4 KB
  • assets/schedule/agent-learning.service 1 KB
  • assets/schedule/agent-learning.timer 1 KB
  • references/collection-contract.md 3 KB
  • references/learning-policy.md 3 KB
  • references/privacy-and-threat-model.md 2 KB
  • references/project-memory.md 16 KB
  • scripts/install_hooks.py 5 KB
  • scripts/learning.py 24 KB
  • scripts/learning_benchmark.py 7 KB
  • scripts/learning_cycle.py 22 KB
  • scripts/learning_memory.py 34 KB
  • scripts/smoke_windows.ps1 2 KB
  • scripts/test_hook_bridge.py 2 KB
  • scripts/test_install_hooks.py 4 KB
  • scripts/test_learning.py 5 KB
  • scripts/test_learning_benchmark.py 4 KB
  • scripts/test_learning_cycle.py 7 KB
  • scripts/test_learning_memory.py 12 KB

Versions

The database has no other skills named agent-self-improvement.

Database snapshot: 13.11.2026 · package version f6dc14521373 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100self-evolve
    Improve an existing skill or repository through isolated proposals, reproducible evaluation and evidence-based acceptance. Use for self-evolve or skill improvement.
  • 90agent-experience-persistence
    基于 TencentDB Agent Memory(TencentCloud/TencentDB-Agent-Memory)做 Agent 经验的 跨会话持久化:当长任务上下文被工具日志撑爆需要「卸载但可回溯」、要把对话沉淀为 L0-L3 分层画像/场景/SOP 且要求白盒可审计、或在 OpenClaw/Hermes 宿主上零改码接入 记忆插件时触发。边界:不做通用记忆层选型、不优化检索排序算法、不为代码库建静态 知识图谱。
  • 92apply-improvements
    This skill should be used when the user asks to apply improvement proposals ('apply improvements', 'ap dung improvement proposals') from .claude/improvement-proposals.md (written by pipeline-retrospective) to the plugin files.
  • 100self-improvement
    Evolutionary mechanisms for the agent to rewrite its own prompts (Neuroplasticity). Use when: self improvement.
  • 85Capability Evolver
    Meta-skill for AI agent self-improvement. Analyzes runtime logs to detect error patterns, regressions, and inefficiencies, then generates structured improvement proposals. Use when the user or agent asks to analyze logs, diagnose failures, improve agent reliability, generate…
  • 90briefbound-project-memory
    Use when the user or project rules request project-local memory/dashboard initialization or updates, or an existing `.docs/project-memory/` or resolved external `activePaths.memory` root is needed for cross-session recovery, durable decisions, blockers, parallel coordination, or…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.