mithril-ui-form: Instructions file for Claude Code

CLAUDE.md

mithril-ui-form CLAUDE.md is an instructions file for Claude Code from erikvullings/mithril-ui-form. It costs 1,053 tokens per session, scanned A, original, MIT.

Repository instructions for mithril-ui-form, a TypeScript form library for the Mithril web framework. They explain its monorepo, where several related packages live in one repository, and its workspace commands.

In plain words
What is it for?
Use them when building, testing, or changing the form library, its plugins, or its example application.
Why use it?
They help an agent find the right package and run commands from the repository root instead of guessing how the project is organised.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is erikvullings/mithril-ui-form's own configuration. It tells Claude Code how to work on mithril-ui-form itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mithril-ui-form configures →

Reuse

Borrowing it

Nothing to install: this file belongs to erikvullings/mithril-ui-form. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/erikvullings/mithril-ui-form/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/erikvullings/mithril-ui-form

Made for: Claude Code.

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 mithril-ui-form CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/erikvullings/mithril-ui-form/claude-md/github.svg)](https://agentmods.dev/instructions/erikvullings/mithril-ui-form/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/erikvullings/mithril-ui-form/claude-md"><img src="https://agentmods.dev/badge/instructions/erikvullings/mithril-ui-form/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mithril-ui-form CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/erikvullings/mithril-ui-form/claude-md"><img src="https://agentmods.dev/badge/instructions/erikvullings/mithril-ui-form/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,053 This file is loaded in full into every session.
When invoked 1,053 The same file — it is already loaded in full.
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.01053 $0.01053
Opus 5.5 $0.00421 $0.00421
Sonnet 5.5 $0.00211 $0.00211
Haiku 4.5 $0.00105 $0.00105

Measured 5d ago against content hash c48e8002e883, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mithril-ui-form CLAUDE.md 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 5d 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.

CLAUDE.md · 109 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

mithril-ui-form is a monorepo containing a powerful, declarative component library for the Mithril framework that converts JSON specifications into dynamic, accessible forms with full TypeScript support. The project emphasizes performance, accessibility (WCAG compliance), and developer experience.

Monorepo Structure

This is a pnpm workspace with the following key packages:

  • packages/mithril-ui-form/ - Main library with core form components (LayoutForm, ArrayLayoutForm)
  • packages/mithril-ui-form-plugin/ - Base plugin system and type definitions
  • packages/mithril-ui-form-leaflet-plugin/ - Plugin for geospatial/leaflet map integration
  • packages/mithril-ui-form-rating-plugin/ - Plugin for star rating components
  • packages/example/ - Demo application showcasing all features

Development Commands

Workspace Commands (run from root)

  • pnpm install - Install all dependencies across workspace
  • pnpm build - Build all packages in dependency order
  • pnpm start - Start development mode for all packages in parallel
  • pnpm patch-release - Release patch version for all packages
  • pnpm minor-release - Release minor version for all packages

Main Library Commands (packages/mithril-ui-form/)

  • npm start or npm run dev - Start rollup in watch mode for library development
  • npm run build - Build library using rollup (generates CommonJS, ESM, IIFE formats)
  • npm run clean - Clean build artifacts and cache
  • npm run gen:schema - Generate JSON schema from TypeScript types

Example Application Commands (packages/example/)

  • npm start - Start webpack dev server on port 1233
  • npm run build - Build production bundle
  • npm run build:domain - Build for GitHub Pages deployment to docs/ folder

Core Architecture

Component Patterns

The codebase follows specific Mithril patterns as noted in the global CLAUDE.md:

  • Uses FactoryComponents for stateless components
  • Uses MeiosisViewComponent when component state is required
  • Follows Meiosis state pattern (https://meiosis.js.org/) for state management
  • Uses const function declarations consistently

Read the full file on GitHub · 109 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. 5d ago First seen · 109 lines · 1,053 tokens per session scan A c48e8002e883

Subscribe to this mod's changes

mithril-ui-form CLAUDE.md is an instructions file published in the GitHub repository erikvullings/mithril-ui-form (7 stars, last pushed 1mo ago), licensed MIT. It adds 1,053 tokens to every session, about $0.0042 per session on Opus 5.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-11-07.

Related

mithril-ui-form CLAUDE.md compared with instructions from other repositories

mithril-ui-form CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mithril-ui-form CLAUDE.mderikvullings/mithril-ui-formInstructions file71mo agoMITA1,053Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file279kyesterdayMITA4,325Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,086GitHub Copilot