WilsonKinyua/claude-mods/tree/main/plugins/house-rules

git 작업을 자신의 신원으로 유지하도록 Bash 도구 호출을 가로채는 Claude Code 플러그인입니다. AI 공동 작성자 트레일러와 위조된 작성자 플래그를 제거하고, 잘못된 사람으로 생성된 커밋이나 PR을 차단하며, claude/ 또는 ai/처럼 차단된 접두사가 붙은 브랜치의 이름을 바꿉니다.
WilsonKinyua/claude-mods/tree/main/plugins/house-rules

house-rules는 WilsonKinyua/claude-mods에 있는 세 가지 mod 중 하나이며 Claude Code function hooks로 만들어졌습니다. Bash tool.call 이벤트에 연결되어 Claude가 실행하는 모든 명령을 실행 전에 검사하고, 서브에이전트의 명령도 포함합니다. 자동으로 수정되는 항목은 -c user.email/user.name 재정의, GIT_AUTHOR_/GIT_COMMITTER_ 환경 변수, 일치하지 않는 --author 플래그, 커밋과 gh pr/issue 텍스트의 Co-authored-by/Generated-by/"Generated with Claude Code" 줄 및 세션 링크, 그리고 차단된 접두사가 붙은 새 브랜치입니다(claude/fix-login은 feat/fix-login이 됩니다)。다음 항목은 이유를 Claude에 설명한 뒤 차단됩니다. 차단된 접두사 브랜치에서의 push 또는 PR(Claude에는 git branch -m fix가 전달됨), user.email/user.name이 자신의 것이 아닌 저장소에서의 커밋, git config user.email/name을 다른 값으로 설정하는 작업, 허용되지 않은 계정으로 로그인한 상태에서의 gh pr create입니다. /config 또는 claude plugin configure house-rules@wilson-mods로 gitEmail, gitNames, githubLogin, blockedBranchPrefixes, branchType를 설정할 수 있습니다. Claude Code 2.1.286 이상이 필요하며 /plugin marketplace add WilsonKinyua/claude-mods와 /plugin install house-rules@wilson-mods로 설치합니다.
먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.
claude plugin marketplace add WilsonKinyua/claude-mods claude plugin install house-rules
Three Claude Code mods: plugins built from function hooks that run inside Claude Code, in the terminal and the desktop app's Code tab.
| Mod | What it does |
| --- | --- |
| house-rules | Keeps Claude's git work under your identity: removes AI co-author trailers, renames claude/ and ai/ branches, and blocks commits or PRs made as the wrong person |
| usage-band | Shows 5-hour and 7-day usage limits, context fill, cost and the git branch in a band above the prompt |
| lean-comments | Stops Claude adding banner, multi-line, long or narrating code comments, so comments only explain a non-obvious why in one short line |
Needs Claude Code 2.1.286 or later.
/plugin marketplace add WilsonKinyua/claude-mods
/plugin install house-rules@wilson-mods
/plugin install usage-band@wilson-mods
/plugin install lean-comments@wilson-mods
/reload-plugins
Plugins install at user scope, so they load in every project. Add --scope project to claude plugin install to turn one on for a single repo instead.
Mods run with the same access as Claude Code. Read the source before you install, as you would with any package.
It checks every Bash command Claude runs, including subagents' commands, before the command executes.
Corrected automatically (you get a toast, and Claude is told what actually ran):
-c user.email=…, -c user.name=…, GIT_AUTHOR_* / GIT_COMMITTER_* env vars and any --author that isn't yours are removed.Co-authored-by:, Generated-by:, 🤖 Generated with Claude Code and Claude session links are removed from commit messages and gh pr / gh issue text.git checkout -b claude/fix-login creates feat/fix-login, and a push in the same command follows the rename.Blocked, with the reason given to Claude:
git branch -m command to rename it first.git commit in a repo whose user.email or user.name isn't yours.git config user.email / user.name set to anything else.gh pr create while gh is signed in to another account. This check only runs if you set a GitHub login.Set these in /config, or from a terminal:
claude plugin configure house-rules@wilson-mods
| Setting | Default | Meaning |
| --- | --- | --- |
| gitEmail | your global user.email | The only email commits may be authored as |
| gitNames | your global user.name | Accepted author names, separated by commas |
| githubLogin | empty (no check) | The gh account allowed to open PRs |
| blockedBranchPrefixes | claude,ai,bot,copilot,codex,… | Branch prefixes that get renamed or blocked |
| branchType | feat | The prefix a blocked branch is renamed to |
If one repo should keep a different identity, such as a work email, run this inside that repo yourself:
git config house-rules.allow-identity true
Claude can't set that key; the mod blocks it.

/usage, or the details button, opens a pane with the context breakdown by category and spend per day.The rings are drawn as SVG in the desktop app and as ◔◑◕ glyphs in the terminal. Limits only appear on a Claude subscription. The today and month totals only count sessions where the mod was loaded.
It checks every Edit and Write Claude makes. Only comments the change adds are checked; existing comments are left alone. By default a change is refused, with a list of the offending comments, and Claude rewrites it. A comment is flagged when it:
// ── Section ────── or # ==========;/** … */ doc blocks;// Step 1: load config or # Helpers.A change that adds more than 3 new comments is flagged too.
Tool directives are never flagged: eslint-disable, @ts-expect-error, noqa, # type: ignore, prettier-ignore, //go:, shebangs, license headers and similar. Markdown and other prose files are skipped.
It understands comment syntax for JS/TS, Go, Java, Kotlin, Swift, C/C++, C#, Rust, Dart, PHP, Python, Ruby, shell, YAML, TOML, SQL, Lua, CSS/SCSS, HTML, Vue, Svelte and Astro.
| Setting | Default | Meaning |
| --- | --- | --- |
| mode | block | block refuses the change so Claude rewrites it; warn lets it through and tells Claude what to fix; off disables the mod |
| maxLength | 120 | Longest comment text allowed, in characters |
| maxNewComments | 3 | How many new comments one change may add |
| allowDocComments | false | Let /** … */ doc blocks span several lines, e.g. for a published library's API |
claude --plugin-dir ./plugins/usage-band
claude plugin validate ./plugins/usage-band
Saving a file reloads the mod in the running session. Bump version in the plugin's plugin.json and in .claude-plugin/marketplace.json when you release, so claude plugin marketplace update wilson-mods picks up the change.