agentleFS
naviktnavikt/copilot/skills/conventional-commit/SKILL.md

conventional-commit

Skill54 starsChanged 3 months agoMITView on GitHub

Generer conventional commit-meldinger med Nav-relevante scopes og breaking change-format

20 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use security-audit, prototype and 1 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.
  • CloudflareSkill

    security-audit

    Security guidance and vulnerability review for codebases, APIs, services, CLI tools, libraries, and daemons. Use for security questions, focused reviews, vulnerability research, security audits, or pen tests. Run the complete workflow only for explicit codebase audit or pen-test requests, full/comprehensive/end-to-end reviews, or requested report artifacts.

    Also in 3 projects that use this

  • AWSSkill

    prototype

    Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.

    Also in 3 projects that use this

  • AWSSkill

    grill-me

    A relentless interview to sharpen a plan or design.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 18 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use imperative form: "add", not "added" or "adds"

    line 65
  2. Distinctive:

    Don't end with a period

    line 66
  3. Distinctive:

    Use Norwegian or English consistently within the project

    line 67
  4. Distinctive:

    Write short, precise description

    line 105
  5. Distinctive:

    Add body if the change needs explanation

    line 106
  6. Very specific:

    Add BREAKING CHANGE footer if the API changes

    line 107

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

Conventional Commit Skill

Generate commit messages following the Conventional Commits specification, adapted for Nav projects.

Format

<type>(<scope>): <description>

[optional body]

[optional footer]

Types

TypeUsage
featNew functionality
fixBug fix
docsDocumentation-only changes
styleFormatting, semicolons, etc. (no code change)
refactorCode that neither fixes a bug nor adds a feature
perfPerformance changes
testAdding or fixing tests
buildBuild system or dependency changes
ciCI configuration changes
choreOther changes that don't affect code

Nav-relevant scopes

feat(vedtak): add support for complaint decisions
fix(auth): fix token validation for TokenX
docs(api): update OpenAPI spec for the vedtak endpoint
refactor(repository): use CTE for better readability
test(controller): add integration test with MockOAuth2Server
build(deps): upgrade Spring Boot to 3.4.1
ci(deploy): add prod deploy step
perf(db): add index on bruker_id
chore(nais): update resource limits

Breaking Changes

feat(api)!: change response format for the vedtak endpoint

BREAKING CHANGE: The `vedtakDato` field has been changed to `opprettetDato`.
Consumers must update their parsing.

Rules

  • First line: max 72 characters
  • Use imperative form: "add", not "added" or "adds"
  • Don't end with a period
  • Use Norwegian or English consistently within the project
  • Reference Jira/GitHub issue in footer: Closes #123 or Refs NAV-1234

Examples

# Simple feature
git commit -m "feat(søknad): add validation of national identity number"

# Bugfix with reference
git commit -m "fix(auth): handle expired refresh token

The refresh token was not renewed upon expiration, which caused
users to be logged out without warning.

Fixes #456"

# Dependency update
git commit -m "build(deps): upgrade postgresql driver to 42.7.4"

# Breaking change
git commit -m "feat(api)!: remove deprecated /api/v1/vedtak endpoint

BREAKING CHANGE: /api/v1/vedtak has been removed. Use /api/v2/vedtak."

Analyzing Staged Changes

To generate a commit message, analyze staged changes:

git diff --cached --stat        # Overview of changed files
git diff --cached               # Detailed diff

Based on the diff:

  1. Identify type (feat/fix/refactor/etc.)
  2. Identify scope (which module/domain)
  3. Write short, precise description
  4. Add body if the change needs explanation
  5. Add BREAKING CHANGE footer if the API changes

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.