| name | note |
| description | Appends a note to a CLAUDE.md file. Defaults to the project CLAUDE.md; pass a file path as the first argument to override. |
Determining the target file:
- If
<command-args> starts with a file path (absolute or ~/-prefixed), use it as target; treat the remainder as the note text.
- If a target was already used this session, reuse it without asking.
- Otherwise, default to
CLAUDE.md in the current working directory.
Steps:
- Determine the target file (see above).
- Read the target file.
- Find the most relevant section and insert the note there; if unrelated to any section, append at the end.
- Write the updated file.
- If the modified section is too big, create a file under docs//section-topic-name.md, move the section there, and link to it from the main file.
- Confirm with one short sentence what was added and to which file.