diff --git a/CLAUDE.md b/CLAUDE.md index 33dc967..a38d35e 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -92,3 +92,20 @@ node --test tests/*.test.mjs - Conventional Commits: `type(scope): description` - English for all code, comments, and documentation - Norwegian for project-internal communication + +## Communication patterns + +### Linking to local files + +When pointing to local files in responses, always use markdown link syntax with a descriptive name: + +- Use `[Human-friendly name](file:///absolute/path)` — never bare `file:///...` URLs or autolinks ``. +- Always use absolute paths. Never `~/` or relative paths. +- For multiple files, render as a bullet list of named markdown links. + +Why: bare `file://` URLs only render the first as clickable across multiple lines. Named markdown links make each entry independently clickable and look cleaner. + +Example: + +- [Brief](file:///Users/ktg/.../brief.html) +- [Research summary](file:///Users/ktg/.../research/summary.md)