aif-rules-check

aif-rules-check is a skill for Claude Code from lee-to/ai-factory. It costs 40 tokens per session (2,355 once invoked), scanned A, original, no licence file.

A read-only check that compares changed files or a Git reference with the project's rules. A Git reference is a named point such as a branch, tag, or commit.

In plain words
What is it for?
Use it as a dedicated project-rules compliance check for current changes or a selected Git reference.
Why use it?
It catches rule violations without running a full code review or implementation verification.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it as a dedicated project-rules compliance check for current changes or a selected Git reference.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lee-to/ai-factory/aif-rules-check
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 lee-to/ai-factory --skill aif-rules-check
Clone the repo
git clone --depth 1 https://github.com/lee-to/ai-factory

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 aif-rules-check

README.md
[![agentmods](https://agentmods.dev/badge/skills/lee-to/ai-factory/aif-rules-check/github.svg)](https://agentmods.dev/skills/lee-to/ai-factory/aif-rules-check)
Your own site
<a href="https://agentmods.dev/skills/lee-to/ai-factory/aif-rules-check"><img src="https://agentmods.dev/badge/skills/lee-to/ai-factory/aif-rules-check/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 aif-rules-check

Your own site · 80×15
<a href="https://agentmods.dev/skills/lee-to/ai-factory/aif-rules-check"><img src="https://agentmods.dev/badge/skills/lee-to/ai-factory/aif-rules-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,355 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Prompt Injection · line 148
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
How audits are shown
Origin unknown 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.00040 $0.02355
Opus 5 $0.00020 $0.01177
Sonnet 5 $0.00008 $0.00471
Haiku 4.5 $0.00004 $0.00235

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

Security

Grade A, and why

aif-rules-check 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 13d 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/aif-rules-check/SKILL.md · 235 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

1 file 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. 13d ago First seen · 235 lines · 40 tokens per session scan A cbc841cc9178

Subscribe to this mod's changes

aif-rules-check is a skill published in the GitHub repository lee-to/ai-factory (1,085 stars, last pushed yesterday), with no licence file. It adds 40 tokens to every session and 2,355 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-08-30.

Related

Other skills, from other repositories

gsd-pr-branch

Create a clean PR branch by filtering out .planning/ commits — ready for code review.

open-gsd/gsd-core · 23 tokens

pr-workflow

Pull request lifecycle: commit, codex review, sync, review, fix, status, cleanup, and PR mining. Use when user wants to commit changes, get a second-opinion code review from Codex, push changes, create a PR, check PR status, fix review comments, clean up branches after merge, or mine tribal knowledge from PR reviews.…

notque/vexjoy-agent · 125 tokens

squid-review

Push the committed feature branch, create or update its PR, then run Product Architect acceptance and PR-Reviewer on it. Output: a clean PR with no blockers, or ONE rollup task. Trigger after a feature's tasks are implemented and committed.

iusztinpaul/squid · 54 tokens

task-to-pr

Completes one or more tasks. Creates one tested and reviewed pull request for each task. Use to implement, build, fix, or deliver tasks, tickets, pull requests, or a milestone.

owainlewis/blueprint · 43 tokens

om-auto-fix-pr

Drive an open PR to merge-ready from its number — merges the latest base, then loops review-autofix (om-auto-review-pr), built-in CI stabilization, and UI verification (om-auto-qa-pr) until approvable, green, and QA-evidenced. A --ci-only mode drives just CI green on a PR or a plain branch. Files follow-up issues for…

open-mercato/skills · 115 tokens

om-approve-merge-pr

Approve (submit an approving review) and squash-merge a PR given only its number, refusing when the QA gate or a blocking label forbids it. Routes fixable blockers to om-auto-fix-pr (red CI via its --ci-only mode, or conflicts and review problems via the full loop). Optionally file a follow-up issue at the same time.…

open-mercato/skills · 109 tokens