refactor(template): generalize project config for lab members

- Stop tracking settings.local.json; commit base settings.json instead
- Scope file permissions to workspace/ and .claude/ as safer default
- Add .gitignore entries for .claude runtime files (scheduled_tasks, keybindings)
- Annotate _LINK_MAP in init.py as user-customizable
- Strip personal references from workspace CLAUDE.md template
This commit is contained in:
Zhengshou Lai
2026-05-27 11:23:48 +08:00
parent 2bcfc0b82e
commit 0c31cffeda
4 changed files with 67 additions and 82 deletions
+4
View File
@@ -12,6 +12,10 @@ console = Console()
stderr_console = Console(stderr=True)
# Link name -> list of environment variable names to try, in order.
#
# Customize this dict for your own projects. Each entry creates a symlink
# from workspace/<name> to the target path resolved from one of the env vars.
# Users define the corresponding env vars in their shell config (e.g. ~/.zshrc).
_LINK_MAP: dict[str, list[str]] = {
"myacademia": ["path_myacademia"],
"myslides": ["path_myslides", "MYSLIDES_ROOT"],