setup-pre-commit SKILL.md skillC

setup-pre-commit from ctaxnagomi/agent-kd-skill is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add ctaxnagomi/agent-kd-skill/setup-pre-commit@git:20260826.54f6831

Pins git:20260826.54f6831 in mdr.lock. Pin the fingerprint instead.

Audit grade
C, 15 of 17 checks passed
Kind
SKILL.md skill
Repository
ctaxnagomi/agent-kd-skill
Path
skills/custom/setup-pre-commit/SKILL.md
Versions recorded
3
Latest version
git:20260826.54f6831, committed Aug 26, 2026
First version recorded
Aug 24, 2026
Size
2,054 bytes
Repository stars
3
License
none declared

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Setup Pre-Commit Hooks

Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests.

## What This Sets Up
- Husky pre-commit hook
- lint-staged running Prettier on all staged files
- Prettier config
- typecheck and test scripts in the pre-commit hook

## Steps
1. Detect package manager
2. Install dependencies: husky lint-staged prettier
3. Initialize Husky: npx husky init
4. Create .husky/pre-commit
5. Create .lintstagedrc
6. Create .prettierrc (if missing)
7. Verify
8. Commit

## Credit

This skill is based on the work of **Matt Pocock** ([@mattpocock](https://github.com/mattpocock)). Original source: [mattpocock/skills](https://github.com/mattpocock/skills). Licensed under MIT.

---

## How to use?

### 1. Download
Go to the [AGENT KD SKILL gallery](https://ctaxnagomi.github.io/agent-kd-skill/) and find this skill card. Click **Download** to save the SKILL.md file to your computer.

### 2. Install
Copy the downloaded SKILL.md into your agent's skills directory:

| Agent | Path |
|-------|------|
| **opencode** | ~/.config/opencode/skills/<skill-name>/SKILL.md |
| **Claude Code** | ~/.claude/skills/<skill-name>/SKILL.md |
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add ctaxnagomi/agent-kd-skill/setup-pre-commit@sha256:1dd96b0621505572

The line at the top of this page pins the label git:20260826.54f6831, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_nuwe72ifgwsrnu2y.svg)](https://markdownregistry.com/a/art_nuwe72ifgwsrnu2y)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, between Aug 24, 2026 and Aug 26, 2026, more than one a day.

versioncommittedcommitsizeaudit
git:20260826.54f6831 latest2026-08-26 54f6831 2,054 BC view · diff
git:20260824.dfd64f32026-08-24 dfd64f3 2,056 BC view · diff
git:20260824.da779f92026-08-24 da779f9 992 BC view

Audit of the latest version

C  15 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • fail: Frontmatter declares a name
  • fail: Frontmatter declares a description
  • pass: Frontmatter block present
  • pass: Size between 200 bytes and 200 KB (2054 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.

Source

GitHub

ctaxnagomi/agent-kd-skill · 3 stars · license none declared · pushed 2026-10-14 · branch master

API

GET https://markdownregistry.com/api/v1/artifacts/art_nuwe72ifgwsrnu2y
GET https://markdownregistry.com/api/v1/resolve?ref=ctaxnagomi/agent-kd-skill/setup-pre-commit
GET https://markdownregistry.com/api/v1/blob/1dd96b0621505572ffc5bda4d99ff1151d8f32b70996aab7d34d5b197090c1e0

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from ctaxnagomi/agent-kd-skill

grill-me SKILL.md skill
ctaxnagomi/agent-kd-skill · skills/agent-sub/grill-me/SKILL.md
git:20260826.54f6831 · audit C · 3 stars
agent-memory SKILL.md skill
ctaxnagomi/agent-kd-skill · skills/custom/agent-memory/SKILL.md
git:20260826.54f6831 · audit C · 3 stars
ask-matt SKILL.md skill
ctaxnagomi/agent-kd-skill · skills/custom/ask-matt/SKILL.md
git:20260826.54f6831 · audit C · 3 stars
code-review SKILL.md skill
ctaxnagomi/agent-kd-skill · skills/custom/code-review/SKILL.md
git:20260826.54f6831 · audit C · 3 stars
codebase-design SKILL.md skill
ctaxnagomi/agent-kd-skill · skills/custom/codebase-design/SKILL.md
git:20260826.54f6831 · audit C · 3 stars
deepseek-harness SKILL.md skill
ctaxnagomi/agent-kd-skill · skills/custom/deepseek-harness/SKILL.md · Fetch, harness, and deploy Deepseek models with full repo instructions, file management, and agent integration.
git:20260826.fc8b2a5 · audit B · 3 stars
design SKILL.md skill
ctaxnagomi/agent-kd-skill · skills/custom/design/SKILL.md · UI/UX design system — skewed glass cards, neon border-trace buttons, translucent iOS aesthetic with per-category color…
git:20260826.f28e6ab · audit B · 3 stars
diagnosing-bugs SKILL.md skill
ctaxnagomi/agent-kd-skill · skills/custom/diagnosing-bugs/SKILL.md
git:20260826.54f6831 · audit C · 3 stars
domain-modeling SKILL.md skill
ctaxnagomi/agent-kd-skill · skills/custom/domain-modeling/SKILL.md
git:20260826.54f6831 · audit C · 3 stars
git-guardrails-claude-code SKILL.md skill
ctaxnagomi/agent-kd-skill · skills/custom/git-guardrails-claude-code/SKILL.md
git:20260826.54f6831 · audit C · 3 stars
grill-with-docs SKILL.md skill
ctaxnagomi/agent-kd-skill · skills/custom/grill-with-docs/SKILL.md
git:20260826.54f6831 · audit C · 3 stars
grilling SKILL.md skill
ctaxnagomi/agent-kd-skill · skills/custom/grilling/SKILL.md
git:20260826.54f6831 · audit C · 3 stars

Every file in ctaxnagomi/agent-kd-skill

Other files named setup-pre-commit

setup-pre-commit SKILL.md skill
vinvcn/mattpocock-skills-zh-cn · skills/misc/setup-pre-commit/SKILL.md · 在当前仓库设置 Husky pre-commit hooks,集成 lint-staged (Prettier)、类型检查和测试。适用于用户想添加 pre-commit hooks、设置 Husky、配置…
git:20261008.5be0dc1 · audit A · 5,110 stars
setup-pre-commit SKILL.md skill
asymmetric-al/core · .agents/skills/setup-pre-commit/SKILL.md · Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user…
git:20260923.15c9348 · audit A · 379 stars
setup-pre-commit SKILL.md skill
rudycity/superagent · .agents/skills/setup-pre-commit/SKILL.md · Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user…
git:20260626.019dba9 · audit A · 52 stars
setup-pre-commit SKILL.md skill
outlinedriven/odin-claude-plugin · plugins/odin-git/skills/setup-pre-commit/SKILL.md · Use when installing or repairing a repo-local pre-commit hook from the project gates, or when a repo needs…
git:20260904.2014e73 · audit A · 38 stars
setup-pre-commit SKILL.md skill
vodailocz/kilo-kit-mcp · skills/productivity/setup-pre-commit/SKILL.md · Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user…
git:20260821.05c0d52 · audit A · 28 stars
setup-pre-commit SKILL.md skill
mambo-wang/codewiki-plus · .codebuddy/skills/setup-pre-commit/SKILL.md · Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user…
git:20260916.5a385b8 · audit A · 20 stars
setup-pre-commit SKILL.md skill
mambo-wang/codewiki-plus · .trae/skills/setup-pre-commit/SKILL.md · Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user…
git:20260916.5a385b8 · audit A · 20 stars
setup-pre-commit SKILL.md skill
chrislacey89/skills · setup-pre-commit/SKILL.md · Infrastructure skill for setting up commit-time quality gates. Use when a repo needs Lefthook-based pre-commit hooks…
git:20261014.01ed277 · audit A · 4 stars

Browse by kind, by grade C, or by owner.