conventional-commit
navikt/copilot/skills/conventional-commit/SKILL.md
Generer conventional commit-meldinger med Nav-relevante scopes og breaking change-format
Skill54 starsChanged 19 days ago
What's in it
- Conventional Commit Skill
- Format
- Types
- Nav-relevant scopes
- Breaking Changes
- Rules
- Examples
- Analyzing Staged Changes
--- name: conventional-commit description: Generer conventional commit-meldinger med Nav-relevante scopes og breaking change-format license: MIT metadata: domain: general tags: git commit conventional-commits changelog --- # Conventional Commit Skill Generate commit messages following the Conventional Commits specification, adapted for Nav projects. ## Format ``` <type>(<scope>): <description> [optional body] [optional footer] ``` ## Types | Type | Usage | |---|---| | `feat` | New functionality | | `fix` | Bug fix | | `docs` | Documentation-only changes | | `style` | Formatting, semicolons, etc. (no code change) | | `refactor` | Code that neither fixes a bug nor adds a feature | | `perf` | Performance changes | | `test` | Adding or fixing tests | | `build` | Build system or dependency changes | | `ci` | CI configuration changes | | `chore` | Other 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 ```bash # 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: ```bash 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
More agent context in navikt/copilot
35 other files this repository gives its agents.
AGENTS.md
Copilot instructions
Skill
- ai-news-researchskills/ai-news-research/SKILL.md
- aksel-builderskills/aksel-builder/SKILL.md
- aksel-spacingskills/aksel-spacing/SKILL.md
- api-designskills/api-design/SKILL.md
- deliberate-ai-useskills/deliberate-ai-use/SKILL.md
- flyway-migrationskills/flyway-migration/SKILL.md
- jackson-3-migrationskills/jackson-3-migration/SKILL.md
- java-to-kotlinskills/java-to-kotlin/SKILL.md
- kafkaskills/kafka/SKILL.md
- klarsprakskills/klarsprak/SKILL.md
- kotlin-app-configskills/kotlin-app-config/SKILL.md
- ktor-scaffoldskills/ktor-scaffold/SKILL.md
- naisskills/nais/SKILL.md
- nav-architecture-reviewskills/nav-architecture-review/SKILL.md
- nav-authskills/nav-auth/SKILL.md
- nav-deep-interviewskills/nav-deep-interview/SKILL.md
- nav-dekoratorenskills/nav-dekoratoren/SKILL.md
- nav-planskills/nav-plan/SKILL.md
- nav-troubleshootskills/nav-troubleshoot/SKILL.md
- observability-debuggingskills/observability-debugging/SKILL.md
- observability-setupskills/observability-setup/SKILL.md
- playwright-testingskills/playwright-testing/SKILL.md
- postgresql-reviewskills/postgresql-review/SKILL.md
- readme-reviewskills/readme-review/SKILL.md
- rust-developmentskills/rust-development/SKILL.md
- security-owaspskills/security-owasp/SKILL.md
- security-reviewskills/security-review/SKILL.md
- spring-boot-scaffoldskills/spring-boot-scaffold/SKILL.md
- terse-modeskills/terse-mode/SKILL.md
- threat-modelskills/threat-model/SKILL.md
- tokenx-authskills/tokenx-auth/SKILL.md
- web-design-reviewerskills/web-design-reviewer/SKILL.md
- workstation-securityskills/workstation-security/SKILL.md
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
Reports can't be read right now.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool public_context_discussion, action report. How to connect one.

