agentleFS
aviateskaviatesk/JETLS.jl/.agents/skills/commit/SKILL.md

commit

Skill319 starsChanged 10 days agoMITView on GitHub

Use when writing a commit message, and MUST invoke before creating any git commit. Provides commit message format and safety rules.

188 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use validate-plan, act-on-feedback 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.
  • shawn-dumasSkill

    validate-plan

    Validate an orchestration plan after pre-flight certification. Runs adversarial review, deep review (verify prompt data against codebase), and PoC gate for risky approaches. Auto-invoked by orchestrate-* skills at Step 8.

    Also in 5 projects that use this

  • 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 3 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

  • 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 3 projects that use this

  • mitsuhikoSkill

    oebb-scotty

    Austrian rail travel planner (ÖBB Scotty). Use when planning train journeys in Austria, checking departures/arrivals at stations, or looking for service disruptions. Covers ÖBB trains, S-Bahn, regional trains, and connections to neighboring countries.

    Also in 3 projects that use this

  • mitsuhikoSkill

    pi-share

    Load and parse session transcripts from shittycodingagent.ai/buildwithpi.ai/buildwithpi.com/pi.dev (pi-share) URLs. Fetches gists, decodes embedded session data, and extracts conversation history.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 10 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 168 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use "component: Brief summary" format and imperative mood for the commit title.

    line 12
  2. Distinctive:

    Write a body by default, including for small, self-contained changes.

    line 22
  3. Distinctive:

    Write body paragraphs as explanatory prose with explicit subjects:

    line 37
  4. Distinctive:

    Prefer a concrete subject such as the affected component or newly introduced type.

    line 39
  5. Very specific:

    Use This change or This commit when describing the patch as a whole.

    line 41
  6. Very specific:

    Use The implementation when explaining the mechanism.

    line 42
  7. Very specific:

    Do not omit a subject merely to avoid we or I.

    line 43
  8. Distinctive:

    Use backticks for code elements such as function names, variables, and paths.

    line 45
  9. Distinctive:

    Ensure the maximum line length never exceeds 72 characters.

    line 49
  10. Distinctive:

    Never rely on Git or an editor to wrap the message automatically.

    line 50
  11. Very specific:

    Before every commit, write the complete message to a uniquely named temporary file with explicit line breaks, then commit with …

    line 52
  12. Distinctive:

    Do not use repeated git commit -m arguments for a multi-paragraph message.

    line 55
  13. Very specific:

    Never use --no-verify to bypass it.

    line 59
  14. Distinctive:

    When referencing external GitHub PRs or issues, use proper GitHub interlinking format: "owner/repo#123".

    line 63
  15. Distinctive:

    If you wrote code yourself, include a co-author trailer at the end of the commit message, for example:

    line 68

“Common” is measured: kept by at least 6 in 10 of the 168 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

Message guideline

Title format

Use "component: Brief summary" format and imperative mood for the commit title.

Examples:

  • "completions: Add support for keyword argument completion"
  • "diagnostics: Fix false positive on unused variable"
  • "ci: Update GitHub Actions workflow"

Body

Write a body by default, including for small, self-contained changes. Do not treat a descriptive title as a reason to omit the body. When little explanation is needed, briefly state the motivation and implementation.

Organize body paragraphs in this order and omit any paragraph that is not relevant:

  1. Explain the concrete problem, limitation, or goal motivating the change. For user-facing work, describe the resulting capability or behavior. For internal work, explain the engineering reason without inventing a user-visible impact. Include a small code example when it adds clarity.
  2. Explain the approach used to implement the change.
  3. Mention important caveats, follow-up work, performance notes, or test coverage when relevant.

Write body paragraphs as explanatory prose with explicit subjects:

  • Prefer a concrete subject such as the affected component or newly introduced type.
  • Use This change or This commit when describing the patch as a whole.
  • Use The implementation when explaining the mechanism.
  • Do not omit a subject merely to avoid we or I.

Use backticks for code elements such as function names, variables, and paths.

Line length

Ensure the maximum line length never exceeds 72 characters. Never rely on Git or an editor to wrap the message automatically.

Before every commit, write the complete message to a uniquely named temporary file with explicit line breaks, then commit with GIT_EDITOR=true git -c core.hooksPath=.githooks commit -F <message-file>. Do not use repeated git commit -m arguments for a multi-paragraph message.

The command-local core.hooksPath setting automatically runs the tracked commit-msg hook and rejects lines longer than 72 characters. Never use --no-verify to bypass it.

GitHub references

When referencing external GitHub PRs or issues, use proper GitHub interlinking format: "owner/repo#123".

Co-author trailer

If you wrote code yourself, include a co-author trailer at the end of the commit message, for example:

Co-Authored-By: GPT-5.6 Sol <noreply@openai.com>

Adjust the model name as appropriate. When simply asked to write a commit message without having written the code, do not add the trailer.

Examples

The examples below are from real history; co-author trailers and PR numbers are omitted.

Feature addition

Reference: 5bb517f1a7698916b7ea8055fdd595feb5625c7f

type-definition: Implement `textDocument/typeDefinition`

Add server-side support for "Go to Type Definition". The handler runs
the `TypeAnnotation` pipeline (`get_inferrable_tree` →
`infer_toplevel_tree` → `get_type_for_range`) on the toplevel subtree
containing the cursor, then maps the inferred lattice element to a
concrete `Type` and returns the constructor method locations of that
type — falling back to the unwrapped wrapper for parametric types
(e.g. `Vector{Int}` → `Vector`) or to the parent module location when
no constructors are reachable. `Union` types fan out to one location
per constituent.

The feature is registered statically or dynamically based on the
client's `typeDefinition.dynamicRegistration` capability, and reports
back as `LocationLink[]` when `linkSupport` is advertised so the
origin selection range highlights only the cursor's identifier.

Bug fix

Reference: 3465a1caf98a615ad05d40eb5744c8efd4282926

diagnostic: Invalidate pull-diagnostic resultId on config changes

`compute_diagnostic_result_id` previously keyed the resultId only on
the file version (and dependency versions for files with explicit
imports). When `[diagnostic]` config changed, `handle_lsp_config_change!`
sent `workspace/diagnostic/refresh`, but the client's re-request with
the previous `previousResultId` matched the freshly-computed resultId
and the server returned `Unchanged`, so the refresh was effectively a
no-op and stale diagnostics persisted on the client.

Fold the current `DiagnosticConfig` value into the resultId so any
`[diagnostic]` config mutation flips the resultId and the refresh
takes effect.

Also defines `Base.hash(::DiagnosticConfig, ::UInt)` content-based.
`@option` from Configurations.jl generates `==` but not `hash`, so the
default `hash` fell back to `objectid` and broke the `==`/`hash`
contract — equal-valued `DiagnosticConfig` instances hashed
differently because of the embedded `patterns::Vector`. Without this,
the resultId fold above would spuriously invalidate the client cache
whenever `ConfigManagerData` was rebuilt with the same values.

Safety guideline

See the "Git operations" section in AGENTS.md.

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.