session-commit
Original:🇺🇸 English
Translated
1 scripts
Capture learnings from the current coding session and update AGENTS.md. Use when the user asks to close the loop, run session-commit, record best practices, or update agent instructions based on recent work.
52installs
Sourceolshansk/agent-skills
Added on
NPX Install
npx skill4agent add olshansk/agent-skills session-commitTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Session Commit
Analyze the current coding session, propose improvements to , and apply approved changes.
AGENTS.mdAvailable scripts
- - Checks whether required instruction files exist and optionally repairs missing files.
scripts/preflight.sh
Workflow
- Run preflight checks:
bash
bash scripts/preflight.sh- If preflight fails and user approves repairs, run:
bash
bash scripts/preflight.sh --fix- Read the current and build a mental map of existing sections.
AGENTS.md - Extract only durable learnings from the current session.
- Propose changes using the format in .
references/change-proposal-format.md - Wait for explicit user approval before applying any edits.
- Apply approved changes and merge with existing content.
What to capture
- Coding patterns and conventions established in the session
- Architecture decisions and reasoning that should persist
- Debugging playbooks and recurring gotchas
- Workflow preferences that improve future sessions
Guardrails
- Do not capture transient implementation details that will age quickly.
- Prefer updating existing sections before creating new headings.
- Use concise bullet points rather than long paragraphs.
- Keep guidance tool-agnostic unless behavior differs by tool.
- If no meaningful learning occurred, report that and stop.
Pointer file behavior
If , , or are missing or empty, create symlinks that point to .
CLAUDE.mdCODEX.mdGEMINI.mdAGENTS.mdOutput contract
- Proposal stage: output only proposed changes with explicit add/modify/remove counts.
- Apply stage: update only after explicit approval.
AGENTS.md - Completion stage: summarize what changed and where.