kiln 🔥
Start every project like a senior engineer would — even if you're not one.
Three questions, and Claude Code gets a modern repo: stack chosen for you, tests, CI, guardrails, a GitHub repo — kept up to date for as long as the project lives.
English · Français
Claude Code writes code fast, but a real repo needs more than a prompt: an up-to-date stack, rules the agent cannot talk its way around, a sane git workflow, and someone to stop the repo from going stale on day ninety. kiln brings all four. Built on Copier, it generates the repo, wires Claude Code into it, and keeps every repo you own current:
- 🧱
kiln new— three questions (what you are building, its size, your language), then a complete repo: code, tests, linters, CI, pre-commit, containers, aCLAUDE.mdfor AI agents, a GitHub repo with protected branches. - 🎛️
kiln set— change your mind later.kiln set frontend=nuxt podman=truere-renders the repo; a removed framework takes its files with it. - 🔄
kiln update— pull template improvements and dependency upgrades into an existing repo, then run the checks before anything is committed. Local edits are kept; real conflicts are marked inline. - 🚚
kiln update --all— do it for every kiln repo in~/codeat once: one worktree per repo, small commits, merge only when the checks pass. - 📏
charter— a rule engine for things linters don't catch (nopip/docker, file-size ratchets, Django locks, personal-data patterns, coverage floors…), declared per repo incharter.toml. Disagree with a rule?kiln waiveit inkiln-waivers.toml, with a reason and an expiry that grows with each renewal (a week, a month, three months, six months). - 🤖 Claude Code native — every generated repo ships agent instructions and enables kiln's Claude Code plugins (branch guards, worktree/merge/release skills, status line).
Quick start
# 1. Install (needs uv and git; Python 3.14 is fetched by uv if missing).
# macOS, Linux, and Windows through WSL. The PyPI package is kiln-cli, the command is kiln.
uv tool install kiln-cli
# …or try it without installing anything: uvx kiln-cli new my-app
# Tab completion in bash: add eval "$(kiln completion bash)" to ~/.bashrc
# 2. Create a project — answer a few questions, or pass them as flags
kiln new my-app
kiln new my-api --size ember --type api --backend fastapi --no-github
# 3. Work in it
cd my-app
kiln dev # start the dev servers of the stack
kiln check # ruff, mypy, pytest, ESLint, type checks, then charter
# 4. Months later
kiln update # template changes + compatible dependency upgrades + checks
kiln update --major # major versions too
kiln new creates a private GitHub repo by default (via gh); --no-github skips it.
Optional tools: pnpm for JavaScript fronts, a JDK 25 for Java,
podman for containers.
What you get
| Project type | Recommended backend | Recommended frontend |
|---|---|---|
Full app (app) |
Django + Django Ninja | Nuxt + Vue |
API only (api) |
FastAPI | — |
Content site (site) |
— | Astro |
Data dashboard (dashboard) |
Python data (polars, marimo, Plotly) | Streamlit |
Data analysis (analysis) |
Python data | — |
CLI tool (cli) |
Python CLI (argparse, installable) | — |
Backends: django, fastapi, data, cli, java (Java 25 + Maven, no framework).
Frontends: nuxt, next, astro, streamlit, dash. Every combination is generated and
validated by the test suite.
Each generated repo comes with:
- Opinionated tooling, no
pip, nodocker: uv for Python, pnpm for JavaScript, podman for containers; ruff, mypy (strict), pytest + coverage floor, ESLint, pre-commit (which also refuses commits onmain/develop). - CI on GitHub Actions that calls kiln's reusable workflows — so fixing CI once in kiln fixes it everywhere.
- A project size (
spark→ember→flame→blaze) that tunes defaults: a weekend script doesn't get the same ceremony as a multi-team service. - Agent-ready instructions: kiln's rules for Claude in
.claude/rules/kiln/, with stable rule IDs thecharterengine can check; each stack's rules load only when Claude touches its files. The rootCLAUDE.mdbelongs to the project. - Optional production setups: a hardened VPS deployment for Django (Caddy with automatic TLS, read-only containers, one image per commit, automatic rollback, daily backups with restore tests) and Vercel deployment for Nuxt fronts.
- A backlog (
docs/backlog/: typedT-NNtickets by priority) that Claude Code's status line counts.
Why not just Copier / cookiecutter?
kiln is Copier underneath — every project keeps its .copier-answers.yml, so you can
always fall back to plain Copier. What kiln adds is everything around the template:
| cookiecutter | Copier | kiln | |
|---|---|---|---|
| Generate a project | ✅ | ✅ | ✅ |
| Apply template updates to existing projects | ❌ | ✅ | ✅ |
| Stack recommendation from the project type | ❌ | ❌ | ✅ |
Change stack/options after generation (kiln set) |
❌ | partial | ✅ |
| Upgrade dependencies + run checks in the same step | ❌ | ❌ | ✅ |
Update all your repos at once (update --all) |
❌ | ❌ | ✅ |
| Shared, reusable CI workflows | ❌ | ❌ | ✅ |
Repo-level rule engine (charter) |
❌ | ❌ | ✅ |
Replay CI locally, verdict stored as a git note (kiln ci) |
❌ | ❌ | ✅ |
| Claude Code plugins and agent instructions | ❌ | ❌ | ✅ |
kiln is opinionated on purpose. If you want a neutral templating engine, use Copier directly; if you want a batteries-included workflow that stays maintained, use kiln — or fork it and make the opinions yours.
Commands
| Command | What it does |
|---|---|
kiln new [dir] |
Questionnaire, generation, lockfiles, install, first commit on main, then develop where all work happens. |
kiln adopt |
Bring an existing repo that kiln did not generate under kiln, on a work branch: charter.toml (size via --size, rules that apply anywhere, checked after each edit), docs/backlog/ if missing, then the existing debt the charter finds. Never touches an existing file. |
kiln publish |
Create the private GitHub repo and protect its branches, for a project generated without gh. |
kiln install |
Set up a machine after a clone: tools, dependencies, .env, migrations, pre-commit. Re-runnable. |
kiln dev |
Start the stack's dev servers, their output interleaved and prefixed by service in colour (django │ …); --containers runs everything in podman. |
kiln check |
Ruff, mypy, pytest for each Python project, ESLint and type checks for the front, then charter. |
kiln set [key=value…] |
Show or change the repo's settings (team, frameworks, podman…); the repo is re-rendered. |
kiln waive [RULE|file] |
Waive a kiln rule (--paths, --reason), or freeze a generated file so kiln update leaves it alone; --renew moves to the next tier (a week, a month, three months, six months). No argument: list the waivers. |
kiln update |
Move to the latest kiln release (with a box listing what's new in each release crossed), compatible dependency upgrades, then checks. --major, --no-template, --no-deps. --rehearse plays it on a throwaway clone first and only reports, the repo untouched. Only a release of kiln updates a repo: a tool built from a checkout is refused, with the command that installs the release. |
kiln update --all |
Update every kiln repo in your code folder, one worktree each, merged only if checks pass. --all --rehearse: each update on a clone, nothing touched, a summary per repo. |
kiln status |
Branch, clean tree, template release (v0.3.2 → v0.3.5 when behind), waivers, stack — for every kiln repo, then the most waived rules across them. |
kiln version |
In kiln's own repo: latest public release, candidates (age, adopting repos, ready to promote), the number the next release should take and the planned tickets still open. kiln version cut cuts the release branch with a drafted changelog entry, then (once the entry is rewritten) runs the checks, waits for GitHub's CI and tags -rc.N only on green; kiln version promote tags the ready candidate (green CI), merges it into main and develop, and PyPI and the GitHub Release follow. |
kiln doctor |
Check the machine (git, uv, gh login, pnpm, podman, Java, pre-commit, kiln release, Claude plugin) and the current repo; each problem comes with the command that fixes it. Changes nothing. |
kiln ci [commit] |
Replay the repo's GitHub CI locally against throwaway PostgreSQL/Redis, and push the verdict as a git note. |
kiln contract |
Django + Nuxt: export openapi.json and regenerate the front's API types. |
kiln completion bash |
Print a bash completion script built from the parser; enable it with eval "$(kiln completion bash)" in ~/.bashrc. |
charter |
Check the repo against its charter.toml (--detail, --unverified, types, coverage, file <path>); charte is its former name. |
Full reference (in French): README.fr.md.
Reusable GitHub workflows
kiln's workflows work from any repository, kiln-generated or not:
jobs:
backend:
uses: antoine-tena/kiln/.github/workflows/django.yml@v0.3.0 # a kiln release tag
django.yml, python.yml, maven.yml, pnpm.yml, charter.yml, security.yml (uv audit,
pnpm audit), secrets.yml (gitleaks), api-contract.yml, infra.yml (podman build,
actionlint, shellcheck), sbom.yml (CycloneDX), mutation.yml (mutmut), vercel.yml. Databases for tests run in
podman. See .github/workflows/.
Claude Code plugins
kiln is also a Claude Code plugin marketplace:
claude plugin marketplace add antoine-tena/kiln
claude plugin install kiln@kiln
| Plugin | What's inside |
|---|---|
kiln |
Skills for the git workflow (worktree, merge, release, cleanup, review = a branch's commits before they go public, and the whole repo before a release, backlog, update = self-update, adopt = bring an existing repo under kiln), report (a kiln defect met in your repo becomes an issue or a PR, posted once you approve), contribution (an outside contributor's PR handled like a well-run open-source project: untrusted code read before anything runs, triage, review, a merge that credits them, nothing posted without your yes), good-first-issues (a small, steady stock of good first issue issues drawn from your backlog and reserved for newcomers, refilled as they get merged) and token (a service token pasted once into a git-ignored .<service>/ folder, never shown); hooks that guard protected branches and files, refuse a commit message signed by Claude, check each edited file, and ask at session start: kiln updates in kiln repos, adoption in your other repos ("Yes", "Later", "Never for this repo"), all paced by one goodwill score that each yes raises and each no lowers; a shared status line in four styles (kiln set statusline=…, or none / custom to keep your own); condensed command output with rtk. |
django |
Migrations, API regeneration, read-only PostgreSQL. |
nuxt |
Nuxt / Vue / Vitest skills, UI polish, screenshots on three phones and a desktop (Playwright). |
vps |
Deploy, production logs, production dumps. |
stripe |
Stripe MCP in test mode. |
serena |
Read-only Serena MCP for symbol navigation in big repos. |
Generated repos enable the right plugins for their stack automatically.
Status
kiln is used daily on a handful of real repos, including one in production. It is young, so it
numbers releases like Claude Code does: in 0.x, every release bumps the patch, breaking changes
included (0.3.4 → 0.3.5), listed first in the release notes and migrated by kiln update; the
minor only moves for a milestone. Strict semver starts at 1.0. Each release is first a candidate
(v0.3.5-rc.1) used on the author's own repos; it is promoted to main (v0.3.5) only once
the next candidate is ready, so a release never needs an emergency fix. Projects are generated and updated from the latest release, pin kiln's workflows to
that exact tag, and kiln update shows what changed in each release it applies (see
CHANGELOG.md).
Linux, WSL and macOS are supported.
Contributing
Issues and pull requests are very welcome — see CONTRIBUTING.md.
Small fixes can go straight to a PR; for bigger changes, open an issue first so we agree on
the approach. Good places to start: the
good first issue label.
Using Claude Code in a kiln repo? /kiln:report turns a kiln defect into a
ready-to-post issue or PR: checked against the latest release and the existing issues, scrubbed
of anything private, posted only once you approve.
If kiln saves you time, a ⭐ helps other people find it.
License
Metadata
Release files for kiln-cli 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| kiln_cli-0.4.0.tar.gz | 637.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kiln_cli-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 766.9 kB
Release files / kiln_cli-0.4.0.tar.gz
| Download URL | kiln_cli-0.4.0.tar.gz |
|---|---|
| Size | 637.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7ba39b6c2932f53011f6b47adb0e24ce0fd86ca762005570f7a77b10c2e8298
|
|
BLAKE2b-256 checksum How to use checksums |
ef4703019735288511d8ba43189c94dd03d408dc012cb360e7ab56a9ea231d1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.2 {"installer":{"name":"uv","version":"0.13.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.0-py3-none-any.whl
| Download URL | kiln_cli-0.4.0-py3-none-any.whl |
|---|---|
| Size | 129.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
43ac06e7b140f36096b73c5b8335fc009c9a1548cfecced03cff935ff6ad8bb7
|
|
BLAKE2b-256 checksum How to use checksums |
3b110c0c3369f80d7e9f110a6943b08fcad753974f4ffc5d603e4b8b2e440d3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.2 {"installer":{"name":"uv","version":"0.13.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.0
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.