/dominiks-skills:setup-pre-commitfrom dominiks-skills
Sets up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests. Use when adding pre-commit hooks or commit-time formatting.
Ships in dominiks-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.
Check for package-lock.json (npm), pnpm-lock.yaml (pnpm), yarn.lock (yarn), bun.lockb (bun). Use whichever is present. Default to npm if unclear.
Install as devDependencies:
husky lint-staged prettier
npx husky init
This creates .husky/ dir and adds prepare: "husky" to package.json.
.husky/pre-commitWrite this file (no shebang needed for Husky v9+):
npx lint-staged
npm run typecheck
npm run test
Adapt: Replace npm with detected package manager. If repo has no typecheck or test script in package.json, omit those lines and tell the user.
.lintstagedrc{
"*": "prettier --ignore-unknown --write"
}
.prettierrc (if missing)Only create if no Prettier config exists. Use these defaults:
{
"useTabs": false,
"tabWidth": 2,
"printWidth": 80,
"singleQuote": false,
"trailingComma": "es5",
"semi": true,
"arrowParens": "always"
}
.husky/pre-commit exists and is executable.lintstagedrc existsprepare script in package.json is "husky"prettier config existsnpx lint-staged to verify it worksStage all changed/created files and commit with message: Add pre-commit hooks (husky + lint-staged + prettier)
This will run through the new pre-commit hooks — a good smoke test that everything works.
prettier --ignore-unknown skips files Prettier can't parse (images, etc.)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pre-commit-hooks, husky, lint-staged, prettier, git-hooks, code-formatting
Generated from the plugin's indexed repository (dominikdorfstetter/skills) — no native marketplace selected
npx claudepluginhub p/dominikdorfstetter-dominiks-skills25 skills in this plugin
/add-backend-endpointAdd a new backend HTTP endpoint following the project's existing conventions — language and framework agnostic. Walks the layers (schema → repo → handler → routing → spec → client wiring), TDD-first. Use when adding a new API route to a backend codebase./add-list-pageScaffold a new CRUD list page in any frontend codebase — language and framework agnostic. Walks the layers (data fetch, mutations, RBAC, loading/empty/error, i18n, accessibility, UX polish), TDD-first. Use when adding a list/management page to a UI codebase./architect-reviewArchitectural evaluation of a codebase. Finds tech debt, missing patterns, coverage gaps, design inconsistencies; files parent + sub-issues via `gh`. Use when user asks for an architecture review, codebase evaluation, or wants to know what to fix structurally./bug-reportTurn a vague bug description into a complete, actionable issue. Asks structured questions, investigates the codebase, builds reproduction steps, and files an issue with error codes and a test strategy. Use when user reports a bug informally and wants it tracked./cavemanUltra-compressed communication mode. Cuts token usage ~75% by dropping filler, articles, and pleasantries while keeping full technical accuracy. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman.
/coding-principlesReference document encoding the owner's coding philosophy. Loaded by other skills as a shared source of truth — not invoked directly. Covers think-first, no-duplication, functional bias, clean architecture, file focus, test quality, accessibility, error design, access-control design.35 plugins ship this exact skill · first indexed Jun 2, 2026
Showing 6 of 35 plugins, one per repository first
Other plugins' skills for the same job