Add a project-root CLAUDE.md documenting the flake's formatting and lint gates (treefmt → nixfmt/shfmt/prettier, deadnix, statix, pre-commit), how to run them (nix fmt, nix flake check, nix develop), and the host-eval step.
Add a home/claude/memory/ entry recording that any nixpkgs tool can be run ad hoc via nix run / nix shell nixpkgs#<pkg>, plus its MEMORY.md index line.
Why
The recent CI breakage was a docs edit committed without running prettier: the docs-only PR reported green (the CI detect step skips the heavy checks when no .nix/flake.lock/workflow file changes) while the push to main went red. The new CLAUDE.md records that discipline — docs are prettier-checked too — so it does not recur.
Notes
The memory addition takes effect only after a home-manager rebuild (nh home switch); ~/.claude/memory is a Nix symlink to this repo.
The project-root CLAUDE.md is read directly from the working tree — no rebuild needed.
Verification
nix flake check passes with these files (treefmt/deadnix/statix/pre-commit).
## What
- Add a project-root `CLAUDE.md` documenting the flake's formatting and lint gates (treefmt → nixfmt/shfmt/prettier, deadnix, statix, pre-commit), how to run them (`nix fmt`, `nix flake check`, `nix develop`), and the host-eval step.
- Add a `home/claude/memory/` entry recording that any nixpkgs tool can be run ad hoc via `nix run` / `nix shell nixpkgs#<pkg>`, plus its `MEMORY.md` index line.
## Why
The recent CI breakage was a docs edit committed without running prettier: the docs-only PR reported green (the CI `detect` step skips the heavy checks when no `.nix`/`flake.lock`/workflow file changes) while the push to `main` went red. The new `CLAUDE.md` records that discipline — docs are prettier-checked too — so it does not recur.
## Notes
- The memory addition takes effect only after a home-manager rebuild (`nh home switch`); `~/.claude/memory` is a Nix symlink to this repo.
- The project-root `CLAUDE.md` is read directly from the working tree — no rebuild needed.
## Verification
- `nix flake check` passes with these files (treefmt/deadnix/statix/pre-commit).
Document the formatting and lint gates (treefmt/nixfmt/shfmt/prettier,
deadnix, statix, pre-commit) and how to run them, so changes -- docs
included -- are formatted before commit. Notes the CI detect step that
skips heavy checks on docs-only PRs, which can report a false green.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Record that any nixpkgs tool can be run on the fly via nix run / nix
shell, so a missing command during development is not a dead end. Takes
effect after a home-manager rebuild.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What
CLAUDE.mddocumenting the flake's formatting and lint gates (treefmt → nixfmt/shfmt/prettier, deadnix, statix, pre-commit), how to run them (nix fmt,nix flake check,nix develop), and the host-eval step.home/claude/memory/entry recording that any nixpkgs tool can be run ad hoc vianix run/nix shell nixpkgs#<pkg>, plus itsMEMORY.mdindex line.Why
The recent CI breakage was a docs edit committed without running prettier: the docs-only PR reported green (the CI
detectstep skips the heavy checks when no.nix/flake.lock/workflow file changes) while the push tomainwent red. The newCLAUDE.mdrecords that discipline — docs are prettier-checked too — so it does not recur.Notes
nh home switch);~/.claude/memoryis a Nix symlink to this repo.CLAUDE.mdis read directly from the working tree — no rebuild needed.Verification
nix flake checkpasses with these files (treefmt/deadnix/statix/pre-commit).