gate

gate is a skill for Claude Code, Codex from ysfAskri/archguardian. It costs 10 tokens per session (352 once invoked), scanned A, original, MIT.

A pass-or-fail check that compares an ArchGuardian scan with limits such as maximum errors, warnings, or duplicate code.

In plain words
What is it for?
Use it in development or continuous integration (automated checks run when code changes) to explain failed thresholds and the steps needed to pass.
Why use it?
It makes code quality enforceable by showing whether a project stays within agreed limits.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/ysfaskri/archguardian/gate
Any agent
npx skills add ysfAskri/archguardian --skill gate
Clone the repo
git clone --depth 1 https://github.com/ysfAskri/archguardian

Made for: Claude Code, Codex.

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 gate

README.md
[![agentmods](https://agentmods.dev/badge/skills/ysfaskri/archguardian/gate.svg)](https://agentmods.dev/skills/ysfaskri/archguardian/gate)
Your own site
<a href="https://agentmods.dev/skills/ysfaskri/archguardian/gate"><img src="https://agentmods.dev/badge/skills/ysfaskri/archguardian/gate.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 352 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00010 $0.00352
Opus 5 $0.00005 $0.00176
Sonnet 5 $0.00002 $0.00070
Haiku 4.5 $0.00001 $0.00035

Measured 3d ago against content hash 5e6f3a9752ca, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

gate 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 3d 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.

.claude/skills/gate/SKILL.md · 45 lines

What it actually says

archguardian gate

Run an archguardian scan with quality gate enforcement to check if the project meets configured thresholds.

Instructions

  1. Run the scan with quality gate enabled:

    npx archguardian scan --format json --quality-gate $ARGUMENTS
    
  2. Parse the JSON output and check the quality gate result:

    • passed: All thresholds are met
    • failed: One or more thresholds were exceeded
  3. If the quality gate passed, congratulate the user and show the threshold margins.

  4. If the quality gate failed, for each threshold failure explain:

    • Which metric failed (e.g., max errors, max warnings, max duplicates)
    • The configured threshold vs the actual value
    • Which findings contribute most to the failure
    • Concrete steps to get below the threshold
  5. If the user wants to adjust thresholds, guide them to update .archguard.yml:

    qualityGate:
      maxErrors: 0
      maxWarnings: 10
      maxDuplicates: 5
    

Tips

  • Quality gates are ideal for CI pipelines — use --ci github to get GitHub Actions annotation output.
  • If gates are too strict for a new project, suggest creating a /baseline first and tightening thresholds gradually.
  • If gates are too lenient, recommend lowering thresholds incrementally to drive continuous improvement.
  • The exit code is non-zero when the quality gate fails, making it usable in CI scripts.
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. 3d ago First seen · 45 lines · 10 tokens per session scan A 5e6f3a9752ca

Subscribe to this mod's changes

gate is a skill published in the GitHub repository ysfAskri/archguardian (4 stars, last pushed 6mo ago), licensed MIT. It adds 10 tokens to every session and 352 once invoked, about $0.0001 per session on Opus 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-08-31.