360 Secure SkillHub
360 安全技能中心

Learning Capture

将用户纠正、工具或命令失败、项目陷阱和功能请求整理成项目内的短笔记,写入 .learnings/ 下的 Markdown 文件;要求脱敏、可人工复查,重复问题先提议长期规则并等待用户批准,不擅自改动代理规则或配置。

brasco05
brasco05
热度 44.78
最近更新 2026-05-11 17:39:16
分类:知识依赖:读写文件应用场景:笔记整理 / 工作流 / 模板

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add self-improving-agent1
Metadata
name
learning-capture
description
Capture user corrections, failed tool runs, recurring gotchas, and useful lessons as short structured notes. Use when a mistake or workflow learning should be remembered for future work. Keep entries redacted, human-reviewable, and project-scoped. Do not change agent rules or configuration without explicit user approval.

Learning Capture

Use this skill to turn mistakes and corrections into small reusable notes.

The goal is simple: if the same issue appears again, the agent can check the note before repeating the mistake.

Core Rules

  • Write short notes, not raw transcripts.
  • Redact credentials, auth tokens, private messages, customer data, and full command output.
  • Prefer project-scoped .learnings/ files.
  • Do not edit AGENTS.md, SOUL.md, CLAUDE.md, hooks, or config unless the user explicitly approves.
  • Treat every promotion to long-term instructions as a proposal first.

When To Use

Situation Action
User corrects the agent Add a correction note
Tool/command fails unexpectedly Add an error note with redacted summary
A project gotcha is discovered Add a learning note
Same issue repeats Link the related notes and propose a durable rule
User requests a missing capability Add a feature-request note

Setup

Create these files in the project root if they do not exist:

.learnings/LEARNINGS.md
.learnings/ERRORS.md
.learnings/FEATURE_REQUESTS.md

Use normal file-writing tools. Never overwrite existing notes.

Learning Note Format

## LRN-YYYYMMDD-001 — short-title

**Logged:** ISO timestamp
**Priority:** low | medium | high
**Status:** pending | resolved | proposed
**Area:** frontend | backend | infra | tests | docs | workflow

### Summary
One sentence.

### What happened
Short redacted context.

### Better next time
Concrete behavior to apply in future.

### Tags
- tag-one
- tag-two

Error Note Format

## ERR-YYYYMMDD-001 — short-title

**Logged:** ISO timestamp
**Priority:** low | medium | high
**Status:** pending | resolved

### Summary
What failed, in one sentence.

### Redacted Evidence
Minimal safe excerpt. No credentials, tokens, private data, or full logs.

### Likely Cause
If known.

### Fix / Next Step
Concrete action.

Feature Request Format

## FEAT-YYYYMMDD-001 — short-title

**Logged:** ISO timestamp
**Status:** proposed

### Requested Capability
What the user wanted.

### Why It Matters
What problem it solves.

### Possible Implementation
Short option list, if useful.

Promotion Rule

If a note is broadly useful:

  1. Propose the distilled rule to the user.
  2. Wait for approval.
  3. Only then update durable project or agent instructions.
  4. Mark the original note as proposed or resolved with a link to the approved location.

Output

When done, respond briefly:

Logged: .learnings/LEARNINGS.md#LRN-YYYYMMDD-001

If no durable learning exists, do nothing.