Shared rules for coding agents working in this repository. Keep project rules here; CLAUDE.md imports this file.
README.md says what the repository is.
The project's code name is devtab-dev (domain devtab.dev); it is four repositories named after it, and a clone
of this one has only this one:
devtab-dev-extension— the Chrome extension: the New Tab page, the developer tools, comparing code.devtab-dev-web— the product site atdevtab.dev.devtab-dev-docs— the developer documents: decisions, the plan, research and the experiments. Private.- This repository —
devtab-dev-server— the companion for live review of local changes. No code yet.
This repository is public: nothing private is ever committed here (see "Commits"). Nothing is copied here from the
developer documents — not the experiments, not their recorded output; what code needs from them is written anew for
this repository. A spikes folder or link is refused by .gitignore and the pre-commit hook.
Only from public registries: crates.io for Rust, the public npm registry (registry.npmjs.org) for JavaScript. Never
read or change the global ~/.npmrc or another registry configuration, and run every install from the project
directory. Exact versions, at least two weeks old. No git hooks manager (husky, lint-staged).
Commits, pull requests, tags and release notes carry no AI or agent attribution of any kind: no Co-Authored-By:
trailer for a model or an agent, no "Generated with …" line. Code and documents of this repository do not mention AI
tools.
The hooks are plain git hooks in .githooks/, the same as the extension's, no hooks manager:
- Once per clone:
scripts/install-hooks.shsetscore.hooksPath, creates<git common dir>/info/privacy-patterns(one extended regular expression per line, matched without case; never committed) and tells whether gitleaks is there. Then set the clone's own identity:git config user.name …,git config user.email …, andgit config commit.gpgsign false. Never commit under the global identity, never use--author, never enable signing with another key. - pre-commit refuses local-only files (
spikes,.env,CLAUDE.local.md,.claude/settings*.json), added lines with an absolute home path, the global git address or a private pattern, an author with the global address, and secrets (gitleaks with.gitleaks.toml; without gitleaks the commit is refused). commit-msg refuses agent attribution and private patterns. pre-push repeats the secret and private-data scan on every commit that leaves the machine. - Never committed here: build output (
target/,node_modules,dist,.state/, logs),.env, personal agent settings, and private data: a person's name or address, an employer, a machine's name, a path into a home directory, the names of the owner's other products, the owner's own words. - Messages are in English. The subject is
area: Sentence— the area is a folder or part (repository,readme,agents,scripts, …), the sentence starts with a capital letter and has no full stop. The body, when there is one, says why. - Language: code, comments,
AGENTS.md,README.mdand commit messages are in English.