agentleFS
heptametaheptameta/heptabase-explainer-studio/.claude/skills/commit-and-pull-request-convention/SKILL.md

commit-and-pull-request-convention

Skill45 starsChanged 45 days agoApache-2.0View on GitHub

How Explainer Studio commits and pull requests are written, covering branches, Conventional Commits subjects, sign-offs, the changelog, and pull request titles and descriptions. Use before committing, pushing a branch, or opening or merging a pull request in this repository.

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 1

    1. Gjl1u9/watch-less★ 136% same

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository6 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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:

    Body,: when the subject is not enough: prose wrapped at 120 columns that says what was wrong or missing and what happens now.

    line 48
  2. Distinctive:

    Use the glossary's terms and the code's names.

    line 50
  3. Very specific:

    Trailers: every commit is signed off (git commit -s.

    line 53
  4. Very specific:

    Only a release pull request adds a version heading (releasing).

    line 74

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

Commits and pull requests

A pull request is squash-merged: one change becomes one commit on main. Its subject is the pull request title, and its body is the messages of the pull request's commits (the repository's squash settings). Write both as if they will be read by someone who never saw the conversation. The check-pull-request-conventions workflow checks the title, the changelog entry and the sign-offs.

Branches

  • Work on a branch from main and commit locally as you go.
  • Push only when the branch is ready for review: squash the work-in-progress commits into the ones a reviewer should read (usually one, whose message is the one main should get), and run the commands in AGENTS.md first.
  • Nothing private enters the repository, in code, commit messages or pull requests: names of people, private materials, users' feedback, local paths.

Commit messages

  • Subject: Conventional Commits, <type>: <sentence>, no scope. The sentence is English in the imperative (it completes "this commit will ..."), starts lowercase, has no trailing period, and says what changes for the user or the agent. Add the reason after a comma when it is not obvious.
  • Type:

    TypeWhen
    feata user or the agent can do something they could not before
    fixsomething that should already have worked now does
    refactorthe code changes and nothing anyone sees does
    docsdocumentation and conventions for developers
    testtests only
    cithe workflows
    choreanything else, such as a release
    feat: let a video page comment be about the whole episode
    fix: count a subagent's work in the step it is doing
    feat: upgrade to the latest release before each episode, so no one stays on the version they first installed
    refactor: move the skill's references into the package as the guide
    chore: release 0.2.0

    Not feat: added theater mode (past tense), fix: theater mode bug (no verb), chore: update stuff (says nothing), or fix: edit upgrade.py and guide.md (files, not the change).

  • Body, when the subject is not enough: prose wrapped at 120 columns that says what was wrong or missing and what happens now. Not a list of the files edited, and not the story of how the fix was found.
  • Use the glossary's terms and the code's names. Name every CLI command, file format field and scene_kit function that changes, since agents, scene files and series folders depend on them; for a sweeping rename, name the kinds of change with examples and say where the full list is.
  • Trailers: every commit is signed off (git commit -s; see CONTRIBUTING.md). A commit an agent wrote also has the agent's Co-Authored-By: trailer. A maintainer who writes the squash message by hand keeps the Signed-off-by: lines at its end.

Changelog

CHANGELOG.md follows Keep a Changelog, and the release notes are made from it, so it is written in the pull requests rather than at release time.

  • A feat or fix adds an entry under ## [Unreleased], in its category: Added, Changed, Deprecated, Removed, Fixed or Security. Write it for a user: what is different for them, not how the code changed. Other types get no entry; a change a user or the agent would notice is a feat or a fix.
  • An entry is one line, two at most, as in Common Changelog and the changelogs of Tailwind CSS and uv: the thing the user meets (a page, a command, a button, a file), what is different, and a short example when it says more than an explanation would. The reason, how it works, edge cases and trade-offs go in the pull request. Not "The video page's address holds the mode that is on, as in .../video/ep02?mode=chapters, so a reload, Back and Forward, and the same address in another tab or browser show the same screen, and switching episodes keeps it. Showing or hiding the whiteboard is a step that Back returns from; ..." but "The video page keeps its mode in its address (?mode=chapters), so a reload, Back or a new tab shows the same screen."
  • A change that existing series must follow adds a step under ## Unreleased in UPGRADING.md, as its introduction says.
  • Only a release pull request adds a version heading (releasing).

Pull requests

  • Title: the subject main should get, in the format above.
  • Description: written for the reviewer deciding whether to merge, and for whoever later follows the commit back to it. Up to four sections, each answering one question, in this order:

    SectionAnswersHolds
    ## WhyIs the problem worth solving?what was wrong or missing
    ## What changesIs this the right change, and where to look?what is different for a user or the agent: commands, file formats, rules
    ## Trade-offsIs the price acceptable?what gets worse, what was given up, the alternative not taken
    ## VerificationIs the risk acceptable?what was checked beyond CI, what is still unchecked, what to watch for

    Why and What changes are always there. Leave Trade-offs out when nothing was given up, and Verification out when CI is all there is; never fill a section for its own sake. A change to teaching behaviour adds what judging-changes asks for to these sections.

  • What changes opens with one or two sentences that say what the change is as a whole; a single change ends there. Several separate changes follow as one level of bullets, each starting with the bold name of the thing that changes (a command, a file, a rule) and one sentence on how. Items that share attributes go in a table. No file lists, no nested bullets, and no order of implementation.
  • The description ends with the agent's generated-with line when an agent wrote it.
  • A maintainer reviews and merges.

An example (an engine change):

## Why

Users install from a store listing and never update plugins, so most would keep the version they first installed.

## What changes

`explainer-studio upgrade` installs the latest release when it is newer, and the guide has the agent run it before
each series and episode, without asking the user.

- **`doctor`** shows a newer release as `latest_release`.
- **`UPGRADING.md`** says what existing series must change; `upgrade` prints the steps of the releases it skipped.

## Trade-offs

The upgrade is silent, so a regression reaches every user within a day. Releases are batched and run as dev builds
first to make up for it.

## Verification

Not run: an actual upgrade install. The first release after this one is the test.

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.