Getting Started
Lunchbox is a collection of small CLI tools that help enforce consistent Git workflows. Each tool is published as a standalone npm package under the @lunchbox-tools scope.
Available Packages
| Package | Description |
|---|---|
@lunchbox-tools/commit | Interactive commit message generator |
@lunchbox-tools/branch | Interactive branch name generator |
Interactive Setup
Choose what you want and review the changes before anything is applied:
npx @lunchbox-tools/setupIt can install the commit and branch tools (in the project with your package manager, or globally), install the agent skills through the skills CLI, and add git aliases such as git sweep to your global git config. It asks before replacing an alias with a different value, and leaves an existing commit or branch script alone.
Quick Start
Run a tool without installing anything, from anywhere inside a git repository:
npx @lunchbox-tools/commit
npx @lunchbox-tools/branchyarn dlx @lunchbox-tools/commit
yarn dlx @lunchbox-tools/branchpnpm dlx @lunchbox-tools/commit
pnpm dlx @lunchbox-tools/branchInstall
Install globally to get the lunchbox-commit and lunchbox-branch commands everywhere:
npm install -g @lunchbox-tools/commit @lunchbox-tools/branchOr add only the tools you need to a project, to pin their version for the whole team:
npm install -D @lunchbox-tools/commit
npm install -D @lunchbox-tools/branchyarn add -D @lunchbox-tools/commit
yarn add -D @lunchbox-tools/branchpnpm add -D @lunchbox-tools/commit
pnpm add -D @lunchbox-tools/branchConfiguration
Commit lunchbox.config.json at the root of your repository to share options with your team. Each tool reads its own section:
{
"branch": { "ticketPrefix": "PROJ-", "ticketProvider": "jira" },
"commit": {
"commitScopes": [{ "label": "api — Public API surface", "value": "api" }],
"ticketPrefix": "PROJ-",
"ticketProvider": "jira"
}
}See the branch and commit options.
Agent Skills
The tools are interactive, so a coding agent cannot drive them. The skills teach it to create the same branches and commits with plain git, following your configuration:
npx skills add qtn-g/lunchboxIn Claude Code, you can install them as a plugin instead, which also lets you update them with claude plugin update:
/plugin install lunchbox --marketplace qtn-g/lunchboxThe repository also holds coding-style, the coding conventions lunchbox itself follows. It has nothing to do with the tools, so install it only if you want those conventions in your project. The Claude Code plugin always includes it and applies it to all code, so use the skills CLI to install the branch and commit skills alone.
Use From a Script
Each package also exposes a setup function that accepts an optional configuration object and returns a prompt instance. Call .run() to start the interactive flow:
import { setupCommitPrompt } from '@lunchbox-tools/commit';
setupCommitPrompt().run();import { setupBranchPrompt } from '@lunchbox-tools/branch';
setupBranchPrompt().run();You can wire these into npm scripts, husky hooks, or any other automation entry point.