ai-dev-os-scan

ai-dev-os-scan is a cursor rule for coding agents from yunbow/ai-dev-os-plugin-cursor. It costs 51 tokens per session (847 once invoked), scanned A, original, MIT.

Rules for scanning every source file in a project against its AI Dev OS guidelines. It finds the guideline files, maps them to relevant code, and checks required rules across the project.

In plain words
What is it for?
Use it for initial audits, periodic reviews, or full scans after guideline changes, covering source discovery, ignored directories, file-to-guideline mapping, and explicit requirements.
Why use it?
It provides a full-project compliance review instead of checking only recently changed files, helping uncover existing violations and gaps after new guidelines are added.

Cursor rule

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 rules/yunbow/ai-dev-os-plugin-cursor/ai-dev-os-scan
Clone the repo
git clone --depth 1 https://github.com/yunbow/ai-dev-os-plugin-cursor

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 ai-dev-os-scan

README.md
[![agentmods](https://agentmods.dev/badge/rules/yunbow/ai-dev-os-plugin-cursor/ai-dev-os-scan.svg)](https://agentmods.dev/rules/yunbow/ai-dev-os-plugin-cursor/ai-dev-os-scan)
Your own site
<a href="https://agentmods.dev/rules/yunbow/ai-dev-os-plugin-cursor/ai-dev-os-scan"><img src="https://agentmods.dev/badge/rules/yunbow/ai-dev-os-plugin-cursor/ai-dev-os-scan.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 847 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.00051 $0.00847
Opus 5 $0.00026 $0.00424
Sonnet 5 $0.00010 $0.00169
Haiku 4.5 $0.00005 $0.00085

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

Security

Grade A, and why

ai-dev-os-scan 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.

rules/ai-dev-os-scan.mdc · 94 lines

How it starts

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

AI Dev OS Full Project Scan

Execution Flow

1. Parse .cursorrules

Extract the list of guideline file paths from .cursorrules (or CLAUDE.md / AGENTS.md if present).

2. Discover Target Files

If the user provides a directory or glob pattern, use that as the scope. Otherwise, scan the entire project:

  • Find all source files (e.g., **/*.{ts,tsx,js,jsx,py,go})
  • Exclude common non-source directories: node_modules/, .git/, dist/, build/, .next/, __pycache__/, .venv/, vendor/
  • Exclude files listed in .gitignore

3. Build Dynamic Mapping

Dynamically build the mapping between file patterns and guidelines.

Examples by tech stack:

  • Python: *.py → code.md, naming.md, validation.md; */router.py → security.md, cors.md; */models.py → naming.md, validation.md
  • Next.js: *.tsx → ui.md, form.md, code.md, naming.md; app/**/page.tsx → routing.md; app/**/action.ts → server-actions.md
  • Go: *.go → code.md, naming.md, error-handling.md

4. Extract Check Items

Auto-detect check items from each guideline using the following keywords:

  • "MUST", "MUST NOT", "PROHIBITED", "REQUIRED", etc.
  • If frontmatter contains checklist: [...], use that instead

If checklist templates exist in .cursor/checklist-templates/ for the detected tech stack, load them as a reference.

5. Run Checks (Batch Processing)

Process files in batches to manage context window:

  • Group files by directory or module
  • For each batch:
    • Auto-check items detectable via static analysis
    • Flag items requiring judgment with ⚠️ for human review
  • Track progress: "Scanning batch N/M..."

6. Aggregate Results

Combine results from all batches:

  • Deduplicate violations
  • Sort by severity (❌ violations first, then ⚠️ reviews)
  • Group by guideline for pattern analysis

7. Report Output

Output in the following format:

## AI Dev OS Full Project Scan Report

### Summary
- Total files scanned: N
- ✅ Passed: N / ⚠️ Review: N / ❌ Violation: N
- Compliance rate: N%

### Violations by Guideline
| Guideline | Violations | Files Affected | Most Common Issue |
|-----------|-----------|----------------|-------------------|

### Top Violations
| # | File | Line | Rule | Guideline | Principle |
|---|------|------|------|-----------|-----------|

### Review Required
| File | Line | Item | Guideline |
|------|------|------|-----------|

### Hot Spots (Files with Most Violations)
| File | Violations | Reviews | Top Issues |
|------|-----------|---------|------------|

### Recommendations
1. [Priority: High] ...
2. [Priority: Medium] ...

### Why These Rules?
> Explains the rationale for the most frequent violations, tracing back to L2 principles → L1 philosophy

Read the full file on GitHub · 94 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. 3d ago First seen · 94 lines · 51 tokens per session scan A 406c63342f61

Subscribe to this mod's changes

ai-dev-os-scan is a cursor rule published in the GitHub repository yunbow/ai-dev-os-plugin-cursor (2 stars, last pushed 5mo ago), licensed MIT. It adds 51 tokens to every session and 847 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-08-31.