agentleFS
hyperstructurehyperstructure/fctl/.claude/skills/commit/SKILL.md

commit

Skill9 starsChanged 12 days agoMITView on GitHub

Commit and open pull requests in hyperstructure/fctl. Covers Conventional Commit subjects (they become the release notes and pick the version), what goes in the body, branch names, and how a change reaches main. Use when committing, naming a branch, writing a pull request title or description, or getting work merged.

186 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use act-on-feedback, generate-run-commands and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    act-on-feedback

    Act on user feedback attached to the current session. Use when the user submits feedback on the session's changes via the Submit Feedback button.

    Also in 4 projects that use this

  • MicrosoftSkill

    generate-run-commands

    Generate or modify run commands for the current session. Use when the user wants to set up or update run commands that appear in the session's Run button.

    Also in 4 projects that use this

  • MindgamesSkill

    branch

    Use when a user asks to create a new local git branch and start issue work (for example, "create branch" or "start working on issue XYZ"). Use this for issue-based branch naming in the `type/scope-short-description` pattern and for always syncing local `main` from `origin/main` before creating the new branch, creating the local tracking `main` branch first when needed.

    Also in 9 projects that use this

  • decocmsSkill

    add-mcp-tools

    Guide for adding new MCP tools with consistent patterns for schemas, tool definitions, registry updates, and Better Auth integration

    Also in 3 projects that use this

  • thoughtbotSkill

    implement-with-tdd

    Implement a SPEC, plan, or feature outside-in, with TDD.

    Also in 3 projects that use this

  • thoughtbotSkill

    multi-lens-review

    Review a change for defects, then against its spec, its codebase's conventions, the domains trying to emerge from it, and whatever still depends on what it replaced.

    Also in 3 projects that use this

  • +1 more from thoughtbot

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 165 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Every change reaches main as one squash-merged pull request, and the pull request's title becomes the commit subject.

    line 8
  2. Distinctive:

    Check a title before you use it:

    line 45
  3. Distinctive:

    Commit as you go. Commits on the branch are squashed, so their messages are yours.

    line 70
  4. Very specific:

    Run cargo xtask check before you push.

    line 72
  5. Very specific:

    Wait for CI and answer the review: the pull-requests skill.

    line 75
  6. Very specific:

    Never push to main directly: it is what releases are made from.

    line 81
  7. Very specific:

    Never commit secrets: keys, tokens, .dev.vars, *.pem, Cloudflare credentials.

    line 89

“Common” is measured: kept by at least 6 in 10 of the 165 edited versions of this file we could read. “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

Every change reaches main as one squash-merged pull request, and the pull request's title becomes the commit subject; its description becomes the commit body. cargo xtask release makes the version number and the release notes from those subjects, so they follow Conventional Commits.

The title

type(scope): what changed, at most 72 characters, no full stop.

TypeForNext release
featsomething people can do that they couldn't beforeminor
fixa bug fixpatch
perffaster or lighter, same behaviorpatch
docsdocumentation onlypatch
refactorrestructuring that changes no behaviorpatch
test, build, ci, chore, reverttests; builds and dependencies; CI; upkeep; revertspatch

The scope is optional and names the part of fctl: control, host, agent, cli, web, proto, domain, xtask, deps, docs, release.

The description is what the release notes say, so name the change people notice, in the imperative, lowercase unless it starts with a name:

  • feat(cli): add fctl self update
  • fix(agent): start session branches untracked
  • perf(control): page transcripts out of the session object
  • docs: explain sandbox expiry

A breaking change (people or older hosts must adapt: a protocol, config, CLI or API change) gets a ! and a BREAKING CHANGE: paragraph in the description that says what to do: feat(proto)!: drop the v0 uplink. Before 1.0 it bumps the minor version. Remember hosts and agents may run one version behind the control plane (AGENTS.md).

Check a title before you use it:

cargo xtask lint-commit "feat(cli): add fctl self update"

CI checks every pull request title, and again when you edit it.

The description

Plain prose for someone reading git log in a year: what was wrong or missing, what changed and why this way, and how you verified it (tests, cargo xtask dev). A change to how fctl looks shows it with screenshots: the screenshots skill. Link the issue: Fixes #12 only when the pull request does everything it asks (merging closes it), Refs #12 otherwise (the issues skill).

The description becomes the commit message on main, so it ends with the content: no "Generated with …" footers and no links to chat sessions. A link to the fctl session that made the change is welcome.

The flow

  1. Branch from an up-to-date main: <type>/<topic> (fix/plain-push), or fctl/<number>-<topic> when an fctl session makes the branch.
  2. Commit as you go. Commits on the branch are squashed, so their messages are yours; the title is what lasts.
  3. Run cargo xtask check before you push.
  4. Open the pull request: a conventional title, a description, one change. Split unrelated work into separate pull requests.
  5. Wait for CI and answer the review: the pull-requests skill.
  6. A person merges it (squash) when CI is green. main takes a pull request only once a code owner who didn't push its last commit approves it, so you can merge only one a person approved, when they ask you to.

Never push to main directly: it is what releases are made from. The only pushes to main are the Release workflow's release commits and fctl.sh's docs pins (in hyperstructure/fctl-site), made with deploy keys. Rulesets refuse any other push, and any pull request without passing checks (cargo xtask check, cargo xtask dev --smoke, Conventional Commits): .github/rulesets/, and ADR 0021.

Never commit secrets: keys, tokens, .dev.vars, *.pem, Cloudflare credentials. Check git status before committing.

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.