Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计异常

self-improving-agent自我改进 Agent

Agent Skill

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

总安装

9,253

周安装

378

GitHub Stars

公开资料未说明

下载量

2,994
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:self-improving-agent(自我改进 Agent)
来源仓库:https://github.com/grail-computer/self-improving-agent
仓库路径:skills/self-improving-agent
安装命令:
npx skills add https://github.com/grail-computer/self-improving-agent --skill self-improving-agent
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/grail-computer/self-improving-agent --skill self-improving-agent

简介

self-improving-agent 用于记录任务执行中的错误、用户纠正和经验缺口。

  • 适合让 Agent 持续沉淀问题、修正实践并提升自我优化能力。
  • 通过 npx skills add 从 GitHub 仓库安装并使用。
  • 安装前应确认权限范围、维护状态及是否涉及联网或文件操作。
  • 建议参考原始 README 了解具体实现细节和使用限制。

SKILL.md

Self-Improving Agent

When to use this skill: - After completing a significant task (post-task reflection) - When you notice yourself repeating a multi-step workflow - When a human corrects your behavior and you need to persist the correction - When the codebase map in AGENTS.md is stale - At the end of a working session

Step 1: Diagnose What Needs Improving

Ask yourself these questions after completing work:

  1. Did I wander? Did I spend time searching for files that should have been in the codebase map?

- → Update the Codebase Map in AGENTS.md

  1. Did I get corrected? Did the human tell me to do something differently?

- → Add the correction to Local Norms, Guardrails, or Patterns & Gotchas in AGENTS.md

  1. Did I repeat a workflow? Did I follow a multi-step procedure that I've done before (or will likely do again)?

- → Create a new skill (see Step 3 below)

  1. Did something surprise me? Did I discover a gotcha, a deprecated API, or a non-obvious coupling?

- → Add it to Patterns & Gotchas in AGENTS.md

  1. Is the AGENTS.md stale? Do the norms, entry points, or conventions no longer match the actual codebase?

- → Update the outdated sections now

If none of these apply, no action is needed. Don't create artifacts for the sake of it.


Step 2: Update AGENTS.md

When updating AGENTS.md, follow these rules:

Codebase Map Updates

  1. Read the current map in AGENTS.md.
  2. Use find or ls (not recursive full-tree) to see the actual top-level structure.
  3. Update only the parts that have changed. Don't rewrite the whole map.
  4. Focus on: entry points, directory roles, config files, test locations.

Adding Norms or Guardrails

  1. Write the rule as a short, imperative statement — one line if possible.
  2. Place it in the correct section:

- Local Norms → How to build, test, run, or style code in this repo - Guardrails → What the agent must NEVER do - Patterns & Gotchas → Non-obvious discoveries about the codebase

  1. If a correction contradicts an existing entry, update the existing entry rather than adding a duplicate.

Quality Checks

  • Keep entries concise. Agents read this every session — brevity compounds.
  • Remove placeholder/example entries (italicized) once real entries exist.
  • Don't add generic advice. Every entry should be specific to this repo.

Step 3: Create a New Skill

Use this procedure when you've identified a repeatable workflow worth capturing.

Decision: Is This a Skill or an AGENTS.md Entry?

Is it a multi-step procedure with a clear output?
  → YES → Skill
  → NO  → AGENTS.md entry

Is it specific to HOW this repo works (norms, navigation)?
  → YES → AGENTS.md entry
  → NO  → Skill

Am I unsure?
  → Start as an AGENTS.md entry. Promote to skill if it grows.

Creating the Skill

  1. Choose a name. Use a verb-noun pattern reflecting the job: debug-ci, draft-release-notes, run-migration, etc.
  2. Create the folder and file: skills/<skill-name>/SKILL.md
  3. Write the SKILL.md with this structure: --- name: <skill-name> description: <one-line description of what job this skill does> --- # <Skill Name> > **When to use:** <clear trigger condition> ## Steps 1. <Step 1 — be specific and imperative> 2. <Step 2> 3.... ## Output Contract <What "done" looks like. Be specific about format, location, and quality.>
  4. Key principles for good skills:

- Frame around a job to be done, not a tool ("debug CI failure", not "use grep") - Make the trigger clear — when should an agent reach for this? - Define the output contract — what does "done" look like? - Include examples of good output as assets if helpful (put in skills/<name>/examples/) - Keep steps imperative and specific — avoid vague instructions

  1. Add the new skill to the skills table in AGENTS.md: | [<skill-name>](skills/<skill-name>/SKILL.md) | <purpose> | <trigger> |

Adding Scripts or Assets to a Skill

If a skill needs deterministic execution (not just LLM judgment), add scripts:

skills/<skill-name>/
├── SKILL.md          # The playbook (always required)
├── scripts/          # Helper scripts for deterministic steps
│   └── validate.sh
└── examples/         # Reference outputs showing "good" quality
    └── example-output.md

Reference these from SKILL.md: "Run scripts/validate.sh to verify the output."


Step 4: Decide Scope — Repo-Local vs Global vs Shared

Does this skill only matter for THIS repo?
  → Keep it in skills/ within this repo (repo-local)

Have I felt this pain in another repo too?
  → Promote to ~/.agent/skills/<name>/ (machine-global)
  → Copy the skill folder there

Does my team keep repeating this workflow?
  → Promote to a shared repo or registry (shared)
  → Move the skill folder into the team's shared skills repo

Promotion Checklist

When promoting a skill from repo-local to global:

  1. Remove any repo-specific paths or references from the SKILL.md.
  2. Make the instructions generic enough for any project.
  3. Test it works without the original repo's context.
  4. Keep the repo-local version if it has repo-specific customizations.

Step 5: Validate the Improvement

After making any changes (AGENTS.md update or new skill):

  1. Re-read the updated file. Does it read clearly? Would a fresh agent session benefit from it?
  2. Check for contradictions. Does the new entry conflict with anything existing?
  3. Check for bloat. Is this file getting too long? If AGENTS.md exceeds ~200 lines, consider:

- Archiving old gotchas that are no longer relevant - Moving detailed procedures into skills - Summarizing verbose entries

  1. Commit the changes with a clear message: docs: update AGENTS.md with <what you learned> or feat: add <skill-name> skill for <job description>

Anti-Patterns to Avoid

❌ Don't✅ Do Instead
Add generic advice ("write clean code")Add repo-specific rules ("use pnpm, not npm")
Create skills for one-off tasksCreate skills for tasks you'll do again
Let AGENTS.md grow unboundedPrune stale entries, move procedures to skills
Write vague skill steps ("figure out what's wrong")Write specific steps ("run npm test, read the first failing assertion")
Create a skill around a toolCreate a skill around a job to be done
Start with shared/global skillsStart repo-local, promote when pain repeats

Quick Reference: The Compounding Loop

Work on task
    ↓
Complete task
    ↓
Reflect: Did I wander? Get corrected? Repeat a workflow? Discover a gotcha?
    ↓
    ├── Navigation miss     → Update Codebase Map
    ├── Behavior correction → Add to Local Norms / Guardrails
    ├── Repeated workflow   → Create a Skill
    ├── Surprise discovery  → Add to Patterns & Gotchas
    └── Nothing notable     → Move on
    ↓
Next task starts from a better baseline
*"The most valuable skill is the habit of watching yourself work."* Each improvement makes future improvements easier. That's how agents compound.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.16%
按下载量换算1,023

Claude

30.12%
按下载量换算902

Cursor

18.48%
按下载量换算553

Gemini CLI

7.99%
按下载量换算239

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills