Git

Keep local work, commits and publication consistent across Claude and Codex. Install with Safety through adopt; Helm commands already load both.

The rule defines settings, commit standards and shared safeguards. Each command keeps its own branch preparation and publication/recovery procedures; ordinary coding does not run those workflows merely by loading the rule.

Configuration owner

Shared settings normally live in AGENTS.md, imported by CLAUDE.md. Actual imports, nested instructions and overrides determine the policy. Conflicts block dependent actions; log’s shared setup handles reconciliation.

Setting Default What it controls
ship-method direct Direct pushes or PR/MR handoffs.
git-auto-commit true Whether completed local work can be committed without another question.
git-merge-strategy squash Squash or merge reviewed integrations; rebase only eligible private, unpushed work.

Defaults apply only when a setting is absent. Team size does not select a mode. New configuration uses Markdown bullets; supported existing formats are preserved.

Ship can use these defaults in a project with no instruction files or previous Helm setup. It does not create configuration files or require setup before preparing publication for approval.

Local work

Edits stay on the current permitted branch, subject to each command’s preparation requirements. The agent preserves unrelated changes, including staged work, without automatic resets, stashes or cleanup. Static inspection does not authorize code execution or access to operational records.

Auto-commit

When enabled, completed coherent work can be committed after required checks unless you defer it. Otherwise the agent asks. It reviews the content and index, then stages only intended paths and hunks.

Public legal-document commits still need exact content and commit approval. Auto-commit never approves publication. New commits name the committing agent in a Co-authored-by trailer.

Conventional Commits

Helm uses scoped messages, with project or user policy taking precedence:

fix(payment): handle expired cards
feat(auth)!: replace sessions with JWT

Use feat for features, fix for bugs and suitable types such as docs, test or refactor for other work. Helm requires a lowercase module/domain scope; Conventional Commits 1.0.0 makes scope optional. Mark breaking changes with !, a BREAKING CHANGE: footer or both, and explain the break.

Use a body when it adds a non-obvious reason or important tradeoff. Straightforward changes need no body. Reference links support maintaining the policy, without adding online checks to every commit.

Quality checks

Start with the smallest established checks that cover the change and affected consumers. Broaden to the full suite when required, when effects span the project or when impact cannot be reliably bounded. Shared files do not automatically mean every test must run.

Reuse passed results while their relevant inputs and environment still match; task completion alone does not require another run. Report the tested scope and limits accurately. Required checks and reviews still apply, and failures block dependent publication.

Publication

Ship handles reviewed pushes, optional target updates and separately approved releases on ready, integrated main/master. Each push needs concrete authorization for its destination, source, refs and effects, including deployment triggers.

Results are read back before claiming success. Branches stay intact by default; base/environment branches and public published tags remain protected. Normalized history and private archive backups follow ship’s specialist procedures. Without original rewrite proof, ship can instead review an explicit history replacement, backed by a verified copy of the current remote history and fixed leases.