monumentum
Govern durable lessons and self-improvements through the Monumentum standard. Use whenever you learn a lasting lesson about this repo (a command that fails and its working replacement, a convention, a fix for a broken skill or tool), whenever the user corrects you about repo behavior twice, whenever the user says "remember this", and near the end of a long session with unrecorded lessons. Never edit AGENTS.md, CLAUDE.md, memory files, skills, or tools directly in this workspace - propose a ChangeSet with the monumentum CLI instead.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-05
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- monumentum
- description
- Govern durable lessons and self-improvements through the Monumentum standard. Use whenever you learn a lasting lesson about this repo (a command that fails and its working replacement, a convention, a fix for a broken skill or tool), whenever the user corrects you about repo behavior twice, whenever the user says "remember this", and near the end of a long session with unrecorded lessons. Never edit AGENTS.md, CLAUDE.md, memory files, skills, or tools directly in this workspace - propose a ChangeSet with the monumentum CLI instead.
02 资源文件 2
- 脚本hooks/pretooluse_guard.py3.2 KB
- 脚本hooks/stop_reminder.py1.4 KB
03 SKILL.md 正文
The Loop: propose, don't edit
This workspace is governed by the Monumentum standard (.monumentum/). Files that steer
agents (AGENTS.md, CLAUDE.md, memory, skills, tools, agent config) are
monumentum-managed: direct edits are denied by a PreToolUse hook and detected
by monumentum verify in CI. Durable lessons travel as evidence-backed
ChangeSets instead.
When to propose
- You discovered a command, flag, or convention that future sessions need
(e.g.
npm installfails here,pnpm installworks). - The user corrected you about repo behavior, especially twice.
- A skill or tool script in this repo is broken and you know the fix.
- The user says "remember this" or asks to update AGENTS.md/CLAUDE.md.
Do NOT propose secrets, one-off task state, or anything you could not back with evidence.
How to propose (deterministic steps)
-
Write the change as a unified diff against the target file, e.g.
lesson.patch. Keep it minimal. -
Propose it:
monumentum propose --layer context --target AGENTS.md --patch lesson.patch \ --rationale "<one sentence: what breaks, what works>" \ --producer claude-code --trigger reflectionLayers:
context(AGENTS.md, CLAUDE.md, memory),capability(skills, tools),architecture(agent config). The command prints the ChangeSet id (cs-...). -
Attach evidence. The cheap, strong form is a command transcript: run the failing command, note the exit code, and record the check that must pass after the change. Write
transcript.json:{ "check_cmd": "<command that exits 0 once the lesson is applied>", "runs": [ {"phase": "before", "exit_code": 1}, {"phase": "after", "exit_code": 0} ] }And an evidence record
ev.json:{ "id": "ev-001", "kind": "eval", "grader": "independent", "format": "command-transcript", "summary": {"metric": "task_pass", "before": 0, "after": 1, "n": 1} }Then:
monumentum evidence <cs-id> --record ev.json --artifact transcript.json -
Gate and apply:
monumentum gate <cs-id> monumentum apply <cs-id> # only if gate printed GATE_APPROVEDExit code 2 from
gatemeans the change is queued for human review (capability and architecture changes always queue). Tell the user it is queued and stop; a human runsmonumentum approve <cs-id> --actor human/<name>. -
If anything is rejected, read the reason, fix the ChangeSet or the evidence, and propose again. Never work around the gate by editing the file directly.
Quick reference
monumentum status- queue and change statesmonumentum log- the journal (who changed what, when, why)monumentum rollback <cs-id>- one-command revert of an applied changemonumentum verify .- integrity check (journal chain + managed files)
04 同仓库更多 Skills
fix-lint
Run the bundled lint checker and report problems.
loop
Govern durable lessons and self-improvements through the Loop standard. Use whenever you learn a lasting lesson about this repo (a command that fails and its working replacement, a convention, a fix for a broken skill or tool), whenever the user corrects you about repo behavior twice, whenever the user says "remember this", and near the end of a long session with unrecorded lessons. Never edit AGENTS.md, CLAUDE.md, memory files, skills, or tools directly in this workspace - propose a ChangeSet with the agentloop CLI instead.
monumentum
Govern durable lessons and self-improvements through the Monumentum standard. Use whenever you learn a lasting lesson about this repo (a command that fails and its working replacement, a convention, a fix for a broken skill or tool), whenever the user corrects you about repo behavior twice, whenever the user says "remember this", and near the end of a long session with unrecorded lessons. Never edit AGENTS.md, CLAUDE.md, memory files, skills, or tools directly in this workspace - propose a ChangeSet with the monumentum CLI instead.