gen-claudemdlisted
Install: claude install-skill thettwe/nyann
# gen-claudemd
Standalone CLAUDE.md regeneration. Wraps `bin/gen-claudemd.sh` with the
same inputs bootstrap uses, but skips the full bootstrap pipeline so the
user can refresh CLAUDE.md after changing their profile, adding docs, or
restructuring workspaces.
## 1. Gather inputs
The generator needs three inputs. Resolve them in this order:
1. **Profile** — resolve the active profile via preferences or CLAUDE.md
markers; load with `bin/load-profile.sh <name>`. If the user names a
specific profile, use that instead.
2. **Doc plan** — the generator needs a DocumentationPlan. To preserve
the repo's existing doc routing (local / Obsidian / Notion / split),
re-derive the plan using the same routing the user originally chose.
Check `profile.documentation.storage_strategy`; if it names a
non-local backend, also run `bin/detect-mcp-docs.sh` and pass
`--mcp-targets` to route-docs. For local-only repos (the common
case): `bin/route-docs.sh --profile <profile-path>` suffices.
Write the resulting DocumentationPlan JSON to a temp file.
3. **Stack** (optional but recommended) — run `bin/detect-stack.sh --path .`
for a StackDescriptor JSON. Write it to a temp file. Skip if
detection fails (gen-claudemd falls back to profile-only data).
For monorepos, also resolve workspace configs:
```
bin/resolve-workspace-configs.sh --stack <stack-path> --profile <profile-path>
```
Pass the result via `--workspace-configs <path>`.
## 2. Snapshot the current state
Befo