import-canon

import-canon is a skill for Claude Code from ewebdzine/canonify. It costs 136 tokens per session (1,540 once invoked), scanned A, original, MIT.

A tool for bringing documented coding patterns from one project into another, then checking them against the new project's code.

In plain words
What is it for?
Use it to seed pattern documents in a related repository while keeping file references and commit checks accurate.
Why use it?
It avoids copying references that point to the wrong files, project, or code version.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the canonify plugin — 8 skills shipped together

Good fit Use it to seed pattern documents in a related repository while keeping…

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

Made for: Claude Code.

Or install canonify, the plugin that ships this one along with the rest of its 8 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 import-canon

README.md
[![agentmods](https://agentmods.dev/badge/skills/ewebdzine/canonify/import-canon.svg)](https://agentmods.dev/skills/ewebdzine/canonify/import-canon)
Your own site
<a href="https://agentmods.dev/skills/ewebdzine/canonify/import-canon"><img src="https://agentmods.dev/badge/skills/ewebdzine/canonify/import-canon.svg" alt="Measured on agentmods" height="20"></a>
Per session 136 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,540 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.00136 $0.01540
Opus 5 $0.00068 $0.00770
Sonnet 5 $0.00027 $0.00308
Haiku 4.5 $0.00014 $0.00154

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

Security

Grade A, and why

import-canon 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.

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/import-canon/SKILL.md · 98 lines

How it starts

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

Import canons (from another project)

Canonify's bulk seeding from a sibling project gate. Several repos that share a platform (e.g. Composite C1) each re-document the same patterns; this gate lets you take the canons one project already wrote and stand them up in THIS repo without re-authoring from scratch - and without the trap of a blind copy.

It is /canonify:create-canon run over a list, seeded from existing canons instead of a blank read of the code. The crucial difference from cp -r: every canon cites file:line into a specific repo and carries a verified: <sha> for that repo's HEAD. Copy the source files in and those citations point at the OTHER project's paths and a foreign commit - they are wrong, and /canonify:doctor will flag the whole batch. So each source canon is used only as a skeleton + checklist (its topic, sections, the patterns/gotchas it documents); the claims are re-proved against this repo's code. Sibling of /canonify:kickoff's scan-and-seed, which seeds from a code scan instead of from another project's canons.

How to run

  1. Get the source list. The user points at the source canons - a folder (<projectA>/docs/<area>/), a single canon file, or an explicit list of paths. Enumerate the concrete set of source .md canons (read the folder's INDEX.md if present). Confirm the list in one line. If nothing is named, ask which folder or canons to import.

  2. Place each into THIS repo's taxonomy. For each source canon, decide its destination category from this repo's CANONIFY.md blocks + existing docs/ folders - the same placement logic as create-canon. Do NOT mirror the source project's folder layout blindly; map into the categories this repo already uses (create a category only when none fits). Destination is docs/<category>/<topic>.md.

  3. Dedup before importing. For each source canon, check whether this repo already has a canon covering that area (route via CANONIFY.md summaries, like build/commit/update-canon):

    • Already covered here -> SKIP the import; note it. If the source canon clearly carries something this repo's version lacks, suggest /canonify:update-canon instead of a second doc.
    • Not covered -> import it (steps 4-6).

Read the full file on GitHub · 98 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. 7d ago First seen · 98 lines · 136 tokens per session scan A f0998634ba88

Subscribe to this mod's changes

import-canon is a skill published in the GitHub repository ewebdzine/canonify (23 stars, last pushed 2mo ago), licensed MIT. It adds 136 tokens to every session and 1,540 once invoked, about $0.0007 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.