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 sungurerdim/dev-skills --skill ds-gategit clone --depth 1 https://github.com/sungurerdim/dev-skillsWrote 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/sungurerdim/dev-skills/ds-gate)<a href="https://agentmods.dev/skills/sungurerdim/dev-skills/ds-gate"><img src="https://agentmods.dev/badge/skills/sungurerdim/dev-skills/ds-gate/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/sungurerdim/dev-skills/ds-gate"><img src="https://agentmods.dev/badge/skills/sungurerdim/dev-skills/ds-gate.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.00065 | $0.02115 |
| Opus 5.5 | $0.00026 | $0.00846 |
| Sonnet 5.5 | $0.00013 | $0.00423 |
| Haiku 4.5 | $0.00006 | $0.00212 |
Grade B, and why
ds-gate scanned grade B 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 16d 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
| `claude-code` | before done | `{py} {gate} install --register` → Stop hook `"{py}" "{gate}" gate` in `~/.claude/settings.json`; auto-detects trusted repos (`roots` in `~/.claude/ds-gate.config.json`) | How it starts
The opening of the file, as written. The whole thing — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/ds-gate
Make the project's checks a machine signal: one entry point, run automatically before the agent may stop or commit. Follows kernel.md; this file adds only the gate specifics. Owns the gate, not the fixes — a red gate is fixed at its cause, never weakened.
Input
| Word | Effect |
|---|---|
| (none) | Full setup of this repo: steps 1-5 below |
checks |
Steps 1-2 only: make sure each check exists and runs |
arm [name] |
Steps 3-4 only: entry point (written if missing) and the host's arm; a name forces one: claude-code · codex · gemini · aider · git-hook |
prove |
Step 5 only: show the wired arm block on a failing probe file and pass after it is deleted |
run |
Run this repo's entry point now and report; no setup |
status |
Report the marker, what the gate resolves here, which arms are wired |
off / on |
Set "enabled" in .claude/ds-gate.json (per-repo kill switch) |
install |
One-time global install of the Claude Code Stop hook (ds-gate.py install --register) |
uninstall |
Remove the global hook entry and file, or this repo's arm |
inv "<text>" |
Build a gate for one invariant no tool ships (below) |
ask |
Questions with a recommended option at each decision (kernel §5) |
Every part runs alone: it does step 1's detection itself and reads the marker when it needs the entry point. The gate always runs the whole project's checks, never only changed files: a local change can break a check anywhere.
{py} below = the absolute path of a Python ≥ 3.8 interpreter; {gate} = ~/.claude/hooks/ds-gate.py after install, else assets/ds-gate.py beside this file. Stdlib only, same on macOS, Linux and Windows; no shell launcher.
Done when
The entry point runs green; the wired arm is shown blocking on a failing probe file and passing after it is deleted; git status matches its state before the run apart from the setup's own files; every existing repo check is wired or listed excluded-with-reason.
What ships with it
3 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.
- 16d ago Changed · +1 lines 2dd613818611
- 17d ago First seen · 83 lines · 65 tokens per session scan B 391f4c75c903
ds-gate is a skill published in the GitHub repository sungurerdim/dev-skills (1 stars, last pushed 12d ago), licensed MIT. It adds 65 tokens to every session and 2,115 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-15.
ds-gate compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ds-gatesungurerdim/dev-skills | Skill | 1 | 12d ago | MIT | B | 65 | Claude Code |
| gitentropy-cloud/attractor-guided-engineering-template | Skill | 83 | yesterday | MIT | A | 46 | Claude Code, Codex |
| ring:committing-changesLerianStudio/ring | Skill | 218 | 1mo ago | Apache-2.0 | A | 74 | Claude Code, Cursor |
| ring:opening-pull-requestsLerianStudio/ring | Skill | 218 | 1mo ago | Apache-2.0 | A | 83 | Claude Code, Cursor |
| ring:shipping-changesLerianStudio/ring | Skill | 218 | 1mo ago | Apache-2.0 | A | 86 | Claude Code, Cursor |
| ring:generating-pr-descriptionsLerianStudio/ring | Skill | 218 | 1mo ago | Apache-2.0 | A | 61 | Claude Code, Cursor |
| ring:generating-release-guidesLerianStudio/ring | Skill | 218 | 1mo ago | Apache-2.0 | A | 85 | Cursor |