Pre-commit review gate, semantic commit format, and squashing guidance
78
Does it follow best practices?
If you maintain this skill, you can automatically optimize it using the tessl CLI to improve its score:
npx tessl skill review --optimize ./path/to/skillValidation for skill structure
/review staged — if it returns blockers, fix them and re-run. Repeat until no blockers.Do not skip either step.
type(scope): description| Type | When to use |
|---|---|
feat | New feature or capability |
fix | Bug fix |
refactor | Code change that neither fixes nor adds |
docs | Documentation only |
test | Adding or updating tests |
chore | Build, CI, dependencies, tooling |
Always use component/area (e.g., fix(auth): ..., refactor(api): ...). Keep scope semantic — don't use ticket numbers as scope.
feat(auth): add password reset flow
fix(auth): prevent token refresh race condition
refactor(api): extract validation middleware
test(user): add edge cases for email validation
chore(deps): bump lodash to 4.17.21Before first push, squash related commits:
featfixAfter review feedback, add new commits instead of rewriting history:
fix(auth): address review — validate token expiry)Before pushing, check if the branch name is meaningful. Auto-generated worktree branches (e.g., opencode/cosmic-wizard) should be renamed to reflect the change:
[[ "$(git branch --show-current)" =~ ^opencode/ ]] && git branch -m "$(git branch --show-current)" <new-name>Naming convention: <type>/<short-description> — type matches the commit type, description is 2-4 kebab-case words (e.g., feat/add-auth-middleware, fix/token-refresh-race).
Keep minimal—no headers, just the essentials:
Closes #123 for GitHub issues, Closes PROJ-123 for private repos)Example:
Adds retry logic for flaky external API calls. Closes #123Skip: bullet lists, ## Summary headers, implementation details obvious from the diff.
When the issue tracker is internal (e.g., Linear) and the repo is public, don't reference issues in commits or PRs. Instead, update the Linear issue with a link to the PR.
Check repo visibility with: gh repo view --json visibility -q '.visibility'
31daf20
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.