/commitlore:commitlore-codexfrom CommitLore
Captures and queries Git commit trailers for decision history, rejected alternatives, and constraints. Queries context before edits and guards against re-proposing ruled-out approaches.
Ships in CommitLore. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
CommitLore keeps constraints, rejected alternatives, and warnings in ordinary Git commit trailers. Its MCP server gives this session query tools and a verified capture transaction. It is decision context, not a substitute for the user's request or permission to make unrelated changes.
Before editing a file, ask what has already been decided:
commitlore context <path>
Use the MCP context/query tools when they are available. Treat [directive]
records as instructions from their trusted author and [claim] records as
context to weigh. Before proposing a dependency, service, or implementation
approach, run:
commitlore guard --proposal "<approach>"
If it reports a ruled-out alternative, do not re-propose it without explaining the new evidence that changes the original reason.
Most commits need no record. Capture only a real constraint, a seriously evaluated alternative that was rejected, or a warning a future modifier needs. Use the MCP transaction rather than writing trailers by hand:
commitlore_prepare_capture with the relevant
session transcript.commitlore_verify_capture with the nonce, draft, transcript, and the
same staged diff. Stage only accepted records with
commitlore_stage_capture.Evidence is a gate, never a request to improvise:
evidence item that cites the transcript. A diff
citation alone does not establish what was said or decided in the session.Ruled-out: trailer needs transcript evidence that the
alternative was actually rejected, not merely mentioned.commitlore_verify_capture is authoritative: a rejected record stays rejected;
do not silently repair it into a different claim. In suggest mode, show accepted
records and let the user keep or skip them. In auto mode, stage only what the
verification result accepted.
Use only the vocabulary in the capture prompt. Ruled-out: is
alternative | reason; Blast: is local, module, or system; Undo: is
easy, costly, or permanent; Certainty: is firm, tentative, or
guess; and Record-Id: is r-[a-z0-9]{6,}. Validate a hand-written fallback
with commitlore validate --message-file <file> before committing.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub monglong0214/commitlore --plugin commitlore4 skills in this plugin
/commitlore-commitsUse when about to make a git commit and there is decision context worth recording — a constraint that shaped the change, an alternative that was tried and dropped, a warning for whoever touches this next. Drives the CommitLore capture pipeline, which drafts a record from the session transcript and the staged diff, machine-checks every quote against them, and binds what survives to the commit it was prepared for. Applies to an ordinary commit request, not only to one that names CommitLore: most commits carry nothing worth recording and this skill is silent on them, so the cost of considering it is a judgement the agent makes and drops. Trigger phrases include "commit this", "commit these changes", "finish up and commit", "commit this with commitlore", "write a commitlore record for this change", "capture the decision context for this commit", "what should I record about why I ruled out X", "커밋해줘", "수정 완료하고 커밋해", "commitlore 기록 남겨서 커밋해줘", "이 변경 결정 맥락 커밋에 남겨줘"./commitlore-queryUse when about to read, edit, or reason about a file and it would help to know its recorded decision history — active constraints, alternatives already ruled out, warnings left by a previous author, or which records have gone stale. Reads CommitLore records for a path or the whole repo without re-deriving them from raw git log. Trigger phrases include "what does commitlore know about this file", "why was X ruled out here", "any warnings on this path", "check for stale records", "has this approach been tried before", "이 파일에 대한 commitlore 기록 보여줘", "여기서 뭐가 기각됐는지 확인해줘".Other plugins' skills for the same job