Claude Code boilerplate generator — scaffolds CLAUDE.md, repo-namespaced skills, settings, hooks, and CI workflows
Project description
klausify
Claude Code boilerplate generator. One command to make any repo Claude Code-ready.
Install
pip install klausify
Requires conventions-cli (installed automatically).
Quick Start
cd your-repo
klausify init
That's it. You'll be prompted for your base branch (auto-detects dev, main, etc.), then klausify generates everything.
What Gets Generated
.claude/
├── CLAUDE.md # Repo conventions, path-scoped (via conventions-cli)
├── settings.json # Tool permissions + deny rules + PreCommit hooks
└── skills/
├── <repo>-review/SKILL.md # PR review with parallel sub-agents and repo-specific checks
├── <repo>-plan/SKILL.md # Multi-phase plan + implement (discovery, parallel architects, review)
├── <repo>-debug/SKILL.md # Debug an error with root-cause analysis and a failing test
├── <repo>-implement/SKILL.md # Implement a pasted ticket/design with plan-mode investigation
├── <repo>-refactor/SKILL.md # Refactor code while preserving behavior, test-backed
├── <repo>-test/SKILL.md # Write tests for current changes
├── <repo>-fix/SKILL.md # Fix lint/format/type errors
├── <repo>-pr/SKILL.md # Generate a PR description
├── <repo>-commit/SKILL.md # Generate a commit message
├── <repo>-explain/SKILL.md # Explain code or current diff
└── <repo>-new-worktree/SKILL.md # Create a git worktree for a task
.github/
└── PULL_REQUEST_TEMPLATE.md # Only if repo doesn't have one
.gitignore # Appends klausify output exclusions
What each piece does
CLAUDE.md — Auto-detected conventions, architecture, commands, and pitfalls for your repo. As of 0.2.0 the ## Conventions and ## Architecture sections are grouped by inferred path globs (e.g. ### \src/api//*.py`, ### `src/db//*.py`, ### Project-wide`) so rules apply where they belong instead of as a flat list. This is what Claude Code reads to understand your project.
settings.json — Auto-detects your stack (Python, Node, Go, Rust, Make) and sets tool permissions. Detects sensitive files (.env, *.pem, credentials*) and adds deny rules so Claude can't read them.
Skills — Each repo gets a set of namespaced skills (<repo>-<skill>) so Claude Code auto-triggers them by description and they don't collide across repos. The bundled set is listed below; the canonical list lives in SKILL_NAMES in src/klausify/skills.py.
| Skill | What it does | Output |
|---|---|---|
<repo>-review |
Senior-level PR review against your base branch. Small PRs get a single-pass review; larger PRs fan out to parallel sub-agents (correctness, architecture, security, scope, plus an Agentic & Evals lens when the diff touches AI/agent/eval code) with a validation phase that removes false positives | REVIEW_OUTPUT.md |
<repo>-plan |
Multi-phase task planning + implementation: discovery → parallel exploration → clarify → parallel architectures → approval → implement → parallel review → summary | — |
<repo>-test |
Writes tests for current changes matching your repo's test patterns. Covers happy path, edge cases, and error paths without over-mocking | — |
<repo>-fix |
Fixes all lint, format, and type errors | — |
<repo>-pr |
Generates a ready-to-paste PR description | pr-description.md |
<repo>-commit |
Generates a commit message from staged changes | — |
<repo>-debug |
Five-phase debug flow: reproduce, diagnose root cause, write a failing test, fix, verify against the full suite | — |
<repo>-implement |
Implements a pasted ticket or design doc. Uses plan mode to investigate and plan before editing, enforces scope rules, and writes failing tests first for bug fixes | — |
<repo>-refactor |
Refactors code while preserving behavior exactly. Requires a passing test baseline, runs tests between every incremental step | — |
<repo>-new-worktree |
Creates a git worktree with a branch named for your task | — |
<repo>-explain |
Explains code or concept; defaults to explaining the current diff | — |
PreCommit hooks — Auto-detects your lint/format commands and runs them before each commit.
PR template — A basic PR template, only created if your repo doesn't already have one (checks root, .github/, and docs/).
.gitignore — Appends pr-description.md and REVIEW_OUTPUT.md so generated outputs don't get committed.
Migrating from 0.1.x
If you ran an earlier version of klausify, you have .claude/commands/*.md files. On the next klausify init (with 0.2.0+) those files — and only the ones klausify itself created — are removed and replaced with .claude/skills/<repo>-<skill>/SKILL.md. Any commands you wrote yourself are left alone.
Options
klausify init [OPTIONS]
Options:
-r, --repo PATH Target repository (default: current directory)
-f, --force Overwrite existing files
-b, --base-branch TEXT Base branch for diffs (default: auto-detect, prompts)
--skip-enrich Skip Claude CLI enrichment (faster, no API call)
--review-template PATH Use a custom review prompt instead of the default
Custom review template
If your team has a specific review checklist (e.g. domain-specific checks, security requirements), pass it in:
klausify init --review-template path/to/your-review.md
The template will be used as the body of the <repo>-review skill instead of the default. Custom templates are responsible for supplying their own SKILL.md frontmatter.
Individual Commands
You can run each step individually:
klausify checklist # Regenerate the review skill from CLAUDE.md
klausify skills # Regenerate all skills
klausify settings # Regenerate settings.json
klausify hooks # Regenerate hook configs
klausify github # Regenerate PR template
All subcommands support --repo, --force, and --base-branch where applicable.
How It Works
- Runs
conventions discover --claude --initto analyze your codebase and generateCLAUDE.mdwith path-scoped conventions and architecture sections - Parses
CLAUDE.mdto extract conventions, commands, and pitfalls (including which file globs each rule applies to) - Injects those into the review skill template so
<repo>-reviewchecks repo-specific rules with the right path scope - Detects your stack from marker files (
pyproject.toml,package.json,go.mod, etc.) - Sets permissions, deny rules, and hooks based on what it finds
- Skips anything that already exists (PR template) unless
--forceis used
Claude Code Integration
klausify can be used three ways with Claude Code:
As a CLI (simplest)
pip install klausify
klausify init
As a Claude Code Plugin
Install the plugin directly from GitHub:
/plugin install https://github.com/steph-dove/klausify
This gives you the klausify-init skill and the MCP server.
As an MCP Server
Add klausify as an MCP server so Claude can invoke it directly:
pip install klausify[mcp]
claude mcp add --transport stdio klausify -- klausify-mcp
Or add to your project's .mcp.json:
{
"mcpServers": {
"klausify": {
"command": "klausify-mcp",
"env": { "PYTHONUNBUFFERED": "1" }
}
}
}
The MCP server exposes these tools: klausify_init, klausify_checklist, klausify_skills, klausify_settings, klausify_status.
Requirements
- Python 3.10+
- conventions-cli >= 1.4.0
- Claude Code CLI (optional, for
--initenrichment) - mcp (optional, for MCP server:
pip install klausify[mcp])
Contributing
See CONTRIBUTING.md for contributor guidelines.
License
MIT — see LICENSE for details.
Ownership and Governance
klausify is an open-source project owned and maintained by Dovatech LLC.
Dovatech LLC is a privately held company founded and wholly owned by Stephanie Dover, who is also the original author and lead maintainer of this project.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file klausify-0.2.0.tar.gz.
File metadata
- Download URL: klausify-0.2.0.tar.gz
- Upload date:
- Size: 49.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1672419dd92e02055e1b908ca8eb5355cf6776d7c87e96ee388806b7b4ed88a5
|
|
| MD5 |
e25f418e9feaace05f1ff75bb1cd70d5
|
|
| BLAKE2b-256 |
bd26509351788d27da33c699d9274d70b94dddcbfdc163adb668308bac2d4512
|
File details
Details for the file klausify-0.2.0-py3-none-any.whl.
File metadata
- Download URL: klausify-0.2.0-py3-none-any.whl
- Upload date:
- Size: 55.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f50c0a60b59d2f19aeff4bfa02822cddd2e55cbe85a74bfe58811e5cbba611b
|
|
| MD5 |
3b4dbc21cb856d55deb81d994c2d1573
|
|
| BLAKE2b-256 |
d6bfcad0ca164db48d0cfc1022e40b646088083e70901f1543ba22f5e3b8f08e
|