360 Secure SkillHub
360 安全技能中心

Skill AGI

通过向 learnings.md 追加单行经验,记录错误假设、项目约定和工具限制;在复杂任务前复查,定期清理重复或失效条目,并将高影响经验提升到持久配置中。

wubotvix
wubotvix
热度 81.79
最近更新 2026-05-17 12:33:33
分类:知识依赖:读写文件应用场景:笔记整理 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add skillagi
Metadata
name
skillagi
description
Remember mistakes across sessions. Append one-liner learnings, review before complex tasks, promote important ones.

Skillagi

Log mistakes and insights so you don't repeat them across sessions.

When to Log

Add a learning when you:

  • Fix a bug caused by a wrong assumption
  • Discover a project-specific convention (package manager, config, naming)
  • Get corrected by the user
  • Find a workaround for a tool/platform limitation
  • Waste time on an approach that doesn't work here

Format

Append one line to learnings.md (in this skill's directory):

- [YYYY-MM-DD] topic: what happened → what to do instead

Keep it to one line. If you need two sentences, you're over-explaining.

Examples

- [2026-02-21] pnpm not npm: Project uses pnpm workspaces → use `pnpm install`
- [2026-02-21] Docker M1: Base image has no ARM64 variant → add `--platform linux/amd64`
- [2026-02-21] test isolation: Shared DB state caused flaky tests → use transactions with rollback

When to Review

Before starting a complex task, read learnings.md and apply anything relevant. Don't review for trivial one-line changes.

When to Clean Up

Periodically (or when the file exceeds ~50 entries):

  • Delete entries that no longer apply (dependency upgraded, config changed)
  • Merge duplicates into a single entry
  • Promote critical entries that affect every session to a permanent location

Promotion

Move persistent, high-impact learnings out of this file and into durable config:

  • OpenClaw: Promote to workspace MEMORY.md, TOOLS.md, or AGENTS.md
  • Claude Code: Promote to project CLAUDE.md or auto-memory (~/.claude/projects/*/memory/)

Once promoted, delete the entry from learnings.md to avoid duplication.

Rules

  • No IDs, statuses, priorities, or tags. Just the one-liner.
  • No hooks or scripts. This is a passive reference file.
  • Append-only during a session. Clean up between sessions.
  • If unsure whether something is worth logging, skip it. Only log what would save future time.