add repo-specific claude memory

This commit is contained in:
Yan Lin 2025-11-08 15:34:16 +01:00
parent 5ccc7cb272
commit 53fee384c7
2 changed files with 8 additions and 8 deletions

8
CLAUDE.md Normal file
View file

@ -0,0 +1,8 @@
## Coding Style
- Never write shebang unless specifically requested
## NixOS
- This is my nixOS configuration for all my personal computers, and you are running on one of the nixOS hosts
- Check existing nix config when interacting with runtime environments
- Per spirit of nixOS reproducibility, try to analysis problems purely based on my nixOS configuration system first, since it should be representative of the actual runtime environment of the host machine; especially avoid interacting with temporarily runtime environments, like searching in nix store or using `nix-env`.
- Use `oss` alias for nixos-rebuild switch and `hms` alias for home-manager switch

View file

@ -170,14 +170,6 @@ let
# Default global memory content # Default global memory content
defaultGlobalMemory = '' defaultGlobalMemory = ''
# Global Claude Code Instructions
- Never write shebang unless specifically requested
## NixOS
- I use nixOS for all my computers (global config in ~/.config/nix) and nix-shell for project-specific runtime management
- Check existing nix config when interacting with runtime environments
- Use `oss` alias for nixos-rebuild switch (cross-platform, works on both NixOS and nix-darwin)
- Use `hms` alias for home-manager switch
''; '';
# Global memory configuration # Global memory configuration