invent-agentic-kit
A Claude Code plugin that gives Invent projects a shared way of building with
Claude: one guided setup, safety hooks and secret-file rules that apply
automatically, pre-commit quality checks sized to the repo, a skill that
moves instructions out of an overgrown CLAUDE.md into rules, skills, hooks
or permissions, a suggested workflow for bigger tickets, and a review agent
that checks the result against the ticket.
What it does
1. Guided setup — /agentic-kit-setup
Run it once per project. It first checks that Node.js is installed (the
hooks need it) and copies the repo's Claude Code files
(CLAUDE.md, .claude/, .pre-commit-config.yaml) to
./.repo-setup-backup. Then it asks before every change and never rewrites
a file silently, except in step 7:
- Personal CLAUDE.md (
~/.claude/CLAUDE.md) — checks for four core
coding guidelines (think before coding, simplicity first, surgical changes,
goal-driven execution) and offers to add any that are missing.
- Repo type — asks whether this is a demo or a prod repo. The
answer decides how strict
git-safety and the pre-commit checks are (see
below).
- Project CLAUDE.md — adds the Invent project guidelines: the ticket
workflow below and a summary of the hooks in use, worded for the repo
type. Updates an older version of the block if it finds one. In a repo
without a
CLAUDE.md it starts Claude Code's built-in /init first; next
to an AGENTS.md it imports it with @AGENTS.md instead (Claude Code
stops reading AGENTS.md once a CLAUDE.md exists).
- Project settings (
.claude/settings.json, committed) — Claude Code's
own permission rules block reading and editing .env files, keys and
credentials for everyone on the team, and INVENT_REPO_TYPE records the
repo type (see below). Also checks that .env files are in .gitignore
and offers to add them.
- Pre-commit hooks — sets up the pre-commit checks for the repo type
(see below). Shows the current state of the code without changing any
file; formatting the whole repo is a separate, optional step.
- Statusline and notification (optional, personal) — a two-line
statusline and a desktop notification when Claude finishes, written into
your own
~/.claude/settings.json.
- Restructure — runs
/repo-setup (see below) without questions: it
lists what belongs outside CLAUDE.md, takes a second backup and applies
all of it. The skill asks nothing; Claude Code may still ask you to
allow each file change, depending on your permission mode. The Invent
block stays as it is.
- Done — summarizes the changes, gives both restore commands, and
points to
/doctor and /doctor prompt-audit for tidying up later.
Backups. Each of the two backups is a timestamped folder in
./.repo-setup-backup, kept out of git, and the setup prints a restore
command for each. The second one undoes only the restructuring; the first
one puts back every file that existed before the setup, as it was then.
Files the setup created, and changes to .gitignore and ~/.claude, stay
in place. Step 7 never adds back what you declined earlier in the setup.
Step 5 only runs for Python projects in a git repo (.py files anywhere in
the repo count). The pre-commit checks cover Python files only; there are no
checks for JS/TS or other languages (Prettier, ESLint, …) yet. In other repos
the guidelines block from step 3 leaves the pre-commit part out.
Statusline and notification. Step 6 copies extras/statusline.js and
extras/notify.js to ~/.claude/invent-kit/ and points your personal
settings at them. Both are Node scripts, so they run on Windows, macOS and
Linux without extra tools.
[Opus] effort:medium ctx:23%/1000k $0.4123 today:~$12.34 +120/-45 5h:37%
(main*) ~/code/my-repo
ctx: context used (cyan < 50 %, yellow ≥ 50 %, red ≥ 80 %)
$…: this session's cost as Claude Code reports it
today:~$: estimated spend across all of today's sessions and subagents, at
API list prices (as of 2026-09-25). Not your bill on a subscription. Update
the PRICES table in the script when prices change.
+/-: lines added/removed; 5h: 5-hour rate-limit use (Pro/Max only)
- git branch (
* = uncommitted changes) and working directory
The notification reads "Claude finished in - your turn", so
parallel sessions stay apart.
2. Guards: hooks, deny rules and pre-commit
Claude Code hooks come with the plugin and are active as soon as it is
installed. They run while Claude works, on Claude's own tool calls: