commit-and-dco
Skill0 starsChanged 4 days agoMITView on GitHub
The skill groups changes into a requested maximum number of conventional commits and verifies author-matching DCO trailers; use it when preparing commits, squashing work, auditing sign-offs or checking a Git revision range.
In this repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- api-design-reviewSkill
- codebase-reviewSkill
- django-app-scaffoldSkill
- dockerfile-auditSkill
- exhaustive-prompt-specSkill
- incident-postmortemSkill
- log-triageSkill
- pr-review-tableSkill
- react-component-specSkill
- readme-writerSkill
- repo-polishSkill
- runbook-writerSkill
- security-reviewSkill
- spring-boot-endpointSkill
- test-plan-writerSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 9 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Use this skill when asked to split changes into commits, prepare commit messages, squash work, audit DCO sign-offs, or verify a commit …
- Distinctive: line 25
Read git status --short and git diff --stat to establish the complete change set.
- Distinctive: line 26
Read the configured author using git config user.name and git config user.email.
- Distinctive: line 28
Write each message with a conventional type and scope, an imperative subject under 72 characters, and a body explaining why the change is …
- Very specific: line 29
Add exactly one Signed-off-by: Name <email> trailer matching that commit's author.
- Distinctive: line 30
Create no more than the requested maximum and inspect every commit message and file list.
- Very specific: line 31
Run python3 skills/commit-and-dco/scripts/check_signoff.py HEAD~1..HEAD and record the command output and exit code.
- Distinctive: line 32
Run relevant validation and tests before reporting the final revision range.
- Distinctive: line 50
Do not sign off for another contributor.
- Distinctive: line 51
Do not change the requested commit limit.
- Distinctive: line 52
Do not rewrite history before recording the existing head and final tree.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Purpose
Turn a change set into a small, reviewable sequence of conventional commits with author-matching DCO sign-offs.
When to use
Use this skill when asked to split changes into commits, prepare commit messages, squash work, audit DCO sign-offs, or verify a commit range before pushing.
Inputs needed
- The requested maximum number of commits.
- The changed files or Git revision range.
- The configured commit author name and email.
Step-by-step procedure
- Read
git status --shortandgit diff --statto establish the complete change set. - Read the configured author using
git config user.nameandgit config user.email; ask for the identity if either value is missing. - Group files by one coherent purpose without separating a required implementation from its tests.
- Write each message with a conventional type and scope, an imperative subject under 72 characters, and a body explaining why the change is needed.
- Add exactly one
Signed-off-by: Name <email>trailer matching that commit's author. - Create no more than the requested maximum and inspect every commit message and file list.
- Run
python3 skills/commit-and-dco/scripts/check_signoff.py HEAD~1..HEADand record the command output and exit code. - Run relevant validation and tests before reporting the final revision range.
Exact output format
Return a Markdown table with columns commit, files, subject, and sign-off. Follow it with Validation containing the exact command and exit code. Order commits oldest first.
Edge cases
- A merge commit has multiple parents but still needs a matching sign-off if it is in the audited range.
- A missing author email is a blocking input; do not infer it from a GitHub username.
- A commit authored by another person must not receive a sign-off on their behalf.
- A clean working tree produces an explicit no-changes result rather than an empty commit.
Do not
- Do not sign off for another contributor.
- Do not change the requested commit limit.
- Do not rewrite history before recording the existing head and final tree.
Worked example summary
A change set touching a parser, its tests and documentation is split into a parser implementation commit and a separate docs commit. Both use imperative conventional subjects and a trailer matching the local author; the checker confirms the range.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

