Create or update a CLAUDE.md project inventory for the current directory. Works at any level of the code directory hierarchy.
Create or update a CLAUDE.md file in the current working directory that describes the projects found there.
This gives future Claude Code sessions immediate context about what lives in this directory.
~/code/)List the org folders with a one-line description of each.
Point to each org's CLAUDE.md for details.
Include any top-level config (common tasks, cross-project work patterns).
~/code/epinowcast/)List all repos in this org with type and description. Detect type from files present:
DESCRIPTION → R packageProject.toml → Julia package.tex or .qmd manuscript files → papersubmission/ or application/ dir → grant_quarto.yml without package files → website or slidesGet descriptions from DESCRIPTION Title field, Project.toml name, or first meaningful line of README.md.
If run inside a repo, defer to /init behaviour (document build commands, architecture, etc.).
Do not duplicate what this skill does.
If the argument is "update" or the file already exists:
Ask the user:
Then scan and generate the inventory.
Use the same structure as existing org-level CLAUDE.md files. Keep it concise: org name, one-line summary, then a table of repos.
IMPORTANT: If this command is being run as a standalone request, automatically exit after completing all phases successfully.