| name | semantic-commit |
|---|---|
| description | Generate semantic commit messages following conventional commit format for agentconfig.org. Use when creating commits, reviewing staged changes, or when the user asks for help with commit messages. |
Create clean, semantic git commits following strict commit discipline.
<type>(<scope>): <description>
[optional body]
[optional footer(s)]
| Type | When to Use |
|---|---|
feat |
New feature or functionality |
fix |
Bug fix |
docs |
Documentation changes only |
style |
Formatting, whitespace (no code logic change) |
refactor |
Code restructuring without behavior change |
test |
Adding or updating tests |
chore |
Maintenance, configs, dependencies |
Common scopes for agentconfig.org:
file-tree- FileTree component/visualizationcards- PrimitiveCards componentcomparison- ProviderComparison componenthero- Hero sectionnavigation- Navigation componenttheme- ThemeProvider, ThemeToggle, dark/light modedata- Data files in site/src/data/e2e- Playwright testsskills- Skill files in .github/skills/
Each commit must represent ONE logical change. If you're tempted to use "and" in your description, split it into multiple commits.
# Bad
feat(ui): add file tree component and update navigation
# Good - Two separate commits
feat(file-tree): add collapsible tree node component
fix(navigation): update scroll offset for new header
Prefer multiple small commits over one large commit. Ask: "Can this be split further?"
The description should complete: "This commit will..."
- Use imperative mood: "add", "fix", "update" (not "added", "fixes")
- Be specific but concise
- No period at the end
Before committing, verify:
bun run lintpassesbun run typecheckpassesbun run testpasses- Only intended files are staged
- No debug code or console.logs (unless intentional)
When asked to commit:
- Review changes with
git statusandgit diff --staged - Assess scope - Determine if this should be one or multiple commits
- Unstage if needed - If changes span multiple features, commit separately
- Write message following the format
- Verify - Run lint, typecheck, and tests
- Commit only after verification passes
feat(file-tree): add TreeNode component with expand/collapse
chore(deps): add @radix-ui/react-collapsible
test(navigation): verify smooth scroll to sections
fix(theme): use correct tan background in light mode
refactor(hooks): extract theme logic to useTheme hook
docs(readme): add development setup instructions
update stuff # Too vague
feat: add everything # Too broad
WIP # Incomplete work
fix(ui): fixed the bug # Past tense, vague
feat(tree): Add tree. And cards. # Multiple changes, period
When changes span multiple areas:
- Can this be split into separate commits?
- If not, use the most significant scope
- List additional changes in the commit body
feat(file-tree): add expand/collapse functionality
Also updates:
- TreeNode component styling
- FileTree section layout