codify-lesson

codify-lesson is a skill for Claude Code, Codex from Arch1eSUN/Arcgentic. It costs 33 tokens per session (367 once invoked), scanned A, original, MIT.

A lesson-tracking workflow that looks for the same lower-priority audit findings across multiple development rounds. It can turn repeated patterns into lesson cards and prepare proposed rule changes for review.

In plain words
What is it for?
Use it after round boundaries to scan audit handoffs, create lesson files for repeated P2 or P3 findings, update existing lesson streaks, and prepare amendment proposals without applying them automatically.
Why use it?
It prevents recurring problems from being forgotten after an audit. It also separates structured audit findings from unrelated mentions in notes or prose.

Skill for Claude CodeCodex

Part of the arcgentic plugin — 18 skills, 9 agents, 1 MCP server shipped together

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 skills/arch1esun/arcgentic/codify-lesson
Any agent
npx skills add Arch1eSUN/Arcgentic --skill codify-lesson
Clone the repo
git clone --depth 1 https://github.com/Arch1eSUN/Arcgentic

Made for: Claude Code, Codex.

Or install arcgentic, the plugin that ships this one along with the rest of its 18 skills, 9 agents, 1 MCP server.

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 codify-lesson

README.md
[![agentmods](https://agentmods.dev/badge/skills/arch1esun/arcgentic/codify-lesson.svg)](https://agentmods.dev/skills/arch1esun/arcgentic/codify-lesson)
Your own site
<a href="https://agentmods.dev/skills/arch1esun/arcgentic/codify-lesson"><img src="https://agentmods.dev/badge/skills/arch1esun/arcgentic/codify-lesson.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 367 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.00033 $0.00367
Opus 5 $0.00016 $0.00183
Sonnet 5 $0.00007 $0.00073
Haiku 4.5 $0.00003 $0.00037

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

Security

Grade A, and why

codify-lesson 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 4d 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/codify-lesson/SKILL.md · 52 lines

What it actually says

codify-lesson

Scans recent audit handoffs for recurring P2/P3 patterns in structured findings tables and promotes repeated clusters into lesson cards.

When to invoke

  • After round-boundary-lesson-scan reports a promotable cluster
  • User invokes /codify-lesson
  • 3+ rounds show the same structured finding pattern

Workflow

  1. Shell out to the toolkit:

    arcgentic codify-lesson \
      --audit-dir docs/audits \
      --lessons-dir lessons \
      --amendments-dir mandates/amendments
    
  2. Read stdout:

    • lessons: N
    • amendments: N
    • streak_updates: N
  3. Inspect every generated lesson card before accepting it.

  4. If an amendment proposal is generated, stop for founder review before applying mandate/rule changes.

The scanner ignores reference scans, author notes, forward-debt prose, and other unstructured markdown even when those sections mention P2 or P3.

Output contract

  • New lesson card: lessons/lesson-{N}-{slug}.md
  • Formal-threshold amendment proposal: mandates/amendments/amendment-{slug}.md
  • Existing lesson streak updates when a lesson was preserved

See also

  • agents/lesson-codifier.md
  • toolkit/src/arcgentic/skills_impl/codify_lesson.py
  • toolkit/src/arcgentic/utils/pattern_detection.py
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. 4d ago First seen · 52 lines · 33 tokens per session scan A 77882143180e

Subscribe to this mod's changes

codify-lesson is a skill published in the GitHub repository Arch1eSUN/Arcgentic (292 stars, last pushed 22d ago), licensed MIT. It adds 33 tokens to every session and 367 once invoked, about $0.0002 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

debt-ops-init

Write or refresh a "Tech debt operations" section in the project's AGENTS.md so the team shares one source of truth for debt-ops disciplines. Run ONLY when the user explicitly asks to set up, install, or initialize debt-ops disciplines — never auto-invoke. Idempotent; only the managed section changes, other sections…

bcanfield/agentic-tech-debt · 76 tokens

init

Write or refresh the ## Tech debt operations section in CLAUDE.md so a team shares one source of truth for debt-ops disciplines and cached quality commands. Idempotent. Only the managed section changes; other sections are untouched. Invoked explicitly via /debt-ops:init (solo users get the same content from the…

bcanfield/agentic-tech-debt · 74 tokens

review

Audit the debt registry, rank survivors by churn × Fowler quadrant, surface a top-N list, then walk paydown on user follow-up. Use when the user asks to review debt, see what to pay down, work through entries, or invokes /debt-ops:review. Stale entries drop with drop A,B,C.

bcanfield/agentic-tech-debt · 70 tokens

debt-ops-metrics

Print a debt-ops health summary from the metrics log, covering registration rate, feedback action rate, ADR creation, and AI-authored share. Use when the user asks for "debt-ops metrics", "debt health", "registry stats", or a tech-debt health summary. Read-only, never writes the log.

bcanfield/agentic-tech-debt · 74 tokens

add

Register a deferred decision in the debt registry. Trigger by judgment, not a marker scan, whenever a future reader would ask "why this way?": an unmade decision, stub, loosened type, bypassed check, swallowed error, a default picked "for now", or a TODO/FIXME/HACK/XXX marker. Trigger immediately whenever you defer…

bcanfield/agentic-tech-debt · 110 tokens

metrics

Print a debt-ops health summary from the metrics log, covering registration rate, hook feedback action rate, ADR creation, and AI-authored share. Use when the user asks for "debt-ops metrics", "debt health", "registry stats", or invokes /debt-ops:metrics. Read-only, never writes the log.

bcanfield/agentic-tech-debt · 72 tokens