meta-skill-loop
Feedback and version history for agent skills. Use when the user asks to log or record feedback on a skill ("log feedback on pr-review", "feedback on grill-me", "record this for the skill"), to refine or improve a skill from its feedback, to see their skills' status or open feedback, to see a skill's versions or what changed, to undo a change or go back to a version, to keep or discard edits to a skill, to update a skill from upstream, to send a skill change upstream as an issue or pull request, to add or stop managing skills, or says "meta-skill-loop" or "msl". Log feedback only when the user explicitly asks to; don't suggest logging feedback otherwise.
- License 许可
- MIT
- 最近更新
- 2026-09-29
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- meta-skill-loop
- description
- Feedback and version history for agent skills. Use when the user asks to log or record feedback on a skill ("log feedback on pr-review", "feedback on grill-me", "record this for the skill"), to refine or improve a skill from its feedback, to see their skills' status or open feedback, to see a skill's versions or what changed, to undo a change or go back to a version, to keep or discard edits to a skill, to update a skill from upstream, to send a skill change upstream as an issue or pull request, to add or stop managing skills, or says "meta-skill-loop" or "msl". Log feedback only when the user explicitly asks to; don't suggest logging feedback otherwise.
02 资源文件 4
- 参考文档references/contribute.md3.4 KB
- 参考文档references/feedback.md4.2 KB
- 参考文档references/refine.md3.3 KB
- 脚本scripts/msl54.9 KB
03 SKILL.md 正文
meta-skill-loop
meta-skill-loop keeps feedback and a version history for the user's skills. Skills stay where their tools load them (~/.cursor/skills, ~/.agents/skills, ~/.claude/skills, a repo's .cursor/skills, …), and meta-skill-loop never edits a skill except to apply a change the user approved. Its own data lives in ~/.meta-skill-loop/.
All bookkeeping goes through one script, msl. Run it as ~/.meta-skill-loop/bin/msl <command>, exactly like that (not through bash), so one approval in the tool covers every call. Just run it: don't check for files first.
Only if it fails because that file doesn't exist (the very first use), set it up once by trying these in order until one works, then run your command again:
bash ~/.agents/skills/meta-skill-loop/scripts/msl init
bash ~/.claude/skills/meta-skill-loop/scripts/msl init
bash ~/.cursor/skills/meta-skill-loop/scripts/msl init
If none works, use the folder your tool loaded this skill from: bash <that folder>/scripts/msl init. If init fails because it can't write (a sandbox), don't try the others: see the last rule below.
Versions work like git. Changes in a skill folder are live edits until msl keep makes them the next version (v2, v3, …). msl discard throws them away; they're saved, and msl restore brings them back. A skill installed with the skills CLI also tracks the published upstream versions, and updates are merged into the user's version instead of overwriting it. Each skill has one real folder; other tool folders link to it, so an edit reaches every tool.
Log feedback: "log feedback on pr-review: …", "feedback on grill-me: …", "record this for the skill"
Read references/feedback.md in this skill's folder (usually ~/.agents/skills/meta-skill-loop/references/feedback.md) and follow it. Only when the user asks: don't log feedback, or suggest it, just because the user corrected a skill.
Refine: "refine pr-review", "improve grill-me from its feedback"
Read references/refine.md in this skill's folder (usually ~/.agents/skills/meta-skill-loop/references/refine.md) and follow it.
Send upstream: "send this upstream", "open an issue for pr-review's author", "make a PR with my change"
Read references/contribute.md in this skill's folder (usually ~/.agents/skills/meta-skill-loop/references/contribute.md) and follow it.
Status: "meta-skill-loop", "status", "which skills have feedback?"
Run msl status and summarize it in a few lines: each skill's version (v3* means v3 plus live edits), open feedback, and state.
- Every note under the table names the command that deals with it. Offer that command, and run it only when the user agrees.
- Suggest "refine <skill>" when a skill has 2+ open entries.
- If unmanaged skills are listed, offer to add them, once per conversation.
- Live edits (
changed): showmsl diff <name>, then ask whether to keep or discard them. Before keeping, checkmsl feedback list <name>. If the edits address open entries, confirm with the user and add--fixes fb-…,fb-….
Add: "add my skills", "manage grill-me"
- Run
msl addwith no name. It lists installed skills;newmeans not managed yet. - Confirm which to add. Suggest the ones the user actually uses, not every skill on disk.
- Run
msl add <name>for each (ormsl add <path>for a specific folder). The skill is not modified. msl reports the kind:skills-cli(installed by theskillsCLI, so it has upstream updates) orlocal(everything else, including skills inside a git repo, whose pulls simply show up as changes to keep). - If msl says the skill is also a separate copy in another tool's folder, ask whether to link it so one edit reaches every tool:
msl link <name>. The copy is set aside in~/.meta-skill-loop/archive/, not deleted.
Versions: "show versions of pr-review", "what changed?", "compare v2 and v4"
msl history <name>lists versions with their date, what changed, the feedback each one fixed, and how much feedback was logged against each. A version that attracts new complaints is a likely regression.- To compare:
msl diff <name> v2 v4compares two versions;msl diff <name> v2compares v2 with the live folder;msl diff <name>shows the live edits;msl diff <name> --upstreamshows the user's refinements compared with upstream.
Go back: "pr-review got worse", "undo v4", "go back to v2"
Run msl history <name> and confirm with the user which version. Then:
- Undo one change:
msl revert <name> v4. Everything else stays, including later upstream updates. Prefer this when the user blames one change. - Go back to a version:
msl rollback <name> v2. If it says this also brings back older upstream text, tell the user, and only rerun with--yesif they agree.
Either way the result is a new version, and the feedback the undone versions fixed is reopened. If the user asks to record why the change was worse, log it as feedback on that version (Log feedback, with --version v4), so the next refine knows what to avoid.
Updates: "is there an update for grilling?", "update grilling", or an upstream note in status
Just checking: msl update <name> --check records the latest upstream and shows what it changes. Nothing live changes. Summarize it and ask whether to take it.
Taking it: run msl update <name>. It fetches the latest version with the skills CLI first (only skills-cli skills have updates; changes to any other skill, such as a git pull, show up as live edits).
- No refinements: the update is applied directly as the next version. Report it.
- Refinements: msl prepares a merge without touching the live skill. Show
msl diff <name> --merge, which is what the skill would become. - Conflicts listed: edit the files in
~/.meta-skill-loop/skills/<name>/merge/to resolve each<<<<<<</>>>>>>>section by intent (msl history <name>and the feedback say why each refinement exists). Show the result.
Then wait for the user's decision:
- Approve:
msl update <name> --apply -m "<summary>". Add--fixes fb-…for feedback that the new upstream fixes. - Not now:
msl update <name> --abort. Their version stays live. - Take upstream as published, dropping the refinements:
msl update <name> --take-upstream. The refinements stay in history.
Stop managing: "remove grill-me from meta-skill-loop"
msl remove <name> archives its versions and feedback. The skill itself is untouched.
Rules
- Never edit a skill without the user's approval. Never move, delete, or rename a skill folder.
- Don't search the disk for skills:
msl addlists them, andmsl path <name>gives a managed skill's folder. - Never edit files in
~/.meta-skill-loop/by hand. Usemsl. The one exception is resolving a pending merge in…/merge/. ~/.meta-skill-loopholds private work: feedback and copies of conversations. Never copy it anywhere public.- If
mslcan't write (for example, a sandbox blocks writes outside the project), show the command you would have run and ask the user to allow it or run it themselves. In Codex, the user can allow it once in~/.codex/config.toml:writable_roots = ["<their home>/.meta-skill-loop"]under[sandbox_workspace_write].