dbatools is a PowerShell toolkit for automating SQL Server administration and moving SQL Server instances between environments. It is for database administrators who manage SQL Server systems and migrations.
Borrowing it
Nothing to install: this file belongs to dataplat/dbatools. 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/dataplat/dbatools/development/.claude/skills/precommit/SKILL.mdgit clone --depth 1 https://github.com/dataplat/dbatoolsWrote 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/dataplat/dbatools/precommit)<a href="https://agentmods.dev/skills/dataplat/dbatools/precommit"><img src="https://agentmods.dev/badge/skills/dataplat/dbatools/precommit/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/dataplat/dbatools/precommit"><img src="https://agentmods.dev/badge/skills/dataplat/dbatools/precommit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00034 | $0.00441 |
| Opus 5.5 | $0.00014 | $0.00176 |
| Sonnet 5.5 | $0.00007 | $0.00088 |
| Haiku 4.5 | $0.00003 | $0.00044 |
Grade A, and why
precommit 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.
What it actually says
Precommit Quality Sweep
Run the same gates the Stop hooks enforce, but on demand and against the full working diff (including changes made via Bash, which the session-scoped auto-review can't see). Report a single pass/fail summary at the end.
Gates, in order
1. Style scan (changed PowerShell files)
For each changed *.ps1 (from git diff --name-only HEAD + untracked), check the dbatools style rules from CLAUDE.md: no backticks for line continuation, no = $true in parameter attributes, no ::new(), double quotes not single quotes, $splat<Purpose> naming, no ArrayList/List collection, hashtable = alignment, no trailing whitespace. Report violations as path:line — rule.
2. Registration check (new commands)
For each new public/*.ps1, confirm the function name appears in dbatools.psd1 (FunctionsToExport) AND dbatools.psm1.
3. TODO sweep
grep -n -i -E '\b(TODO|FIXME|HACK|XXX|WORKAROUND)\b' across changed code files (exclude .claude/). Each hit must be resolved or explicitly acknowledged by the user.
4. Codex review (if codex is installed)
Invoke the /codex skill with uncommitted scope. Skip with a note if codex is not installed.
5. Commit message reminder
Remind that the commit message must include the (do <CommandName>) CI targeting pattern.
Output
Finish with a table: gate | result (PASS / FAIL / SKIPPED-why) | details. If everything passes, say the changes are ready to commit.
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 · 36 lines · 34 tokens per session scan A e1a8666219c8
precommit is a skill published in the GitHub repository dataplat/dbatools (2,858 stars, last pushed 4d ago), licensed MIT. It adds 34 tokens to every session and 441 once invoked, about $0.0001 per session on Opus 5.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.
precommit compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| precommitdataplat/dbatools | Skill | 2.9k | 4d ago | MIT | A | 34 | Claude Code |
| team-reviewwesammustafa/Claude-Code-Everything-You-Need-to-Know | Skill | 3.5k | 3d ago | none | A | 34 | Claude Code, Codex |
| review-checklistwesammustafa/Claude-Code-Everything-You-Need-to-Know | Skill | 3.5k | 3d ago | none | A | 25 | Claude Code, Codex |
| code-auditorbahayonghang/my-ai-cli-toolkit | Skill | 17 | 8d ago | MIT | A | 176 | Claude Code |
| parity-guard-test-patternfabioc-aloha/Alex_Skill_Mall | Skill | 5 | yesterday | MIT | A | 28 | Claude Code, Codex |
| testing-guideAsiaOstrich/universal-dev-standards | Skill | 84 | 2d ago | none | A | 152 | Claude Code |
| journey-test-assistantAsiaOstrich/universal-dev-standards | Skill | 84 | 2d ago | none | A | 170 | Claude Code |