skills/commit-and-summarize/SKILL.md
Use when the user asks to commit changes and/or summarize the current session - or when wrapping up a conversation that involved code or file edits.
npx skillsauth add ak1ra-komj/agents-skills commit-and-summarizeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Commit all relevant changes, write a session log, and optionally commit that log - as a single coordinated workflow.
When wrapping up a session, this skill:
.agents/state/sessions/
using the resulting commit IDs..gitignore.You MUST commit only files that were modified or created during this conversation. You MUST NOT stage unrelated changes.
If the changes span clearly distinct features or modules, split them into multiple commits - but only do so when it adds genuine clarity. You MAY use a single commit for small or cohesive changes.
git add <files>).git commit -m "<subject>" (or with -m body if needed).date +%Y-%m-%d in a terminal to get today's date.git log --oneline (or git log --oneline <range>) to collect the work
commits made during the session..agents/state/sessions/YYYY-MM-DD-<session-title>.md.YYYY-MM-DD-<session-title>.md
date +%Y-%m-%d - you MUST NOT guess or hardcode it.<session-title>: a short English phrase summarising the session, words
joined with - (e.g. add-liveness-probe-action-threshold).One sentence describing what the session accomplished.
One paragraph covering: background / motivation, the problem or request, the approach taken, and the outcome.
A list of every file touched during the session. For each file include:
List every commit made during the session in the format:
- `a1b2c3d` <commit message>
Use the short hash (git log --oneline). You MUST include the work commits
created before the session log was written. If the session log itself is later
committed in Phase 3, you MUST NOT include that log-only commit in this
section. If no commits were made during the session, write: "No commits were
made in this session."
Distil the most reusable or noteworthy insights from the session, such as:
date +%Y-%m-%d and MUST NOT hardcode them.Before committing the session log, check whether that path is ignored by git:
git check-ignore -v .agents/state/sessions/
.agents/state/sessions/ is excluded by .gitignore: you MUST NOT stage or commit
the session log. You MUST inform the user that the file was written locally but not
committed due to the ignore rule..agents/state/sessions/ is not ignored: you MUST stage only the session
log file and create a separate commit for it. You MUST NOT mix it with the work
changes from Phase 1, and you MUST NOT go back and add this log-only commit to the
session log.Suggested commit message for the session log:
docs: add session log YYYY-MM-DD-<session-title>
development
Use when the user asks to summarize this session or chat — and the conversation is happening in a web chat interface (e.g. ChatGPT Pro) where no file system or terminal access is available.
development
Use when the user asks to commit changes and/or summarize the current session — or when wrapping up a conversation that involved code or file edits.
tools
Use when writing, reviewing, or refactoring AGENTS.md, writing an agent guide, documenting the project for AI agents, or orienting AI coding tools to a new repository.
development
Use when the user mentions preparing or publishing a new release, or asks to review or refactor CHANGELOG.md, following Keep a Changelog format and Semantic Versioning.