重新生成 Obsidian 里的目录页 / 导航页(MOC)。 当用户说“更新索引”“更新论文和概念目录”“刷新论文和概念目录”“刷新MOC”时使用。
63
79%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./skills/generate-mocs/SKILL.md开始前读取 Agent 运行约定,解析当前 Skill 目录、有效配置和 TEMP_DIR,再执行下文。
这个 skill 用于手动补刷 Obsidian 里的目录页 / 导航页(MOC)。
运行 python3 ../_shared/user_config.py,使用其输出的合并配置(含个人配置和环境变量覆盖)。
显式生成并在后续统一使用这些变量:
VAULT_PATHNOTES_PATHCONCEPTS_PATHAUTO_REFRESH_INDEXESGIT_COMMIT_ENABLEDGIT_PUSH_ENABLED其中:
NOTES_PATH = {VAULT_PATH}/{paper_notes_folder}CONCEPTS_PATH = {NOTES_PATH}/{concepts_folder}GIT_PUSH_ENABLED 只有在 GIT_COMMIT_ENABLED=true 时才可能为真后续步骤统一使用上面的变量。
python3 ../_shared/generate_concept_mocs.pypython3 ../_shared/generate_paper_mocs.py默认配置下:
AUTO_REFRESH_INDEXES=trueGIT_COMMIT_ENABLED=falseGIT_PUSH_ENABLED=false只有在 GIT_COMMIT_ENABLED=true 时才做 git 操作,并且必须先检查:
VAULT_PATH/.git 是否存在git add 之后是否真的有 staged changes只有在上面两项都满足时才 commit。
只有在 GIT_PUSH_ENABLED=true 且仓库已配置远端时才 push。
VAULT_PATH/scripts/*AUTO_REFRESH_INDEXES 开关影响10c9921
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.