guard-inference

guard-inference is a skill for Codex from Eliyce/paqad-ai. It costs 43 tokens per session (607 once invoked), scanned A, original, MIT.

A code-analysis skill that finds the checks controlling access to screens and actions, such as login status, roles, permissions, feature flags, or data conditions. It records only protections that the code actually enforces.

In plain words
What is it for?
Use it to document and verify authentication, authorization, feature-flag, and data-state checks around routes, pages, and transitions.
Why use it?
Access rules are easy to assume but hard to trace across a codebase. This helps show who can reach each surface and what condition allows access.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to document and verify authentication, authorization, feature-flag, and data-state checks around routes, pages, and transitions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eliyce/paqad-ai/guard-inference
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 Eliyce/paqad-ai --skill guard-inference
Clone the repo
git clone --depth 1 https://github.com/Eliyce/paqad-ai

Made for: 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 guard-inference

README.md
[![agentmods](https://agentmods.dev/badge/skills/eliyce/paqad-ai/guard-inference/github.svg)](https://agentmods.dev/skills/eliyce/paqad-ai/guard-inference)
Your own site
<a href="https://agentmods.dev/skills/eliyce/paqad-ai/guard-inference"><img src="https://agentmods.dev/badge/skills/eliyce/paqad-ai/guard-inference/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 guard-inference

Your own site · 80×15
<a href="https://agentmods.dev/skills/eliyce/paqad-ai/guard-inference"><img src="https://agentmods.dev/badge/skills/eliyce/paqad-ai/guard-inference.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 607 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.00043 $0.00607
Opus 5 $0.00022 $0.00303
Sonnet 5 $0.00009 $0.00121
Haiku 4.5 $0.00004 $0.00061

Measured 8d ago against content hash 104c32cc298f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

guard-inference 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 8d 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.

runtime/capabilities/coding/skills/guard-inference/SKILL.md · 67 lines

How it starts

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

What It Does

Adds the access-control layer: the guards that decide who may reach a surface or take a transition, and the satisfy_via that says how a guard is met. Runs in parallel with transition-tracing over the same modeled surfaces. A guard is recorded only where the code enforces it — an inferred guard the code does not check is a false sense of security.

Use This When

Use this after modeling, alongside transition-tracing. It only adds guards and their satisfaction; edges are the other skill's job.

Inputs

  • The modeled surfaces and traced transitions.
  • The enforcement points in the code: middleware, decorators, route metadata, policy checks, feature-flag reads.
  • Read references/guard-evidence.md before recording a guard.

Procedure

The graph's guard-coverage analysis is the engine's; your job is to propose evidenced guards.

  1. For each surface, area, and transition, find the enforcement that gates it: a middleware, a decorator, a policy, a flag read.
  2. Record the guard's kind (permission | role | feature-flag | auth-state | data-state | capability | environment), what it requires, and its satisfy_via, each with a file:line.
  3. Re-run paqad-ai sitemap run so its guard-coverage analysis flags backstage surfaces left guard-less.

Output Contract

  • A JSON object { guards: [{ id, kind, requires, satisfy_via, evidence }], applied: [{ surface_or_edge, guard }] }.
  • Every guard carries a resolving file:line that shows the enforcement.
  • Every satisfy_via names how the guard is met (an actor, a role, a flag variant).

Escalate / Stop Conditions

  • Do not record a guard the code does not enforce. An intended-but-unchecked guard is a finding about missing enforcement, not a guard on the map.
  • Flag a backstage surface with no guard rather than assuming an inherited one that is not evidenced.
  • Never expose a secret or credential value in guard evidence — cite the file:line and the enforcement, not the secret's bytes.

Read the full file on GitHub · 67 lines

Files

What ships with it

2 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. 8d ago First seen · 67 lines · 43 tokens per session scan A 104c32cc298f

Subscribe to this mod's changes

guard-inference is a skill published in the GitHub repository Eliyce/paqad-ai (8 stars, last pushed today), licensed MIT. It adds 43 tokens to every session and 607 once invoked, about $0.0002 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.