kobogithub/knowledge/standard-commits
Claude Code and agent skill by kobogithub/knowledge
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install kobogithub/knowledge/standard-commitsSKILL.md
The same SKILL.md was published earlier as kobogithub/knowledge/standard-commits.
Skill: standard-commits
Conventional Commits, Semantic Versioning, and Git Branching Strategy for Knowledge Framework projects.
Overview
This skill defines the canonical standards for commit messages, version numbering, and branch naming across all projects managed by kn (Knowledge Framework).
Every agent MUST follow these conventions. Non-conforming commits may be rejected by CI.
1. Conventional Commits
All commit messages MUST follow Conventional Commits format.
Format
- `type`: Category of change (see table below)
- `scope`: Component or module affected (optional but recommended)
- `message`: Clear, concise description in imperative mood ("add", not "added")
Examples
Breaking Changes
Append ! after the type (before colon) to indicate an incompatible change:
Breaking changes trigger a MAJOR version bump.
Accepted Commit Types
| Type | Description | SemVer Bump | |
|---|---|---|---|
feat | New functionality | MINOR | |
fix | Bug fix (including urgent production fixes) | PATCH | |
refactor | Code restructuring, no behavior change | PATCH | |
perf | Performance optimization | PATCH | |
build | Build system (Cargo, Docker, install scripts) | PATCH | |
ci | CI/CD configuration (GitHub Actions, workflows) | PATCH | |
chore | General maintenance, dependencies, cleanup | PATCH | |
docs | Documentation changes | PATCH | |
style | Formatting, linting, whitespace | PATCH | |
test | Test additions or modifications | PATCH | |
any! | Any type with ! = breaking change | MAJOR |
Multi-line Commits
For complex changes, use a body and footer:
2. Semantic Versioning (SemVer)
Versions follow Semantic Versioning: `vMAJOR.MINOR.PATCH`
Version Determination Logic
When analyzing commits from the last tag to HEAD:
- If ANY commit has `!` (breaking change) -> MAJOR bump
`` MAJOR += 1, MINOR = 0, PATCH = 0 ``
- If ANY commit is `feat` (and no breaking) -> MINOR bump
`` MINOR += 1, PATCH = 0 ``
- If commits are `fix|refactor|perf|build|ci|chore|docs|style|test` -> PATCH bump
`` PATCH += 1 ``
- If NO recognized types -> No tag generated
Tag Strategy by Branch
| Branch | Tag Format | Example | Trigger | |
|---|---|---|---|---|
dev | vX.Y.Z-rc.N | v1.5.0-rc.3 | Push/merge to dev | |
prod | vX.Y.Z | v1.5.0 | Push/merge to prod |
Release Candidate (RC) Tags on dev
- Calculate next version
vX.Y.Zfrom commits since last stable tag - Find latest
vX.Y.Z-rc.Nfor that version - Increment N:
vX.Y.Z-rc.(N+1) - If no RC exists yet:
vX.Y.Z-rc.1
Example:
Stable Tags on prod
- Calculate version
vX.Y.Zfrom commits since last stable tag - Create tag
vX.Y.Z(no suffix) - This triggers the release workflow (binary builds, GitHub Release)
Example:
First Version
If no tags exist, the base version is v0.0.0. The first commit determines the initial tag:
feat->v0.1.0(orv0.1.0-rc.1on dev)fix->v0.0.1(orv0.0.1-rc.1on dev)
3. Git Branching Strategy
Branch Hierarchy
Branch Naming Convention
| Branch Type | Pattern | Created From | PR Target | Example | |
|---|---|---|---|---|---|
| Production | prod | - | - | prod | |
| Integration | dev | prod | prod | dev | |
| Epic | epic/<epic-id> | dev | dev | epic/knowledge-j3a | |
| Agent work | <epic-id>/<agent-role> | epic/<id> | epic/<id> | knowledge-j3a/backend | |
| Independent | task/<task-id> | dev | dev | task/knowledge-j3a.5 | |
| Hotfix | hotfix/<issue-id> | prod | prod+dev | hotfix/knowledge-abc | |
| Release | release/v<version> | dev | prod | release/v1.5.0 |
Workflow: Feature Development
Workflow: Hotfix
Workflow: Release
4. PR Review Workflow
Human Review Cycle
- Agent creates PR (agent-branch -> epic-branch, or epic -> dev)
- Human reviews and leaves comments on the PR
- Planner reads comments via
ghCLI:
``bash gh pr view <PR#> --comments gh api repos/OWNER/REPO/pulls/<PR#>/comments ``
- Planner adds review items as new entries in the relevant
specs/NNN-feature/tasks.md - Agents resolve the review items and push fixes
- Planner verifies fixes and approves the PR:
``bash gh pr review <PR#> --approve -b "All review items resolved" ``
- PR is merged (squash merge recommended for clean history)
Merge Strategy
| PR Type | Merge Method | Rationale | |
|---|---|---|---|
| Agent -> Epic | Squash | Clean single commit per agent's work | |
| Epic -> Dev | Merge | Preserve epic's commit history | |
| Dev -> Prod | Merge | Preserve full history for stable tag | |
| Hotfix -> Prod | Squash | Single clean fix commit |
5. Agent Commit Rules
MUST
- Use conventional commit format for EVERY commit
- Include scope when the change is in a specific module
- Reference the spec folder (
specs/NNN-feature-name/) in commit body or PR description - Push to your agent branch, never directly to epic/dev/prod
MUST NOT
- Force push to shared branches (epic, dev, prod)
- Commit directly to dev or prod (use PRs)
- Use vague commit messages ("fix stuff", "update code", "wip")
- Skip the type prefix
SHOULD
- Keep commits atomic (one logical change per commit)
- Use imperative mood ("add feature" not "added feature")
- Include
Closes: <issue-id>in commit body for auto-closing - Sign commits if GPG is configured
6. CI/CD Integration
GitHub Actions Workflows
| Workflow | Trigger | Action | |
|---|---|---|---|
ci.yml | Push/PR to dev, prod | Run tests, clippy, fmt | |
release.yml | Tag v* | Build binaries, create GH Release |
References
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/standard-commits/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kobogithub/knowledge/standard-commits)