Skip to main content
kiln's logo: a laughing kiln in pixel art

kiln

Claude Code's workshop

Start every new project, and rescue every old one, like a senior engineer would — even if you're not one.

Make Claude Code build production-grade repos, bring yours up to that grade, and keep them that way.

PyPI CI OpenSSF Scorecard License: MIT

Reference · Changelog · Contributing · Français

kiln new my-app asks three questions (what you build, how big, the team's language), creates a Django and Nuxt app with its first commit, then kiln check passes ruff, mypy, pytest, ESLint, the type checks and charter, and kiln score gives it 100/100

A real run, played at 1.5× with the waits cut: kiln new, then kiln check and kiln score in the new repo.

Claude Code writes code fast. A repo needs more than that to stay healthy: a current stack, rules an agent cannot argue its way around, a git workflow that survives a bad afternoon, and someone to stop it going stale on day ninety. kiln brings all four to a new repo in three questions, and to the one you already have, however old and messy: it lays down the rules, lists what falls short, and Claude Code works it off. Then it keeps every repo current, release after release. kiln itself calls no AI and needs no API key.

Highlights

  • A new repo in three questions (what you build, how big, the team's language): code, tests, linters, CI, pre-commit hooks, containers and the instructions Claude reads first.
  • A repo you already have, however old: kiln adopt brings it to the level of kiln new on a work branch, laying the CI, hooks, rules and instructions it lacks without overwriting a file. The rules are checked after each edit Claude makes, the debt they find is listed for Claude to work off, and kiln update keeps it current like a repo kiln created.
  • kiln update replays the template, takes compatible dependency upgrades, converts what a release renamed and runs your checks before you commit. --rehearse tries it on a throwaway clone first, --all updates every repo in your code folder.
  • charter, kiln's rule checker, checks each file Claude edits in about 0.15 s: banned tools, names, file sizes, personal data in logs. Counts that may only go down (ratchets) and coverage floors hold at each commit and in CI. A waiver needs a reason and an end date.
  • kiln grid lists the practices kiln stands behind, each with its reason, its sources (checked and dated) and how it is detected. kiln score measures any repo against them in about a second, without a token: a score out of 100, one per pillar, and the gaps to close first. kiln fix closes on a branch those a script can close, one commit per rule, each proven, set aside if your checks turn red. kiln score --roadmap hands the rest to Claude Code as a short list with file and line, and /kiln:modernize works through it, each gap proven closed by kiln score --rule. kiln-bot brings the fixes as a weekly pull request, in one copy-paste.
  • Skills for worktrees, merges, releases and reviews; hooks that keep Claude off main and develop; a status line that shows CI, tickets and production.
  • A private repo's CI runs on your machine (kiln ci, its verdict kept as a git note) and spends no GitHub minutes; a public repo's runs on GitHub, where it is free.

Rescue an old repo

kiln score puts an old Django repo at 23 out of 100; kiln adopt, kiln fix and kiln score --roadmap follow; Claude Code works through the roadmap with /kiln:modernize, one commit per gap; kiln score then gives it 100 out of 100

A real run on kiln-demo-legacy, a Django app left as it was written around 2020, played at 1.5× with the waits cut; Claude Code's five minutes as a time-lapse.

kiln score puts it at 23/100. kiln adopt lays kiln's rules, checks and instructions without overwriting a file (39), kiln fix closes what a script can, one commit per rule (65), and kiln score --roadmap hands the rest to Claude Code. /kiln:modernize pins what the code does today with tests first, then closes each gap in its own commit, proven by kiln score --rule: 100/100. The demo repo's README gives the commands to replay it.

Install

uv tool install kiln-cli     # the command is kiln; uv fetches Python 3.14 if needed
kiln install                 # outside a repo: kiln's Claude Code plugin in every session

With Homebrew: brew install antoine-tena/kiln/kiln. Or try it without installing anything: uvx kiln-cli new my-app for a new repo, uvx kiln-cli adopt in one you already have. macOS, Linux and Windows through WSL; pnpm for JavaScript fronts, podman for containers.

Quick start

A new repo:

$ kiln new my-app            # three questions, then a private GitHub repo (--no-github: local)
$ cd my-app && kiln dev      # dev servers in the background, databases first, logs offered
$ kiln check                 # ruff, mypy, ESLint, type checks, then charter (--tests: the suites)
$ claude                     # Claude Code, with kiln's rules, skills and hooks loaded

A repo you already have, on a work branch:

$ git switch -c chore/kiln-adopt
$ kiln adopt                 # what kiln new writes, no file overwritten; then what falls short
$ claude                     # Claude Code works it off, with kiln's rules, skills and hooks

What you get

You build Backend Frontend
A full app (app) Django + Django Ninja Nuxt + Vue
An API (api) FastAPI —
A content site (site) — Astro
A data dashboard (dashboard) polars, marimo, Plotly Streamlit
A data analysis (analysis) polars, marimo, Plotly —
A command-line tool (cli) Python, installable, with its own Claude Code plugin if you want one —

Next.js, Vite + React, Dash and Java 25 + Maven are there too, and kiln's tests generate and check every combination. Django and Nuxt are complete; the other stacks are frozen but maintained: new grid rules go to Django and Nuxt first.

Every repo also gets uv, pnpm and podman (never pip, npm or docker), CI that calls kiln's reusable workflows, protected main and develop branches, a docs/backlog/ of typed tickets, and a size (tiny, small, medium or large) that sets how much process it carries. A Django app can ship to a hardened VPS (Caddy, read-only containers, automatic rollback, tested backups), a Nuxt front to Vercel.

Kept current

One release, every repo current: kiln, then a candidate tried on kiln's own repos, the release on PyPI, a rehearsal on a clone of your repo, then kiln update merges it only if the checks pass

A kiln release first ships as a candidate, tagged only once its CI is green on Linux and macOS, including an update from every release since v0.3.0 through an installed tool. It is promoted once it has soaked (24 hours and at least one repo updated to it; 2 hours for fixes only), then rehearsed on a clone of each repo before kiln update --all merges it, one worktree per repo. Repos quote kiln's workflows at the exact release they follow, so nothing reaches them between releases, and kiln update shows what is new in each release it crosses. A repo brought in by kiln adopt is updated the same way.

The grid

kiln grid pinned-actions: why the rule holds, its theme, scope and level, how it is detected and fixed, its source checked on a date, and how to waive it

kiln grid <ID>: one rule in full, with its reason, a source checked on a date, and how a repo can waive it.

One small TOML file per rule, on two axes: its theme (supply chain, containers, tests…) and its scope (universal, a language, a framework, a tool). Each says why, cites sources weighed in a fixed order (official docs, security advisories, measured studies, adoption data, blogs) and carries a level from Thoughtworks' Technology Radar: adopt, trial, assess, hold. Only adopted rules count: 40 of them (supply chain, CI, containers, tests, code standards, Django and Vue security), each run on two real repos for false positives; 95 drafts wait behind kiln grid --level assess. Each scored rule ships with a repo that passes it and one that fails it.

Compared with Copier and cookiecutter

kiln is Copier underneath: every project keeps its .copier-answers.yml, and plain Copier still works on it. kiln adds what comes after day one, and gives up some breadth for it.

cookiecutter Copier kiln
Generate a project ✅ ✅ ✅
Any language or framework ✅ ✅ ❌
Community templates to start from ✅ ✅ ❌
Apply template updates to existing projects ❌ ✅ ✅
Pick the stack from what you build ❌ ❌ ✅
Change the stack later (kiln set frontend=nuxt) ❌ partial ✅
Upgrade dependencies and run the checks in the same step ❌ ❌ ✅
Rehearse, then update every repo at once ❌ ❌ ✅
Shared CI workflows, quoted at a release ❌ ❌ ✅
A rule engine with dated waivers (charter) ❌ ❌ ✅
Claude Code skills, hooks and instructions ❌ ❌ ✅

kiln is opinionated on purpose. For a neutral templating engine, use Copier; for a workflow that stays maintained, use kiln, or fork it and make the opinions yours.

Reference

Every command and option, every kiln set key, the reusable workflows and the Claude Code plugins: docs/reference.md. In a terminal, kiln <command> --help.

Status

kiln runs a handful of real repos every day, one of them in production. One maintainer writes it with Claude Code, under the same rules it gives your repos. Releases are numbered like Claude Code's: in 0.x, each release bumps the patch, breaking changes come first in the changelog and kiln update converts them; the minor marks a milestone. Strict semver starts at 1.0. What comes next is for the repos you already have: any Django or Nuxt repo scored against the grid in seconds, then brought up to it by script wherever a script can (v0.5.0). Then Claude Code closing alone what a script leaves, whole organisations, every common stack, CI and machine, and the stability promise of 1.0, release by release: ROADMAP.md.

Contributing

Issues and pull requests are welcome: see CONTRIBUTING.md, the code of conduct, and the good first issue label to start. In a kiln repo, /kiln:report turns a kiln defect into a ready-to-post issue or pull request, posted only once you approve. If kiln saves you time, a star helps others find it.

License

MIT

Metadata

Release files for kiln-cli 0.4.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kiln-cli 0.4.10
File Size Uploaded Provenance Actions
kiln_cli-0.4.10.tar.gz 8.6 MB Without provenance Details for kiln_cli-0.4.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kiln-cli 0.4.10
File Interpreter ABI Platform Actions
kiln_cli-0.4.10-py3-none-any.whl Python 3 none any Details for kiln_cli-0.4.10-py3-none-any.whl

Total release size: 9.0 MB

Release files / kiln_cli-0.4.10.tar.gz

Download URL kiln_cli-0.4.10.tar.gz
Size 8.6 MB
Tags Source
SHA-256 checksum
How to use checksums
16f5392b842c5e9a1c92b90151fc9433fe46f55d758342acca14db32d8ca47b9
BLAKE2b-256 checksum
How to use checksums
206e406310ee449fd4d6f7c2216b30c469dc870e3ddf8776b8eef73e15e8387f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / kiln_cli-0.4.10-py3-none-any.whl

Download URL kiln_cli-0.4.10-py3-none-any.whl
Size 349.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e011962649582da817a747b5dd008a806c4edbcd40d54fe46db814b6a8644b4f
BLAKE2b-256 checksum
How to use checksums
9384b9f0473579bfd3aeaf89385ab82cb44e69a7c44d83f789c9f7f567c17397
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for kiln-cli 0.4.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page