superself
它能做什么
这个工具可以帮助整理和跟踪项目进度。它会记录已经确定的事项、完成的工作以及做出的决策,确保下次工作能从上次停下的地方接着做。
适用场景
- ✓项目使用 Superself 来管理项目状态时。
- ✓如果项目的 `AGENTS.md` 或 `CLAUDE.md` 文件中有 `<!-- superself:begin` 代码块。
- ✓运行 `self setup` 命令能显示项目信息时。
技能链接
https://github.com/wshobson/agents/blob/main/plugins/superself/skills/superself/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“项目 X 的进展如何?最近做了哪些决策?”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会读取项目当前的状态(目标、决策、工作内容),你还可以添加新任务、记录已完成的工作并确认决策。所有内容都会保存在历史记录中,方便日后查阅。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Superself
Superself is an Apache-2.0 CLI (npm install -g superself@0.6.1, Node 22.12+) that
version-controls a project's state — goals, decisions, work units, reports —
as an append-only event log in a git repository separate from the code. The
state is derived on demand, so nothing in it is hand-maintained. This skill
tells an agent how to read and write that state through the self CLI. It is
maintained by the Superself authors: https://github.com/fxylabs/superself
When this skill applies
- The project's
AGENTS.mdorCLAUDE.mdcontains a block between<!-- superself:beginand<!-- superself:end -->, orself setupprints the workspace, project, and store this directory resolves to. - Skip the skill when
self --versionfails: the project does not use Superself, and nothing below should be invented by hand. This skill is written againstsuperself@0.6.1; a different major or minor version may have moved a verb or flag, so checkself <command> --helpbefore relying on one.
Session start
- Run
self contextand treat its output as current truth: the goal, active decisions and conventions, open work, recent reports. It is folded from the log, never written by hand. - Something missing from context was placed out of the rendered set on
purpose;
self search <query>finds live records context left out, andself work show <id>prints one unit's full brief and report history.
While working
- Substantive work attaches to a work unit. Create one with
self work add "<required outcome>"— the outcome is what must become true, not the task — thenself work start <id>.startreads the brief and records that this session picked the unit up; if another session holds it, the CLI says who and since when and does not refuse. Judge and proceed. - After committing, report progress:
self report <id> "<what happened>". The current HEAD commit is attached as evidence automatically;--evidence <commit|note>attaches something else,--file <path>attaches a longer brief. - Record a decision the user confirmed:
self decide "<text>" --why "<reason>". Use--proposedwhen the user has not confirmed it. One decision per event. - Blocked?
self work block <id> --on decision|dependency|external --why "...". Superseded or moved?self work retire <id> --why "..." [--successor <id>]. Never mark such a unit done, and never leave it falsely blocked. - Found a gap between an objective and the current state? Propose the work with
self work proposeand its brief; the user accepts or declines it. - The user approved a next step or a continuation? Register it at once with
self work addand the context behind it. A plan that lives only in the conversation is lost when the conversation ends.
Closing
self work done <id>closes a unit only when a report carries a commit or an artifact, or the done itself states what verifiably happened:self work done <id> --report "<what verifiably happened>". A bare claim is refused, and declared criteria gate it until each is covered.- A record's text is immutable once confirmed. Correct it by restating:
--supersedes <id>on any add verb records the new wording and keeps the lineage.retractwithdraws a record with nothing replacing it.
Rules that keep the state trustworthy
- Records — events, decisions, reports, conventions — are written in English so whoever opens them next can read them; answer the person in their own language.
- A branch reaches main through a pull request: PR review and CI own merge control. Superself owns context and the work graph, not the merge gate.
- Never hand-edit generated state files or anything under
.superself/. - In a project without a superself block, run
self setupfirst. If it resolves the directory to a registered project, ask the user once whether to runself connect, which writes the managed block intoAGENTS.mdorCLAUDE.md. If it resolves no project, ask once whether to register it withself project init. Never register or connect a project on your own.
Going deeper
self --help lists every verb; self <command> --help prints one command's
flags without touching state. Topic guides ship with the CLI:
self help agents— how a session drives this CLI, start to finishself help context— whatself contextrenders, and why something is missing from it
…
常见问题
什么是 Superself?
它是一个以事件日志的形式管理项目状态的工具,状态数据与项目代码是分开存放的。
如果我没有安装 Superself 怎么办?
如果运行 `self --version` 命令失败,说明该项目没有使用 Superself,这时就不应该使用这个工具。
我可以手动编辑状态文件吗?
不可以。为了保证历史记录的完整性,请不要手动修改生成的状态文件,也不要改动 `.superself/` 文件夹中的任何内容。
详情
作者的原始描述
Use when a project keeps its state in Superself (a `<!-- superself:begin` block in AGENTS.md or CLAUDE.md, or `self setup` resolves the directory to a registered project): read `self context` at session start, attach work to a work unit, report with evidence, and record confirmed decisions so the next session picks up where this one left off.
repo: wshobson/agents
热度
- GitHub 星标
- 41k
- 排名
- #6797
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …