agentleFS
AaqibhafeezkhanAaqibhafeezkhan/skillself/skills/commit-and-dco/SKILL.md

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.

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
  1. Distinctive:

    Use this skill when asked to split changes into commits, prepare commit messages, squash work, audit DCO sign-offs, or verify a commit …

    line 13
  2. Distinctive:

    Read git status --short and git diff --stat to establish the complete change set.

    line 25
  3. Distinctive:

    Read the configured author using git config user.name and git config user.email.

    line 26
  4. Distinctive:

    Write each message with a conventional type and scope, an imperative subject under 72 characters, and a body explaining why the change is …

    line 28
  5. Very specific:

    Add exactly one Signed-off-by: Name <email> trailer matching that commit's author.

    line 29
  6. Distinctive:

    Create no more than the requested maximum and inspect every commit message and file list.

    line 30
  7. Very specific:

    Run python3 skills/commit-and-dco/scripts/check_signoff.py HEAD~1..HEAD and record the command output and exit code.

    line 31
  8. Distinctive:

    Run relevant validation and tests before reporting the final revision range.

    line 32
  9. Distinctive:

    Do not sign off for another contributor.

    line 50
  10. Distinctive:

    Do not change the requested commit limit.

    line 51
  11. Distinctive:

    Do not rewrite history before recording the existing head and final tree.

    line 52

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Read git status --short and git diff --stat to establish the complete change set.
  2. Read the configured author using git config user.name and git config user.email; ask for the identity if either value is missing.
  3. Group files by one coherent purpose without separating a required implementation from its tests.
  4. Write each message with a conventional type and scope, an imperative subject under 72 characters, and a body explaining why the change is needed.
  5. Add exactly one Signed-off-by: Name <email> trailer matching that commit's author.
  6. Create no more than the requested maximum and inspect every commit message and file list.
  7. Run python3 skills/commit-and-dco/scripts/check_signoff.py HEAD~1..HEAD and record the command output and exit code.
  8. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.