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.
npx skills add krokoko/cairn --skill detect-ai-smellsgit clone --depth 1 https://github.com/krokoko/cairnWrote 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.
[](https://agentmods.dev/skills/krokoko/cairn/detect-ai-smells)<a href="https://agentmods.dev/skills/krokoko/cairn/detect-ai-smells"><img src="https://agentmods.dev/badge/skills/krokoko/cairn/detect-ai-smells/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.
<a href="https://agentmods.dev/skills/krokoko/cairn/detect-ai-smells"><img src="https://agentmods.dev/badge/skills/krokoko/cairn/detect-ai-smells.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00088 | $0.04287 |
| Opus 5.5 | $0.00035 | $0.01715 |
| Sonnet 5.5 | $0.00018 | $0.00857 |
| Haiku 4.5 | $0.00009 | $0.00429 |
Grade A, and why
detect-ai-smells 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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 202 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Assess AI Smell Detection Gates
Assess whether a codebase has gates in place to catch AI-generated code smells — patterns indicating output was produced for plausibility rather than understanding. Produce an ai-smells-gates-report.md with coverage of the 11 AI smell categories, gap analysis, recommendations for missing gates, and human review heuristics for what automation can't catch.
Workflow
Step 1: Load smell taxonomy
Load references/ai-smells-taxonomy.md for the 11 AI smell categories and their detection approaches.
These are the categories of AI-generated quality problems the codebase should be protected against:
- Plausible Fabrication
- Cargo-Cult Patterns
- Architecture Astronaut
- Shallow Error Handling (including silent success masking and missing boundary validation)
- Tests Mirroring Implementation
- Symmetry Without Substance
- Local Reasoning Violations (including hard-coded magic values)
- Implicit Drift (unpinned references that silently resolve differently over time)
- Happy-Path-Only Coverage (success path tested; error/edge/boundary paths unexercised)
- Vacuous Tests (tests that execute code but verify nothing falsifiable)
- Vacuous Formal Specs (formal specs, invariants, or gate configs that constrain nothing)
Step 2: Inventory existing gates
Search the codebase given as argument (default: current directory) for mechanisms that would catch AI smells. The assessment is read-only apart from writing the report: run only commands that search or read (the grep, git grep, find, git log, git diff, git ls-files, git merge-base, git rev-parse, git symbolic-ref and gh GET commands the references give); do not run the project's build, tests, scanners or verifiers, and do not edit, stage, commit or push. Where a reference describes a boundary probe, a secret canary, a planted violation or a mutation of code or specs, look for a job that performs it; never perform it yourself. Report a credential by file and key name; never copy a token, password or connection string into the report. For each mechanism, note whether a CI job or hook runs it and whether it can fail:
What ships with it
12 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.
- references/ai-smells-gates-report-template.md 2.8 KB
- references/ai-smells-taxonomy.md 10 KB
- references/ci-integration.md 6.8 KB
- references/detection-patterns-agent-tests.md 4.9 KB
- references/detection-patterns-gaming.md 4.1 KB
- references/detection-patterns-gates-formal.md 5.5 KB
- references/detection-patterns-gates-proofs.md 8.0 KB
- references/detection-patterns-gates-supply-chain.md 9.3 KB
- references/detection-patterns-gates.md 11 KB
- references/detection-patterns.md 5.3 KB
- references/git-history-signals.md 3.4 KB
- references/maintainability-gate-signals.md 4.0 KB
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.
- yesterday Changed · +42 lines 8fddb6b6a8a9
- 1mo ago Changed · -1 lines · +15 tokens per session f59e0853d33c
- 3mo ago First seen · 161 lines · 73 tokens per session scan A 6d8e181e705d
detect-ai-smells is a skill published in the GitHub repository krokoko/cairn (24 stars, last pushed 2d ago), licensed Apache-2.0. It adds 88 tokens to every session and 4,287 once invoked, about $0.0004 per session on Opus 5.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.
detect-ai-smells compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| detect-ai-smellskrokoko/cairn | Skill | 24 | 2d ago | Apache-2.0 | A | 88 | Claude Code |
| github-pr-workflowpaperclipai/paperclip | Skill | 118k | today | MIT | A | 39 | Claude Code, Codex |
| agent-code-analyzerruvnet/ruflo | Skill | 83k | today | MIT | A | 19 | Claude Code |
| prYeachan-Heo/oh-my-claudecode | Skill | 41k | yesterday | MIT | A | 47 | Claude Code |
| gh-issuesspinabot/brigade | Skill | 11k | 18d ago | MIT | A | 116 | Claude Code |
| crit-storytomasz-tomczyk/crit | Skill | 1.4k | 3d ago | MIT | A | 47 | Claude Code, Codex |
| write-skillsdzhng/skills | Skill | 1.5k | 18d ago | MIT | A | 50 | Claude Code, Codex |