Token导航 LogoToken导航TokenDH.com
开发需要联网clawhub未标认证来源可访问clear审计通过

self-improving-session自我提升课程

Agent Skill

self-improving-session 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 OpenClaw 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,048

周安装

167

GitHub Stars

公开资料未说明

下载量

1,323
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:self-improving-session(自我提升课程)
来源仓库:https://github.com/lq434239/self-improving-session
安装命令:
openclaw skills install self-improving-session
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install self-improving-session

简介

从会话中提取持久偏好与项目约定,提出对 CLAUDE.md 的最小有效更新。

  • 适用于跨会话保持一致性,提升 Agent 在特定项目中的适应性。
  • 通过 OpenClaw 安装,建议手动审核其提出的配置变更是否合理。
  • 注意其对全局规则的潜在影响,避免覆盖已有有效设置。
  • self-improving-session 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
self-improving-session
description
Extracts durable workflow preferences and project conventions from a session, then proposes the smallest valid update to global or project CLAUDE.md files. Trigger when the user asks to remember rules, when repeated preference patterns appear, or at session end for non-trivial sessions.

self-improving-session

Good session learning captures durable guidance, not conversational residue.

Extract reusable lessons from the current session and propose the smallest valid update to CLAUDE.md. The goal is not to remember everything. The goal is to preserve only rules that improve future sessions while keeping the rule set small.

This skill works standalone. It can learn from ordinary sessions or from sessions shaped by self-improving-prompt.

When paired together:

  • self-improving-prompt shapes task framing and execution behavior
  • self-improving-session reviews the resulting session and extracts durable workflow rules

This skill should learn from behavior patterns, corrections, and repeated outcomes, not from storing the refined prompt text itself.

Security and Runtime

  • Instruction-only skill; no bundled scripts or external services required
  • No credentials, API keys, or network access required for normal use
  • Does not modify system configuration; may propose writing to CLAUDE.md files after user confirmation
  • Optional session-end automation belongs in README only and is not required for core skill behavior

Quick Reference

SignalAction
Explicit user correctionAdd or update a [stable] rule immediately
Explicit durable project ruleAdd as [stable] project rule
Repeated preference seen 2 times across meaningfully different tasksAdd as [tentative]
Repeated preference seen 4 times across multiple task contextsUpgrade to [stable]
One-off scenario-specific choiceSkip
Full prompt textNever store
Code facts, file paths, temporary stateNever store
Nothing worth learningSay so directly

Core Principle

Prefer under-learning to over-learning. A noisy CLAUDE.md harms future sessions more than a missed weak signal. The best outcome is often:

  • no change, or
  • one compact replacement that improves existing guidance without increasing rule count

Step 1: Scan the Session

Look for two categories:

A. Workflow preferences and corrections

  • Explicit user corrections
  • Repeated output-format preferences
  • Collaboration-flow preferences
  • Tool-usage preferences
  • Repeated self-improving-prompt workflow choices

Only treat a signal as durable if it appears reusable across tasks.

B. Project rules and conventions

  • Coding conventions
  • Architecture decisions
  • Tech-stack preferences
  • Testing and deployment rules
  • Team or repo-specific collaboration conventions

Step 2: Filter Noise

Skip:

  • One-off debugging details
  • Temporary workarounds
  • Facts already derivable from code
  • Rules already documented clearly elsewhere
  • Full prompts produced by self-improving-prompt
  • Generic praise such as "perfect" or "yes exactly" unless it clearly confirms a reusable workflow rule

Do not learn courtesy language as a durable preference. See references/rule-quality.md for what counts as a strong, reusable rule versus noise.

Step 3: Classify Scope

Choose the destination by scope:

  • Cross-project workflow rules -> ~/.claude/CLAUDE.md
  • Project-specific engineering conventions -> project CLAUDE.md
  • Temporary lessons or one-off incident notes -> separate task notes, not CLAUDE.md

Do not mix personal workflow rules into a project convention section.

Step 4: Apply Confidence Rules

Use one consistent threshold:

  • Explicit correction or explicit permanent instruction -> [stable]
  • Same reusable preference observed 2 times across meaningfully different tasks -> [tentative]
  • Same reusable preference observed 4 times across multiple task contexts -> [stable]

If the evidence is weaker than that, do not learn it.

Step 5: Merge Carefully

  • Deduplicate rules with the same meaning
  • Merge wording variants into one concise rule
  • Do not let a new [tentative] overwrite an existing [stable]
  • Only explicit correction can rewrite an existing [stable]
  • Keep the total rule set compact
  • Prefer compressing or replacing low-quality rules rather than appending near-duplicates
  • Prefer replacing multiple weaker rules with one stronger rule when possible
  • If existing rules already cover the behavior, propose no change

Rule Budget

To prevent CLAUDE.md bloat:

  • Keep global workflow rules under about 20 bullets
  • Keep project-specific convention rules under about 15 bullets unless the project genuinely requires more
  • If a section grows too large, merge or compress instead of appending
  • A single session should usually propose no more than 3 new rules unless the user explicitly asks for broader guidance cleanup
  • If the target CLAUDE.md section is already over budget, compact first and do not append new rules unless the user explicitly approves
  • Zero new rules is a normal and healthy outcome

Confidence Markers

  • [tentative]: observed twice and likely reusable, but not well validated yet
  • [stable]: explicitly stated or validated repeatedly
  • [corrected: YYYY-MM-DD]: old rule superseded by explicit user correction

Example:

- Prefer concise final answers by default [stable]
- Show refined prompts only when refinement materially improves execution [stable]
- Write scope explicitly for risky code tasks [tentative]
- ~~Always use popup confirmation~~ -> Use compare-first only when refinement adds substantial value [corrected: 2026-04-14]

Event Consumption from self-improving-prompt

If self-improving-prompt emits abstract events, use them as weak evidence only.

Examples:

  • choose_refined
  • choose_original
  • explicit_no_compare
  • explicit_compare_first

Rules:

  • A single event is not enough to create a durable rule unless paired with an explicit verbal instruction
  • Repeated events may support a [tentative] or [stable] rule using the thresholds above
  • The refined prompt may have shaped the session, but the refined prompt text itself should not be stored as a durable rule
  • Never store the refined prompt text itself

Confirmation Before Writing

By default, show the user:

  • new rules to add
  • existing rules to update
  • target file

Then wait for confirmation before writing.

Skip confirmation only when:

  • the user explicitly says to update directly, or
  • the skill is running automatically at session end with prior permission to write

If interactive confirmation is unavailable, fall back to plain-text confirmation.

Output Format

When writing rules:

  • Use concise markdown bullets
  • Separate Global Workflow Rules from Project Conventions
  • Keep each rule broadly reusable
  • Include a confidence marker at the end
  • Prefer the smallest valid update: no change, replacement, merge, or at most a few additions

Before adding a rule, validate it against references/rule-quality.md.

Notes

  • Do not store secrets, passwords, tokens, or sensitive personal data
  • Do not store full prompt text
  • Do not store temporary task state
  • If there is nothing durable to learn, say so plainly

Optional session-end automation examples are documented in README.md. They are convenience setup, not a requirement of the skill itself.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

72.51%
按下载量换算959

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills