add-canon-lint

add-canon-lint is a skill for Claude Code from Abilityai/abilities. It costs 167 tokens per session (3,014 once invoked), scanned A, original, MIT.

A setup skill that adds a rule-based checker to a shared repository of trusted project facts and documents. The checker uses plain Python and does not use an AI model.

In plain words
What is it for?
Use it to install the checker, configure its rules, define the repository structure, and run checks automatically on pushes and pull requests.
Why use it?
It finds conflicting facts, outdated entries, ownership mistakes, broken document links, and incorrect folder structure before they spread through the project.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Part of the agent-dev plugin — 39 skills shipped together

Good fit Use it to install the checker, configure its rules, define the repository structure, and run checks automatically on pushes and pull requests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/abilityai/abilities/add-canon-lint
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 Abilityai/abilities --skill add-canon-lint
Clone the repo
git clone --depth 1 https://github.com/Abilityai/abilities

Made for: Claude Code.

Or install agent-dev, the plugin that ships this one along with the rest of its 39 skills.

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 add-canon-lint

README.md
[![agentmods](https://agentmods.dev/badge/skills/abilityai/abilities/add-canon-lint.svg)](https://agentmods.dev/skills/abilityai/abilities/add-canon-lint)
Your own site
<a href="https://agentmods.dev/skills/abilityai/abilities/add-canon-lint"><img src="https://agentmods.dev/badge/skills/abilityai/abilities/add-canon-lint.svg" alt="Measured on agentmods" height="20"></a>
Per session 167 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,014 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 pass 7 Sept 2026
How audits are shown
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.00167 $0.03014
Opus 5 $0.00084 $0.01507
Sonnet 5 $0.00033 $0.00603
Haiku 4.5 $0.00017 $0.00301

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

Security

Grade A, and why

add-canon-lint 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 7d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (templates/canon_lint.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/agent-dev/skills/add-canon-lint/SKILL.md · 186 lines

How it starts

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

Add Canon Lint

ℹ️ First, set expectations: before anything else, print one short line with this skill's version and its most recent change — the top entry of metadata.changelog above — e.g. add-canon-lint vX.Y — recent: <summary>. Then proceed.

Make the fleet's canon repo mechanically self-consistent: a deterministic linter — plain Python, zero dependencies, zero LLM — that runs on every push and enforces the two-zone folder schema (facts.yaml structured claims + enveloped prose in docs/), catches cross-folder fact conflicts, stale canon, ownership violations, and unreachable docs before they become drift disputes.

Division of labor (the design): the linter on every push = internal consistency — grammar, ownership, one-home-per-key, staleness bounds. Each agent's scheduled /canon-reconcile = external truth — does the fact still match reality? The linter deliberately never judges content; reconcile deliberately never re-derives what the linter already proved.

Where the gates sit (own-folder writes are direct pushes, so CI alone cannot block them):

Gate When Blocks?
/canon-publish local lint (add-canon ≥1.4 runtime skills) before every push yes — the real gate for agent writes
.github/workflows/canon-lint.yml every push + PR red X; backstop for human edits and drift
Required status check (optional, Step 6) PRs to protected branches yes — for protocols/ + cross-folder PRs

This skill targets the canon repo, not an agent — run it once per fleet, from the orchestrator, any enrolled agent, or inside the canon repo itself. /add-canon installs the layer; this installs its law.


Process

Step 1: Preflight — locate the canon repo

Resolve the target, first match wins:

  1. Run from an enrolled agenttemplate.yaml has x-canon: → target is the clone at clone_path (default canon/); if the clone is missing, self-heal it exactly as /canon-publish Step 1 does (auth-aware).
  2. Run inside the canon repoagents/ directory and CONVENTIONS.md present → target is the current directory.
  3. Neither — ask for the canon repo ref (github:Org/repo → clone to a temp dir, or a local path).

Read the full file on GitHub · 186 lines

Files

What ships with it

4 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. 7d ago First seen · 186 lines · 167 tokens per session scan A f00ae0a2d9de

Subscribe to this mod's changes

add-canon-lint is a skill published in the GitHub repository Abilityai/abilities (11 stars, last pushed 20d ago), licensed MIT. It adds 167 tokens to every session and 3,014 once invoked, about $0.0008 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.