程序员努力
AI导航AI编程实战PromptMCP市场Skills市场

程序员努力

AI 编程资源库 - 聚合 AI 编程教程、提示词、MCP 与 Skills 资源

内容栏目

  • AI导航
  • AI编程实战
  • Prompt
  • MCP市场
  • Skills市场
  • 全站搜索

教程分类

  • 进阶技巧
  • 入门指南
  • 最佳实践
  • Claude Code
  • Cline教程
  • GitHub Copilot
  • Cursor教程
  • 提示词工程

关于

  • 关于我们
  • GitHub

© 2026 程序员努力. All rights reserved.

冀ICP备15004808号-7

首页教程PromptMCPSkills
← 返回Skills市场
s

self-learning-skills

self-learning-skills中频

by Kulaxyz

综合评分详见右侧面板

A self-improving skill for AI coding agents (Claude Code, Cursor, AGENTS.md): recognize a hard-won golden path in a session and harvest it into a reusable skill/rule for next time.

学习

安装此 Skill

一键安装(GitHub 托管)
git clone https://github.com/Kulaxyz/self-learning-skills ~/.claude/skills/self-learning-skills

简介

self-learning-skills 是一个面向 AI 编码代理(如 Claude Code、Cursor 等)的自我改进技能,能够在会话中识别并沉淀可复用的“黄金路径”(golden path),将其持久化为技能或规则,供后续会话自动加载。它属于元技能,不仅记录成功流程,也记录失败经验,从而避免重复踩坑,提升开发效率。支持通过 npx、插件或手动方式安装,兼容多种支持 A

SKILL.md 预览

self-learning-skills

A self-improving skill for AI coding agents. Works with Claude Code, Cursor, and any agent that reads an AGENTS.md / standing-instructions file.

Every session you do hard debugging or rediscover the same thing — how do I reach the prod DB? where do the creds live? what's the deploy command? how do I verify this live? — and that hard-won knowledge evaporates when the session ends. The next session starts from zero and re-learns it.

self-learning fixes that. It teaches your agent to recognize the moment it has just earned a reusable golden path and persist it where the tool will auto-load it next time — so the next session starts already knowing the route instead of rediscovering it.

It's a meta-skill: it doesn't do the work, it captures how the work got done — including the failures, since skipping a known dead-end next session is often worth more than the win itself.

The loop (same everywhere)

  1. Recognize the moment — a task that only worked after several tries, a non-obvious command, a project fact you didn't know up front, an operational workflow likely to recur, or you simply saying "remember this".
  2. Capture it, no prompt needed — it acts on the cue immediately, picks the scope/name itself, and tells you afterward. The procedure is captured (not a one-off answer), plus a "what didn't work" note.
  3. Reuse — next session the entry loads automatically, by skill/rule description or because the instructions file is always read.

What differs per tool is only where knowledge is persisted and how it's auto-loaded:

| Tool | Persists golden paths to | Auto-loads via | |---|---|---| | Claude Code, Codex, Agent Skills clients | a new skills/<name>/SKILL.md | skill description matching | | Cursor | a new .cursor/rules/learned/<name>.mdc | rule description / globs | | Zed, Aider, Gemini CLI, … | AGENTS.md (or project notes/memory) | always-read instructions |

Install

npx — recommended (works with 70+ agents)

Uses the community skills CLI, which installs into whatever agents it detects — Claude Code, Cursor, Codex, Cline, OpenCode, and more:

npx skills add kulaxyz/self-learning-skills                 # this project (auto-detects agents)
npx skills add kulaxyz/self-learning-skills -g              # global — all your projects
npx skills add kulaxyz/self-learning-skills -a claude-code  # a specific agent

Try it once without installing:

npx skills use kulaxyz/self-learning-skills --skill self-learning | claude

Claude Code plugin

/plugin marketplace add kulaxyz/self-learning-skills
/plugin install self-learning@self-learning-skills

Manual

<details> <summary>Copy the files into place yourself</summary>
git clone https://github.com/kulaxyz/self-learning-skills

# Claude Code — global (or into a project's .claude/skills/ to share via git)
cp -R self-learning-skills/skills/self-learning ~/.claude/skills/

# Cursor — auto-loads .cursor/rules/ (harvested rules land in .cursor/rules/learned/)
mkdir -p .cursor/rules
cp self-learning-skills/.cursor/rules/self-learning.mdc .cursor/rules/

# Any AGENTS.md agent (Codex, Zed, Aider, Gemini CLI, …)
curl https://raw.githubusercontent.com/kulaxyz/self-learning-skills/main/AGENTS.md >> AGENTS.md
</details>

Triage: skill, memory, or skip?

It won't bloat your config with one-liners. Each lesson is routed:

| Lesson | Where it goes | |---|---| | A multi-step, reusable procedure/workflow | a new skill / rule | | A single fact or one-line correction | lightweight notes/memory (e.g. a MEMORY.md) | | A genuine one-off | skipped |

Promotion rule (don't enshrine guesses)

Triage decides granularity; the promotion rule decides confidence. A skill is authoritative — the next session trusts it without re-deriving it — so a session is only promoted to a skill when all three hold:

  1. A passing check — the path was actually verified (a test passed, a clean exit, a green build, a reproduced repro). "Seemed to work" doesn't count.
  2. A named failure pattern — the failure it avoids or diagnoses, named.
  3. At least one ruled-out dead-end — a concrete approach tried and eliminated.

Miss any one and it stays a tentative memory note (or is skipped) rather than a skill. This keeps confident-but-unverified guesses out of the skill set. (Promotion rule suggested by community feedback.)

Safety

Harvested skills/rules get committed and shared, so this is built to never write secret values — no passwords, tokens, connection strings, or API keys. It records only where to find a secret (env var name, a client/selector function, an MCP tool, a secret manager). Reproducing a secret into a shared file leaks it.

Repo layout

self-learning-skills/
├── AGENTS.md                          # generic, cross-tool version of the loop
├── skills.sh.json                     # registry manifest for `npx skills` / skills.sh
├── .claude-plugin/
│   └── marketplace.json               # Claude Code plugin manifest
├── skills/
│   └── self-learning/                 # Agent Skills standard (Claude Code + clients)
│       ├── SKILL.md                   # recognize-the-moment + harvest procedure
│       ├── references/
│       │   └── skill-authoring.md     # condensed spec the writer loads to author a good skill
│       └── assets/
│           └── SKILL.template.md      # fill-in template for harvested skills
└── .cursor/
    └── rules/
        ├── self-learning.mdc          # Cursor adapter (always-applied rule)
        └── learned/                   # harvested Cursor rules land here

Built on the open Agent Skills standard.

License

MIT © kulaxyz

统计信息

中频

使用频率(自动计算)

43

Fork

MIT

开源协议

2026/7/1

更新

综合评分

2.8
社区认可
3
使用热度
3
文档完整
3
功能丰富
1
维护活跃
4

基于社区认可、使用热度、文档完整度、功能丰富度、维护活跃度自动计算

标签

自我学习AI编码代理技能复用知识沉淀Claude CodeCursor

链接

GitHub

相关Skills

a

agent-rules-books

agent-rules-books

AGENTS.md rules / skills for AI coding agents: Codex, Cursor & Claude Code. Inspired by Clean Code, Refactoring, DDD, Clean Architecture and DDIA programming books.

代码生成中频
a

awesome-genomic-skills

awesome-genomic-skills

A curated list of awesome genomics and bioinformatics agentic skills, MCPs and benchmarks for Claude Code, Copilot, Codex, Cursor, Gemini CLI, etc

学习中频
C

Claude-Code-Everything-You-Need-to-Know

Claude-Code-Everything-You-Need-to-Know

A practical Claude Code guide with clear mental models and copy-paste examples — setup, prompt engineering, slash commands, skills, hooks, subagents, agent teams, and MCP servers.…

学习中频
b

book-to-skill

book-to-skill

Turn any technical book PDF into a Claude Code skill — ready to study, reference, and use while you work.

学习中频