claude

lehre

Researches a code style, pattern and architecture doctrine, then denies the write that would violate it.

1 on GitHubby Anselm Hahnv2.0.0MITupdated 12 days agodevelopment
/

Plugin lehre from marketplace werkstoff in Anselmoo/werkstoff. Commands read from the repo's manifest — 11 days ago.

This plugin runs code on your machine — its hooks fire automatically on events like tool use. The exact commands are listed below; read them before installing.

What it installs

Skills (9)

  • lehre-brief

    Use after lehre-gauge to turn a violation set into an ordered remediation plan behind an explicit human approval gate, written to LEHRE_BRIEF.md. Trigger on 'plan the cleanup', 'what order should we fix these in', 'write the remediation brief', or 'lehre brief'. Refuses to run without a gauge result

  • lehre-codify

    Use after lehre-preflight (brownfield) or lehre-decompose (greenfield) to research a code style, pattern and architecture doctrine from external authority plus real repository evidence, and write it to .lehre/ruleset.json as machine-checkable rules. Trigger on 'establish our code standards', 'what r

  • lehre-conform

    Use to build a greenfield unit, or to apply exactly one approved phase of LEHRE_BRIEF.md, with the doctrine's blocking rules enforced at the tool-call layer throughout. Trigger on 'build the next unit', 'implement phase 1', 'apply the approved fixes', 'make this conform', or 'lehre conform'. Refuses

  • lehre-decompose

    Use on a blank page, after lehre-preflight reports greenfield, to turn a stated project intent into build units, the seams between them, and an enforced build order. Trigger on 'start this project properly', 'initialize this repo', 'break this down into pieces and connect them', 'what should I build

  • lehre-gauge

    Use to sweep a codebase against the doctrine in .lehre/ruleset.json and report every violation with file:line, after lehre-codify has written rules. Trigger on 'check this code against our standards', 'where do we violate our own architecture', 'audit for antipatterns', 'gauge this repo', or 'lehre

  • lehre-pin

    Use once a unit or phase is validated, to make its rules survive without the plugin: emit a CI check that runs the doctrine with no agent in the loop, and write behaviour tests around the code that was changed to conform. Covers CI pinning of the ruleset, durable enforcement once the plugin is unins

  • lehre-preflight

    Use FIRST, before any other lehre skill, to determine whether this repository is a blank page or an existing tree, report what doctrine it already declares, and say plainly what lehre can and cannot enforce here. Trigger on 'set up code standards', 'enforce our architecture', 'start a new project pr

  • lehre-status

    Use to report where a lehre run currently stands — which units are validated, blocked or ready, how many rules are in force, and what is denied at write time right now. Trigger on 'lehre status', 'where are we', 'what's blocked', 'what can I build next', or when resuming work on a repository that al

  • lehre-validate

    Use after lehre-conform to independently check that a unit satisfies its rules AND actually does what the project intent said it would, then close it so dependent units become buildable. Trigger on 'validate this unit', 'is this actually done', 'check the work before moving on', or 'lehre validate'.

Subagents (9)

  • conformance-remediator

    Use this agent when one cluster of already-verified, brief-approved MECHANICAL findings sharing a single (file, rule) pair needs its exact rewrite applied, and nothing else. Only ever dispatched by lehre-conform against a lehre rule-card finding — not for befund-code-idiom "modernization" findings (

  • decomposition-critic

    Use this agent to adversarially review a candidate unit decomposition before it is written to .lehre/ruleset.json — hunting for invented or missing depends_on edges, owns and must_not_know claims the stated intent does not support, invented technologies, shared-bucket units, and overlapping or uncov

  • doctrine-researcher

    Use this agent when one rule-domain (naming, module boundaries and layering, error handling, dependency direction, test placement, public API surface) needs candidate rules researched from external published authority for a specific language and version. Returns candidates with citations only — neve

  • pattern-investigator

    Use this agent when an existing codebase needs surveying for how it actually handles one convention dimension, with real file:line evidence, so a researched rule can be upgraded to evidence-backed provenance or dropped for contradicting settled practice. Brownfield only — never dispatched on a blank

  • rule-critic

    Use this agent to adversarially review a candidate ruleset before it is written to .lehre/ruleset.json — independently re-deriving whether each rule's sourceMode claim is honest, hunting for forced consistency where genuine variation was warranted, and catching blocking rules whose predicate cannot

  • spec-decomposer

    Use this agent when one concern of a stated project intent needs turning into candidate build units — what each owns, what it must not know about, and which seams it participates in. Every dispatch names exactly ONE concern; a dispatch naming several is out of scope and only the first is handled.

  • spec-fidelity-auditor

    Use this agent when a completed unit needs checking against the project intent it was built for — does it deliver what the recorded intent said, and does it respect what the decomposition declared it must not know? Answers a question no rule can express; every rule passing is not the same as the uni

  • violation-auditor

    Use this agent when a rule that has no deterministic predicate — an advisory rule the closed check vocabulary cannot express — needs a codebase surveyed for violations by reading, since the gauge script cannot decide it. Never dispatched for a rule the gauge can already decide — re-auditing those by

  • violation-verifier

    Use this agent to independently re-confirm one candidate violation at its exact file:line, blind to the reasoning that produced it, so a false positive is caught before a remediation is planned around it. Judges one location per dispatch and never infers one location's verdict from another's, even w

Hooks (1)

  • PreToolUse

    python3 -B "${CLAUDE_PLUGIN_ROOT}/hooks/lehre_guard.py"

View source on GitHub anselmoo.github.io

More from Anselmoo/werkstoff

All 14 plugins →

befund

claude

Makes a codebase describe its own health, with every finding tied to file:line evidence, and edits source only behind an authorization recorded on disk.

16 skills · 11 agents · hooks

1

Turns a described change into a budgeted workflow, builds it several independent ways at once, and lands exactly one result.

10 skills · 12 agents · hooks

1

cupertino

claude

A design and craft discipline rooted in Steve Jobs' documented decisions, run as a fixed lifecycle of stages from experience to ship, not a menu of design techniques.

16 skills · 4 agents · hooks

1

matrize

claude

Derives a design system once from reference exemplars you admire, names every element, and emits it to any target.

12 skills · 6 agents · hooks

1

zirkel

claude

Makes sure a complex or ambiguous task is clarified, explored and decomposed before anyone starts executing it.

14 skills · 3 agents

1

zeugnis

claude

Audits code that looks right and is not, and counts a finding only after an independent pass has re-checked it.

9 skills · 6 agents · hooks

1

Similar plugins

superpowers

claudecodex

Core skills library for Claude Code: TDD, debugging, collaboration patterns, and proven techniques

15 skills · hooks

obra/superpowers 316,836

AI-powered codebase understanding — analyze, visualize, and explain any project

9 skills · 10 agents · hooks

Egonex-AI/Understand-Anything 92,410

diagram-design

claudecodex

Editorial diagrams in your brand, as self-contained HTML and SVG. Architecture, flowcharts, sequence, state machines, ER and database schemas, timelines, swimlanes, org charts, Gantt, Wardley maps, user journeys, service blueprints, UML class, lifecycle phase maps, and charts from bar, line and scatter to Sankey, treemap and heatmap, plus many more. Redraws draw.io, Mermaid, Excalidraw and PlantUML files. Exports SVG and PNG.

1 skill · 7 commands

cathrynlavery/diagram-design 66,757

context7

claudecodex

Up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your coding agent's context.

1 MCP server

upstash/context7 64,709

Build powerful, stateful CLI interfaces for any GUI application using the cli-anything harness methodology.

5 commands

HKUDS/CLI-Anything 58,665

Automates browser interactions for web testing, form filling, screenshots, and data extraction

12 skills

vercel-labs/agent-browser 50,373

Maintain lehre?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex plugins14 plugins