agentleFS
HigangsshHigangssh/homebutler/CLAUDE.md

homebutler

CLAUDE.md297 starsChanged 9 months agoMITView on GitHub

A single Go binary for running a small home server: CLI, TUI, web dashboard, and an MCP server, with no database and nothing running on the machines it watches. All five must pass. go test ./... takes several minutes — internal/network and internal/remote wait on real timeouts — so start it early rather than running it last. Everything written here is read by users, contributors, and future maintainers. Match the voice already in git log and CHANGELOG.md. Never add Co-Authored-By:…

The file

We split this CLAUDE.md into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All five must pass. go test ./...

    line 16
  2. Very specific:

    Never add Co-Authored-By: Claude, Generated with Claude Code, 🤖 badges, "AI-assisted" notes, or any other tool signature to a commit …

    line 27
  3. Distinctive:

    Only when the subject cannot carry it.

    line 51
  4. Distinctive:

    Do not restate the diff as a bullet list, do not add a summary table, and do not open with "This PR".

    line 64

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

homebutler

A single Go binary for running a small home server: CLI, TUI, web dashboard, and an MCP server, with no database and nothing running on the machines it watches.

Verify before claiming anything works

gofmt -w .
go vet ./...
golangci-lint run
go test ./...
go build ./...

All five must pass. go test ./... takes several minutes — internal/network and internal/remote wait on real timeouts — so start it early rather than running it last.

Writing commits, PRs, and comments

Everything written here is read by users, contributors, and future maintainers. Match the voice already in git log and CHANGELOG.md.

No tool attribution

Never add Co-Authored-By: Claude, Generated with Claude Code, 🤖 badges, "AI-assisted" notes, or any other tool signature to a commit message, PR description, issue comment, review comment, or code comment. The author is the person who decided the change should exist.

Commit subjects

Conventional Commits (feat:, fix:, docs:, refactor:, test:, chore:), lowercase after the type, no trailing period, no emoji.

Describe the behaviour that changed, not the mechanism. A fix: subject should read as the symptom a user would have hit:

fix: watch check called systemd and pm2 targets clean without checking them
fix: don't blame the host key when the TOFU connection fails
feat: cap incident history so the watch directory stops growing forever
docs: lead the README with what homebutler actually prints

Not fix: update watch.go, and not fix: add nil check in checkTarget.

Commit bodies

Only when the subject cannot carry it. Explain why the change is correct or what breaks without it — the diff already shows what changed. A one-line commit with a good subject is finished, not lazy.

Note user-visible behaviour changes explicitly. Someone upgrading needs to know that settings which were silently inert will now take effect.

PR descriptions and comments

Lead with what changed and why it matters. Keep the implementation notes to the decisions a reviewer could not infer from the diff — what you reused, what you deliberately left alone, what fails fast and where.

Do not restate the diff as a bullet list, do not add a summary table, and do not open with "This PR". Skip "comprehensive", "robust", "successfully", and "seamlessly". If a section would be true of every PR in the repository, cut it.

CHANGELOG entries

Each release opens with one bolded sentence naming the problem the release solves, then the commands it introduces, then the grouped sections. Keep ⚠️ Behavior changes honest and specific — that section is the reason someone reads a changelog before upgrading.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.