Set up commitlint in a project using `@jabraf/dev`'s shared base (conventional commits). Load when the user asks to add commitlint, enforce conventional commits, configure `commitlint.config.js`, or wire up `@jabraf/dev` commitlint specifically. Do not load for general commit-message-quality questions unrelated to `@jabraf/dev`.
Ships in jabraf-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
jabraf-commitlintAdds commitlint to the current project by
re-exporting baseCommitLintConfig from
@jabraf/dev. The base config
enforces Conventional Commits via
@commitlint/config-conventional.
Canonical setup lives in
packages/jabraf-dev/README.md.
Load when the user's prompt mentions any of:
commit-msg hook"@jabraf/dev commitlint", "jabraf commitlint"Do not load for unrelated commit-quality tools (changesets, release-please)
unless the user also asks for commitlint. Do not load alongside
jabraf-dev-setup — the umbrella will invoke this one.
Brief acknowledge. One sentence: "I'll add commitlint via @jabraf/dev (Conventional Commits). That's: detect package manager, install the dep if missing, write commitlint.config.js, then surface options for the commit-msg git hook. Proceed?" [wait for user]
Detect package manager. Standard logic.
Detect existing config. Check for commitlint.config.{js,cjs,mjs,ts,mts}, .commitlintrc{,.json,.yaml,.yml,.js,.cjs,.mjs,.ts}, or a commitlint field in package.json. If found, show contents and ask: "Replace with the @jabraf/dev re-export, leave alone, or merge?" [wait for user] Never overwrite silently.
Install @jabraf/dev if missing. Dev dep, at latest. @commitlint/cli and @commitlint/config-conventional come transitively.
Write commitlint.config.js. Body:
import baseCommitLintConfig from '@jabraf/dev/commitlint';
export default baseCommitLintConfig;
Use .js (not .mjs) when package.json has "type": "module"; switch to .mjs otherwise so the ESM import works. Confirm before writing if type is unset. [wait for user if ambiguous]
Surface git-hook options. commitlint does nothing on its own — it needs a commit-msg hook to run. Present the choices and let the user pick one (do not install or configure without consent):
npm install --save-dev husky && npx husky init then add the hook file.npm install --save-dev simple-git-hooks then add the simple-git-hooks block to package.json.npm install --save-dev lefthook then lefthook.yml.[wait for user]
Wire the hook (only if the user chose a manager). The exact body the hook needs to run:
npx --no -- commitlint --edit "$1"
.husky/commit-msg with that line, chmod +x.package.json:
{
"simple-git-hooks": {
"commit-msg": "npx --no -- commitlint --edit \"$1\"",
},
}
and run npx simple-git-hooks once to register.lefthook.yml:
commit-msg:
commands:
commitlint:
run: npx --no -- commitlint --edit {1}
and run npx lefthook install once.Show the diff for each file before writing. [wait for user]
Validate. Echo a sample message through commitlint:
echo "feat: add new feature" | npx commitlint
echo "broken message" | npx commitlint
Report: "Conventional message accepted; non-conventional rejected. commitlint is wired." If the second command exits 0, something is wrong — surface and stop.
Final report. Summarize: package manager, install status, config file written, hook manager chosen (or skipped), validation outcome.
@jabraf/dev to a specific version — install at latest..husky/*, .git/hooks/*, lefthook.yml) without showing the diff and confirming.commitizen setup unless explicitly asked.commitlint.config.{js,mjs}, package.json, and the chosen hook file.| Situation | Action |
|---|---|
Project has no package.json | Stop. Ask the user to initialise the project first. |
Project has no .git directory | Surface this. commitlint runs in a git context; offer to write the config anyway and skip the hook step. [wait for user] |
Husky already installed but no commit-msg hook | Add the hook file only; do not re-run husky init. |
| User has both Husky and simple-git-hooks installed | Block and ask which one to use. Don't write conflicting hooks. |
| Existing hook file already runs commitlint | Skip the write. Mention it in the final report. |
| Hook needs to run a different commitlint package (e.g., monorepo with root + workspace commitlint configs) | Out of scope for this skill. Ask the user to wire the workspace-specific hook manually. |
Monorepo (workspaces present) | Ask whether to lint commits at the repo root (common) or per-workspace (rare). Default to root. [wait for user] |
@jabraf/dev commitlint docs: packages/jabraf-dev/README.md#commit-lint@jabraf/dev/commitlint → ./dist/config/code-linting/commit-lint.base.js (see packages/jabraf-dev/package.json exports map)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
17 skills in this plugin
/jabraf-app-config-setupSet up `@jabraf/app-config` end-to-end in a project — install the runtime dep, scaffold `config/make-config.ts`, augment the `FeatureMap`, gitignore the generated artifact, add `prebuild`/`predev` scripts, wire the bootstrap `setConfig` call, and (React apps) mount the in-app `FeatureFlagsPanel` toggle UI. Load when the user asks to add app config, set up feature flags, configure `@jabraf/app-config`, wire `jabraf-config build`, or add a feature flags toggle panel / floating button./jabraf-dev-setupOrchestrate a full `@jabraf/dev` setup in a project by invoking the granular `jabraf-*` skills in order — TSConfig, Prettier, ESLint, Vitest, Playwright (when relevant), commitlint, lint-staged. Load when the user asks for the full `@jabraf/dev` stack, a greenfield setup, or "everything from `@jabraf/dev`". Requires the granular skills to be installed alongside this one./jabraf-eslintSet up ESLint in a project using `@jabraf/dev`'s shared base config. Load when the user asks to add ESLint, set up linting, configure `eslint.config.{js,ts}`, or wire up `@jabraf/dev` ESLint specifically. Do not load for general linter questions unrelated to `@jabraf/dev`./jabraf-ground-rulesJabran's ground rules for every project — how to work (clarify first, stay scoped, report real results) plus default stack (Cloudflare, Tailwind v4), TypeScript, testing, git/PR, gh, CI, security and docs conventions, and the cloud-session rules (git identity, plan-only main agent, model choices). Load at the start of any coding, repo, review, commit, PR or GitHub Actions task, and whenever a repo's AGENTS.md points to it or is silent on a convention./jabraf-lint-stagedSet up lint-staged in a project using `@jabraf/dev`'s shared base (runs Prettier on stage, then ESLint and/or oxlint + related Vitest specs), wired through Husky for the `pre-commit` hook. Load when the user asks to add lint-staged, configure `.lintstagedrc`, set up a `pre-commit` hook for staged files, or wire up `@jabraf/dev` lint-staged specifically./jabraf-oxlintSet up oxlint in a project using `@jabraf/dev`'s shared base config, either on its own or alongside ESLint. Load when the user asks to add oxlint, set up `oxlint.config.ts` / `.oxlintrc.json`, speed up linting with oxlint, or wire up `@jabraf/dev` oxlint specifically./jabraf-skills:jabraf-commitlintfrom jabraf-skills
npx claudepluginhub jabranr/skills --plugin jabraf-skills