Borrowing it
Nothing to install: this file belongs to Cogni-AI-OU/vastai-host-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Cogni-AI-OU/vastai-host-mcp/main/.github/skills/pre-commit/SKILL.mdgit clone --depth 1 https://github.com/Cogni-AI-OU/vastai-host-mcpWrote 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.
[](https://agentmods.dev/skills/cogni-ai-ou/vastai-host-mcp/pre-commit)<a href="https://agentmods.dev/skills/cogni-ai-ou/vastai-host-mcp/pre-commit"><img src="https://agentmods.dev/badge/skills/cogni-ai-ou/vastai-host-mcp/pre-commit/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/cogni-ai-ou/vastai-host-mcp/pre-commit"><img src="https://agentmods.dev/badge/skills/cogni-ai-ou/vastai-host-mcp/pre-commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.02381 |
| Opus 5.5 | $0.00000 | $0.00952 |
| Sonnet 5.5 | $0.00000 | $0.00476 |
| Haiku 4.5 | $0.00000 | $0.00238 |
Grade A, and why
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 2mo ago.
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.
How it starts
The opening of the file, as written. The whole thing — 325 lines — stays where its author put it; the contents beside it link to each section on GitHub.
name: pre-commit description: Guide for using pre-commit hooks to validate code formatting, linting, and security checks before commits. license: MIT
Expert guide for pre-commit framework usage, configuration, and custom hook development. Focus on autonomous validation, diagnostics, and fix workflows.
Core Principles
- Staged files only: Pre-commit runs exclusively on staged (cached) files, not the entire working directory.
- Fast feedback: Catch issues before commit/push to reduce CI failures and review cycles.
- Configuration-driven: Hooks reference external config files (.yamllint, .markdownlint.yaml, etc.) for consistency.
- Idempotent fixes: Many hooks auto-fix issues (e.g., trailing-whitespace, end-of-file-fixer); re-stage and re-run to pass.
- Skip only when necessary: Use
--no-verifyorSKIP=<hook-id>sparingly; prefer fixing issues over bypassing validation.
Testing Commands
Run all hooks on all files (recommended before committing):
pre-commit run --all-files
Run all hooks on staged files only (default behavior):
pre-commit run
Run specific hook on all files:
pre-commit run <hook-id> --all-files
Run specific hook on staged files:
pre-commit run <hook-id>
Examples for individual linters:
pre-commit run yamllint --all-files # YAML linting
pre-commit run markdownlint --all-files # Markdown linting
pre-commit run flake8 --all-files # Python linting
pre-commit run black --all-files # Python formatting
pre-commit run ansible-lint --all-files # Ansible linting
pre-commit run actionlint --all-files # GitHub Actions workflow linting
pre-commit run gitleaks --all-files # Secret scanning
pre-commit run detect-secrets --all-files # Alternative secret detection
pre-commit run trailing-whitespace -a # Fix trailing spaces (auto-fix)
pre-commit run end-of-file-fixer -a # Fix EOF newlines (auto-fix)
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.
- 2mo ago First seen · 325 lines · 0 tokens per session scan A 73e3c59fedc8
pre-commit is a skill published in the GitHub repository Cogni-AI-OU/vastai-host-mcp (0 stars, last pushed 29d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,381 tokens. 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-08-31.
pre-commit compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pre-commitCogni-AI-OU/vastai-host-mcp | Skill | 0 | 29d ago | MIT | A | 0 | Claude Code, Codex |
| create-prprisma/orm | Skill | 48k | yesterday | Apache-2.0 | A | 48 | Claude Code, Codex |
| git-commitThinkInAIXYZ/deepchat | Skill | 6.4k | yesterday | Apache-2.0 | A | 15 | Claude Code, Codex |
| repo-syncdavidondrej/skills | Skill | 4.3k | 3d ago | MIT | A | 25 | Claude Code, Codex |
| engineer-bot-opsmakecindy/cindy | Skill | 9.3k | yesterday | Apache-2.0 | A | 57 | Claude Code, Codex |
| mcore-split-prNVIDIA/skills | Skill | 3.9k | yesterday | Apache-2.0 | A | 25 | Claude Code |
| git-commit-writermergisi/awesome-openclaw-agents | Skill | 4.1k | 2d ago | MIT | A | 53 | Claude Code, Codex |