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.
npx skills add sd0xdev/sd0x-harness --skill smart-commitgit clone --depth 1 https://github.com/sd0xdev/sd0x-harnessWrote 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/sd0xdev/sd0x-harness/smart-commit)<a href="https://agentmods.dev/skills/sd0xdev/sd0x-harness/smart-commit"><img src="https://agentmods.dev/badge/skills/sd0xdev/sd0x-harness/smart-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/sd0xdev/sd0x-harness/smart-commit"><img src="https://agentmods.dev/badge/skills/sd0xdev/sd0x-harness/smart-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.00089 | $0.19561 |
| Opus 5.5 | $0.00036 | $0.07824 |
| Sonnet 5.5 | $0.00018 | $0.03912 |
| Haiku 4.5 | $0.00009 | $0.01956 |
Grade C, and why
smart-commit scanned grade C with 1 finding 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 1mo 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.
Reaches for credential fileshighPrivilege escalation
SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.
.env* | *.pem | *.key | *.p12 | id_rsa* | .aws/credentials | *.secret How it starts
The opening of the file, as written. The whole thing — 835 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Smart Commit
Read first: @skills/push-ci/references/authorization-contract.md before --execute commits anything — § Proactive Offer for the menu and the four Goal mode conditions, § Efficacy Boundary for what the per-use approval authorizes. If that Read fails, stop and report it; commit nothing (manual mode, which only prints commands, is unaffected).
Analyze uncommitted changes → group by cohesion → generate commit messages → output git commands (or execute directly with --execute).
Workflow
sequenceDiagram
participant C as Claude
participant U as User
C->>C: Step 1a: Detect permissions
C->>C: Step 1b: Learn commit style
C->>C: Step 1c: Identity diagnostics
C->>C: Step 1d: Signing diagnostics
C->>C: Step 1e: AI guard readiness
C->>C: Step 2: Pre-flight check (precommit)
C->>C: Step 3: Collect changes + exclude sensitive files
C->>C: Step 4: Group (high cohesion)
C->>U: Show commit plan (with Author/Signing/Guard)
U->>C: Confirm/adjust (Goal mode: printed with a [GOAL_COMMIT] record, not asked)
loop Each commit group
C->>C: Read diff → generate message
C->>C: AI trailer sanitization
alt --execute mode
C->>C: Runtime validation → git commit
else manual mode
C->>U: Output git commands
end
end
C->>C: Step 6: Verification + post-commit leak detection
Git Environment Policy (applies to every step below)
Every git command this skill runs itself — read or write, either mode — resolves the same
question: which repository, tree, index, ancestry and configuration does it act on? The answer is
pinned two ways, both defined in git-environment.md § 1: the
inherited GIT_* variables are stripped, and every command carries -C "$REPO_ROOT".
Where the stripping happens depends on who runs git:
| Callee | How the policy is applied |
|---|---|
A fence running git inline |
The canonical env -u prefix, written out literally — never through a variable, because zsh does not word-split an expansion used as a command prefix |
A helper that runs its own git commands and does not strip (git-profile.sh) |
The prefix goes on the delegation, at the boundary |
A helper that strips the same list itself (smart-commit-inspect.sh, smart-commit-execute.sh) |
No prefix — the script's own unset block is the policy, and prefixing it as well would state the same rule twice in two places that could drift |
What ships with it
5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 1mo ago Changed · +3 lines ef204c2a682a
- 1mo ago Changed · +20 lines · +11 tokens per session 7091f3e964d9
- 2mo ago First seen · 812 lines · 78 tokens per session scan C 30923a0b7371
smart-commit is a skill published in the GitHub repository sd0xdev/sd0x-harness (194 stars, last pushed 1mo ago), licensed MIT. It adds 89 tokens to every session and 19,561 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
smart-commit compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| smart-commitsd0xdev/sd0x-harness | Skill | 194 | 1mo ago | MIT | C | 89 | Claude Code |
| comet-safe-deliveryrpamis/comet | Skill | 3.3k | yesterday | MIT | A | 78 | Claude Code, Codex |
| updateromiluz13/cc10x | Skill | 166 | 16d ago | MIT | A | 108 | Claude Code |
| resolving-merge-conflictsromiluz13/cc10x | Skill | 166 | 16d ago | MIT | A | 25 | Claude Code |
| vibe-cherry-pick-integrationash1794/vibe-engineering | Skill | 164 | 1mo ago | MIT | A | 35 | Claude Code |
| vibe-pre-commit-auditash1794/vibe-engineering | Skill | 164 | 1mo ago | MIT | A | 35 | Claude Code |
| unica-writingIngvarConsulting/unica | Skill | 245 | yesterday | none | A | 56 | Claude Code, Codex |