audit-gate-logic

audit-gate-logic is a skill for Claude Code, Codex from kensaurus/cursor-kenji. It costs 68 tokens per session (2,646 once invoked), scanned A, original, MIT.

A read-only review of CI checks, the automated tests and rules that run before code is merged or released, to see whether they really block regressions.

In plain words
What is it for?
Use it to investigate why a regression passed CI and to map duplicate, missing, or ineffective pipeline gates.
Why use it?
It finds checks that can be bypassed, required checks that are not actually enforced, conflicting rules, and baselines that can be gamed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to investigate why a regression passed CI and to map duplicate, missing, or ineffective pipeline gates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kensaurus/cursor-kenji/audit-gate-logic
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 kensaurus/cursor-kenji --skill audit-gate-logic
Clone the repo
git clone --depth 1 https://github.com/kensaurus/cursor-kenji

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 audit-gate-logic

README.md
[![agentmods](https://agentmods.dev/badge/skills/kensaurus/cursor-kenji/audit-gate-logic.svg)](https://agentmods.dev/skills/kensaurus/cursor-kenji/audit-gate-logic)
Your own site
<a href="https://agentmods.dev/skills/kensaurus/cursor-kenji/audit-gate-logic"><img src="https://agentmods.dev/badge/skills/kensaurus/cursor-kenji/audit-gate-logic.svg" alt="Measured on agentmods" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,646 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00068 $0.02646
Opus 5 $0.00034 $0.01323
Sonnet 5 $0.00014 $0.00529
Haiku 4.5 $0.00007 $0.00265

Measured 4d ago against content hash c54bcdcd3999, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

audit-gate-logic 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 4d 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.

skills/audit-gate-logic/SKILL.md · 220 lines

How it starts

The opening of the file, as written. The whole thing — 220 lines — stays where its author put it; the contents beside it link to each section on GitHub.

audit-gate-logic — Does the gate actually stop what it claims?

Degree of freedom: MIXED — Phases 0–2.5 [HIGH freedom]; Phase 3 history/probe [LOW freedom — run exactly] (no scratch branch unless asked).

Read-only. audit-cicd asks "is the pipeline fast, cheap, and safe to run." This asks "does the gate stop what it claims to stop." A green check is a claim. The expensive failures are the ones where CI passed and shouldn't have.

Present findings. Do not edit workflows, branch protection, or baselines. Consolidation of the archaeology map → housekeep-gates. Rule-to-mechanical gaps → enhance-agent-guardrails. Whether the rule content is right (remedy, named token, Tier-D practice) → audit-doctrine.

This skill vs neighbors

Skill Owns
audit-gate-logic (this) Bypass, ratchet integrity, conflicts, required-vs-actual, archaeology map
housekeep-gates Executes the map — aggregator, delete losers, prove
audit-cicd Pipeline cost, speed, storage, runner safety
workflow-quality-gate Runs the pre-release sweep — does not audit its soundness
enhance-agent-guardrails Installs new gates; does not audit existing gate logic
burndown-full / workflow-green-repo Execute MATCH/DONE or green the repo — ratchet holes stay here
audit-codemod-safety Bulk-transform behavior; if CI waved a semantic bug through, that is also a finding here
test-mutation Assertion-strength gate this map should name if coverage is the only test metric

Degrade honestly. Highest-value "is it actually required" checks need branch-protection / rulesets via the repo settings API (gh api), not just YAML. If settings are invisible, audit the workflow files and say so — you can still catch continue-on-error and ratchet classes, but you cannot confirm the required-check list.

How to reason

  1. Observe — quote the if:, continue-on-error, required-check list, or history
  2. Interpret — can a merge go green while the claimed check did not run or failed?
  3. Classify — silent bypass / ratchet game / conflict / archaeology / correct-as-is
  4. Severity — ships-broken-green = critical

Read the full file on GitHub · 220 lines

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. 4d ago First seen · 220 lines · 68 tokens per session scan A c54bcdcd3999

Subscribe to this mod's changes

audit-gate-logic is a skill published in the GitHub repository kensaurus/cursor-kenji (9 stars, last pushed 10d ago), licensed MIT. It adds 68 tokens to every session and 2,646 once invoked, about $0.0003 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-09-03.

Related

Other skills, from other repositories

ci-cd

Workflow for creating a complete CI/CD pipeline. Use when the user needs to set up or modify CI/CD pipelines.

girijashankarj/cursor-handbook · 27 tokens

review-ugc-render

Mandatory pre-publish review gate for a UGC video render. Transcribes the finished render's AUDIO with Whisper and word-diffs it against the approved spoken script, then gates setfinalrender — blocking a render whose generated audio mis-voices a word (e.g. the approved "human-vetted" spoken as "human witted"), drops…

gooseworks-ai/goose-skills · 116 tokens

visual-qa

Runs rigorous visual QA across web, terminal, and paginated surfaces with screenshot evidence and a verdict. Use for any UI build or change, or when asked whether a page, component, or TUI looks right.

code-yeongyu/oh-my-openagent · 47 tokens

agent-browser

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

code-yeongyu/oh-my-openagent · 51 tokens

remove-ai-slops

Removes AI-generated code smells from branch changes or an explicit file list behind regression tests. Use when the user asks to clean up, deslop, or remove AI-slop patterns from recent changes.

code-yeongyu/oh-my-openagent · 45 tokens

patrol-e2e-testing

Use when writing E2E/integration tests, testing native interactions like permissions or system dialogs, capturing UI regressions, or validating cross-platform behavior (Patrol 4.x).

evanca/flutter-ai-rules · 43 tokens