By evgenus
The constitution kit: a portable governance layer for Claude Code projects, one plugin per module
npx claudepluginhub evgenus/claude-constitution-layer-kitNumbered kinds: a catalogued document's file name and id are one name, <prefix>-<nnnn>-<slug>. A new item's number must be free, and no two items of a catalog share one. Catalogs are declared in this module's own dial. Plus a skill for taking a number, renumbering after a collision, listing and citing.
Tokens per commit: for every commit a Claude Code session makes, the tokens that session spent on it. They are input, output, cache write and cache read, with their total and list cost. A pinned ccusage counts them from the session's own transcripts. They are kept in the clone, and shared by merge trailer, pull request and git notes.
Write-time gate on decision records: a document governed by a record policy carries type task-record, stakes (process | product | architecture) and a decider. Plus skills for pricing and recording a decision, and for promoting recurring commit notes.
A character ceiling per group of documents, measured after every write and in a scan. Each ceiling names its documents by path patterns, its number and the days of data it was set from. It warns until 30 days of data stand behind it. A history report over git gives those data. A document that must stand over its ceiling is declared as a departure in the dials file. Plus a skill for setting a ceiling and reading a finding.
Answer in the shape the question has, the answer first. List every assumption, and make every list item addressable. Put honesty over agreement. Stop before a hard-to-reverse act and wait for a yes, with a gate on listed destructive commands.
Plain prose in governed documents, checked by Vale after every write and in a scan. The check holds a Flesch–Kincaid grade ceiling and a words-per-sentence limit. It reports idioms and formal phrases plain language avoids, formal words with a plain replacement, and passive voice. Every threshold and level is a dial. A departure is declared in the dials file and never marked in the document. Plus a skill that applies the rules while writing and reads a finding.
Documents born in their canonical home. A command derives the home from the policy's territory and proves it resolves to exactly that policy. It writes the document from the kind's template with a valid envelope. It comes with a skill for creating documents through it, and one for introducing a new kind — policy first, then territory, then document.
Write-time guard of claimed territory: every Markdown document there carries the envelope (id, type, title, status) and resolves to exactly one governing policy. Plus a skill for choosing the meta-type.
Ask only at recorded stakes or at a genuine blocker; else decide and note. One decision per message, in a fixed shape printed at every session start: lettered options with pros and cons, one recommendation, the decider named. Questions come from open slots, closed vocabularies are the options, defaults take an override, and vague input is restated. No open question inside a deliverable, with a gate on open-question markers in delivered documents.
References a machine can follow and a move can repair. Each kind of reference has one written form, and anchors do not depend on a heading's words. A check reads the whole tree after every write and in the scan, and a mover repairs the links a move breaks. Plus a skill for citing, anchoring and moving, and two always-on sentences about references in chat.
One style guide every governed document follows: diagrams, prose against lists and tables, list and table format, headings, code blocks, emphasis, callouts. Departures are declared per territory or per document in the dials file, with a reason. A scan reports the traces of the defaults that no departure allows. Plus a skill that applies the defaults before a diagram, a table, a formula or a template is written.
Task close as a single act. A change that touches code covered by current-state documents updates them or declares no impact. A close procedure merges deltas, deletes working files and sets the record inactive. At turn end, a dirty tree gets a warning or a block.
7-day visitors to each marketplace page
A portable governance layer for Claude Code projects, shipped as plugins.
AI sessions write documents, make decisions and change code fast. Without shared rules, every session improvises. Documents have no stated authority, and decisions are lost in chat. A typo and a security ruling are priced the same, and documents drift from the code with no owner. The kit installs those rules into any repository, new or existing. They are a one-page semantic kernel, and modules that guard it. Each module is a Claude Code plugin calibrated by one constitution.yaml. The intent page says what the kit is for and what it is not.
A heavyweight constitution costs more than the disorder it cures: fixed ceremony for every question, hundreds of rules before the first product decision. The kit takes the middle road (intent §2):
process ruling is a record and one human yes (principle p3).flowchart TB
platform["Claude Code: plugins, skills, hooks, agents"]
kernel["Kernel: one page of conventions"]
modules["Modules: one plugin each, one invariant each"]
project["Your project: constitution.yaml, policies, records"]
platform --> kernel --> modules --> project
docs/constitution/, and it is the first document its own rules govern.constitution.yaml it reads its own namespace, plus the kernel's shared keys that say where the policies and their territories are. It reads no other module's namespace. It works on an empty repository with its defaults alone.Every gate's error message says what failed, why the rule exists, and the exact fix. A gate is deterministic, and red means fix. A skill shapes judgment and checks nothing. A grant is a hook that lets the module's own command run without a prompt. It judges nothing and blocks nothing. The Module column links each module's own page. That page says in plain language what it gives you, why, how a session behaves with it, how it works and how to get it.
RuFlo Marketplace: Claude Code native agents, swarms, workers, and MCP tools for continuous software engineering
Claude Code marketplace entries for the plugin-safe Agentic Awesome Skills library and its compatible editorial bundles.
Directory of popular Claude Code extensions including development tools, productivity plugins, and MCP integrations