ds-gate

ds-gate is a skill for Claude Code from sungurerdim/dev-skills. It costs 65 tokens per session (2,115 once invoked), scanned B, original, MIT.

A local quality gate that runs a repository's formatting, lint, type, and test checks before an agent stops or a commit is made. It can also enforce one custom rule.

In plain words
What is it for?
Use it to create or run one entry point for project checks, connect it to an AI tool or Git hook, test that the gate catches a deliberate failure, and inspect or disable the gate.
Why use it?
It turns checks people might forget into an automatic stop signal. This helps prevent unfinished or invalid code from being treated as done or committed.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code; reads ~/.codex paths.

Good fit Use it to create or run one entry point for project checks, connect it to an AI tool or Git hook, test that the gate catches a deliberate failure, and inspect or disable the gate.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sungurerdim/dev-skills/ds-gate
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.

Any agent
npx skills add sungurerdim/dev-skills --skill ds-gate
Clone the repo
git clone --depth 1 https://github.com/sungurerdim/dev-skills

Made for: Claude Code.

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 ds-gate

README.md
[![agentmods](https://agentmods.dev/badge/skills/sungurerdim/dev-skills/ds-gate/github.svg)](https://agentmods.dev/skills/sungurerdim/dev-skills/ds-gate)
Your own site
<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.

agentmods 80×15 button for ds-gate

Your own site · 80×15
<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>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,115 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original 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.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

Measured 16d ago against content hash 2dd613818611, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 1 executable file (assets/ds-gate.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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`) |
ds-gate/SKILL.md · 84 lines

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.

Read the full file on GitHub · 84 lines

Files

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.

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. 16d ago Changed · +1 lines 2dd613818611
  2. 17d ago First seen · 83 lines · 65 tokens per session scan B 391f4c75c903

Subscribe to this mod's changes

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.

Related

ds-gate compared with skills from other repositories

ds-gate next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ds-gatesungurerdim/dev-skillsSkill112d agoMITB65Claude Code
gitentropy-cloud/attractor-guided-engineering-templateSkill83yesterdayMITA46Claude Code, Codex
ring:committing-changesLerianStudio/ringSkill2181mo agoApache-2.0A74Claude Code, Cursor
ring:opening-pull-requestsLerianStudio/ringSkill2181mo agoApache-2.0A83Claude Code, Cursor
ring:shipping-changesLerianStudio/ringSkill2181mo agoApache-2.0A86Claude Code, Cursor
ring:generating-pr-descriptionsLerianStudio/ringSkill2181mo agoApache-2.0A61Claude Code, Cursor
ring:generating-release-guidesLerianStudio/ringSkill2181mo agoApache-2.0A85Cursor