Docs
Set up a project
What a set-up project commits, so every teammate and every session gets the same rules, and how to get there in one command.
A project is set up when its committed files hold everything below. Run /bagheera:setup and it writes them, turns the Git hooks on in your clone, then shows you the diff; you review it and commit. Nothing is committed for you. Each teammate turns the hooks on once in their own clone.
.claude/settings.json
The marketplace, Baloo and Louie on, workflows on, deny rules for files that hold secrets, and no AI attribution on commits and pull requests:
{
"attribution": { "commit": "", "pr": "" },
"extraKnownMarketplaces": {
"bunderlog": { "source": { "source": "github", "repo": "bunderlog/claude-plugins" } }
},
"enableWorkflows": true,
"enabledPlugins": {
"baloo@bunderlog": true,
"louie@bunderlog": true
},
"permissions": {
"deny": [
"Read(**/.env)", "Read(**/.env.local)", "Read(**/.env.*.local)",
"Read(**/.env.development)", "Read(**/.env.production)",
"Read(**/.env.staging)", "Read(**/.env.test)", "Read(**/.envrc)",
"Read(**/*.pem)", "Read(**/*.key)", "Read(**/id_rsa)", "Read(**/id_ed25519)",
"Read(~/.ssh/id_*)", "Read(~/.aws/credentials)"
]
}
}
- Bagheera is not in this file on purpose: each person installs it for themselves.
- Templates such as
.env.examplestay readable. A~/rule is relative to each person’s home. - There is no
statusLineand nooutputStyle: those are each person’s choice, in~/.claude/settings.json. enableWorkflowslets Louie’s workflows run. Where it is off, Claude runs thelouie:verifieragent by name instead.
CLAUDE.md
One line that imports the commit format, so Claude writes commits Hathi accepts:
@.hathi.yml
A project without Hathi imports its own format instead, such as its commitlint config.
.hathi.yml
The commit types in full, so Claude reads them through CLAUDE.md. Every other check stays on with its defaults:
# yaml-language-server: $schema=https://raw.githubusercontent.com/bunderlog/hathi/main/schema.json
conventional-commits:
types: [build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test]
.githooks/
Three hooks, each running Hathi first. hathi hooks print <hook> prints each one:
#!/bin/sh
exec hathi check commit-msg "$@"
pre-commit and pre-push look the same. A project that already uses husky or lefthook keeps it and adds the hathi check <hook> line there. Each person turns the hooks on once per clone; put the command in the README:
git config core.hooksPath .githooks
The rest
mise.tomlpins Hathi to an exact version, 1.2.0 or later..gitignorelists/.about/proposals/and/.claude/worktrees/, where the session review and Louie’s worktrees go..github/workflows/runshathi check cion every push and pull request. See Hathi in CI.- An ADR in
.about/adr/records that the project runs Hathi and what checks secrets. - To run a formatter on Claude’s edits, the project adds its own
PostToolUsehook onEdit|Write|MultiEditto.claude/settings.json.
For a teammate
They clone the repository, open it in Claude Code and trust the folder. Claude Code adds the marketplace and turns on Baloo and Louie from the committed settings. They run git config core.hooksPath .githooks once, and install Bagheera for themselves if they want it.
Checking a setup
/bagheera:doctor names a set-up project that lacks an item from this list, and hathi doctor names a hook that doesn’t run Hathi. A commit with the message wip, or one that adds a made-up AWS key, should be refused.