setup-pre-commit

setup-pre-commit is a skill for Claude Code, Codex from Sarthib7/agentsmith. It costs 62 tokens per session (654 once invoked), scanned A, original, no licence file.

A setup tool for Husky pre-commit hooks, which run checks before Git creates a commit. It configures lint-staged with Prettier, type checking, and tests.

In plain words
What is it for?
Use it to add commit-time formatting, type checking, and test checks to a JavaScript or TypeScript project.
Why use it?
It catches formatting, type, and test problems before they enter the repository's commit history. Checks are focused on files being committed.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/sarthib7/agentsmith/setup-pre-commit
Any agent
npx skills add Sarthib7/agentsmith --skill setup-pre-commit
Clone the repo
git clone --depth 1 https://github.com/Sarthib7/agentsmith

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setup-pre-commit

README.md
[![agentmods](https://agentmods.dev/badge/skills/sarthib7/agentsmith/setup-pre-commit.svg)](https://agentmods.dev/skills/sarthib7/agentsmith/setup-pre-commit)
Your own site
<a href="https://agentmods.dev/skills/sarthib7/agentsmith/setup-pre-commit"><img src="https://agentmods.dev/badge/skills/sarthib7/agentsmith/setup-pre-commit.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 654 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00062 $0.00654
Opus 5 $0.00031 $0.00327
Sonnet 5 $0.00012 $0.00131
Haiku 4.5 $0.00006 $0.00065

Measured yesterday against content hash 872f4037cb7e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

setup-pre-commit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/setup-pre-commit/SKILL.md · 92 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 92 lines · 62 tokens per session scan A 872f4037cb7e

Subscribe to this mod's changes

setup-pre-commit is a skill published in the GitHub repository Sarthib7/agentsmith (9 stars, last pushed 4d ago), with no licence file. It adds 62 tokens to every session and 654 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

ship-it

Code commit, PR creation, merge, and issue closure workflow via GitHub CLI (gh). Triggers after a goal (GitHub Issue) implementation is complete — commit code, push branch, create PR, merge, then close the issue. Use when the user says "提交代码", "commit and merge", "创建PR", "合入", "关闭issue", "ship-it", or when a goal…

smallnest/goal-workflow · 96 tokens

dependabot

Comprehensive guide for configuring and managing GitHub Dependabot. Use this skill when users ask about creating or optimizing dependabot.yml files, managing Dependabot pull requests, configuring dependency update strategies, setting up grouped updates, monorepo patterns, multi-ecosystem groups, security update…

boshi-xixixi/TraeSkill · 136 tokens

commit-message-storyteller

Analyzes git diffs or staged changes and generates narrative commit messages that explain WHY a change was made, not just what changed — following Conventional Commits format. Use when asked to "write a commit message", "generate a commit", "describe my changes", "what should I commit this as", "commit this"…

boshi-xixixi/TraeSkill · 98 tokens

conventional-commit

Prompt and workflow for generating conventional commit messages using a structured XML format. Guides users to create standardized, descriptive commit messages in line with the Conventional Commits specification, including instructions, examples, and validation.

boshi-xixixi/TraeSkill · 45 tokens

hashiiiii-git

Use this skill to name a Git branch or write a commit message.

hashiiiii/rules-for-ai · 20 tokens

gitops

Git operations wrapper: sync, stage, commit, push. Generates Conventional Commits messages with .scratch artifact references. Use when the user says gitops, commit, push, sync code, or needs version control operations.

yugasun/aiops · 47 tokens