update-canon

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

A maintenance workflow for adding a coding discovery to an existing project guide, called a canon. It finds the right guide, checks whether the information is already there, and updates it in the guide's established style.

In plain words
What is it for?
Use it to record a newly found bug risk, rule, or coding pattern in the relevant existing canon. It can also confirm that an update is already covered.
Why use it?
It prevents useful lessons from being lost or duplicated when you discover them during development. It also keeps the guide's registration and file verification record accurate.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the canonify plugin — 8 skills shipped together

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add ewebdzine/canonify
Claude Code
/plugin install 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 update-canon

README.md
[![agentmods](https://agentmods.dev/badge/skills/ewebdzine/canonify/update-canon.svg)](https://agentmods.dev/skills/ewebdzine/canonify/update-canon)
Your own site
<a href="https://agentmods.dev/skills/ewebdzine/canonify/update-canon"><img src="https://agentmods.dev/badge/skills/ewebdzine/canonify/update-canon.svg" alt="Measured on agentmods" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,501 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.1 $0.00120 $0.01501
Opus 5 $0.00060 $0.00750
Sonnet 5 $0.00024 $0.00300
Haiku 4.5 $0.00012 $0.00150

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

Security

Grade A, and why

update-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 6d 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/update-canon/SKILL.md · 100 lines

How it starts

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

Update a canon

Canonify's maintenance gate. Where /canonify:create-canon authors a new canon from a file/service/element, this gate edits an existing one: you discovered something while coding - a footgun, a sharper rule, a pattern that drifted - and you want it captured now, in flow, without hand-editing markdown. Describe the update; this gate finds the right canon, decides whether the knowledge is already there, and either tells you it's covered or adds it cleanly.

It routes off CANONIFY.md exactly like build/commit (match the summary lines), and writes to the same house-style as create-canon (${CLAUDE_PLUGIN_ROOT}/templates/doc-style.md): cite every claim file:line, ASCII punctuation, terse and project-specific.

How to run

  1. Get the update. The user describes what they learned. If they didn't say it, ask once: "what did you discover, and which area does it touch?" Don't guess the content.

  2. Route to the canon. Find which existing canon owns this. Same selector as build/commit: read CANONIFY.md, match the update against the one-line summaries. Usually it's inferable from the file in play (working in form code -> the FormBuilder canon) or named outright. Confirm the target in one line. If two canons could own it, ask which. If NO canon covers the area at all, stop and hand off: this gate edits existing canons - say so and suggest /canonify:create-canon.

  3. Load the canon + re-read the cited code. Read the target canon in full, and re-read the specific code it cites for the affected section. You need both: the doc (to dedup against) and the live code (so any addition is cited to a real file:line and any "is it still true" check is against reality, not just the old prose).

  4. Triage the update against the canon - the dedup check. This is the core. Decide which case:

    • Already covered, still accurate -> Don't edit. Tell the user where it's documented (section
      • the file:line it cites). Offer a sharpen only if the wording is genuinely weak (buried, vague, easy to miss); otherwise say it's covered and stop.
    • Partially covered or stale -> Propose a revision: tighten the rule, add the missed nuance, or correct what no longer matches the code. Show before -> after for the changed lines.
    • Not covered -> Draft the addition in house-style, cited to file:line, placed in the right section by kind: a footgun -> Gotchas; a new or sharper rule -> The pattern; a new call site -> Recipes; a config key -> Configuration / API surface.

Read the full file on GitHub · 100 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. 6d ago First seen · 100 lines · 120 tokens per session scan A c48a83b30b42

Subscribe to this mod's changes

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

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens