generate-mocs

generate-mocs is a skill for Claude Code, Codex from huangkiki/dailypaper-skills. It costs 50 tokens per session (523 once invoked), scanned A, original, Apache-2.0.

An Obsidian tool for regenerating MOCs, or Maps of Content: note pages that act as indexes and navigation hubs for papers and concepts.

In plain words
What is it for?
Use it to refresh paper and concept indexes, report what changed, and repeat the process safely without creating duplicate updates.
Why use it?
It keeps those index pages synchronized with the notes they point to and can optionally create Git commits or push changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is python3 ../_shared/generate_concept_mocs.py.

Good fit Use it to refresh paper and concept indexes, report what changed, and repeat the process safely without creating duplicate updates.

Compare 6 skills from other repositories ↓
About the project

dailypaper-skills is a collection of agent skills that automates a research-paper reading workflow. It finds recent papers from sources such as Hugging Face and arXiv, ranks them by the user’s interests, and creates structured notes in Obsidian, with optional Zotero support. The catalogue skills are the project’s own workflow components for coding agents.

huangkiki/dailypaper-skills · 1,220 stars · on GitHub

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/huangkiki/dailypaper-skills
agentmods
npx agentmods add skills/huangkiki/dailypaper-skills/generate-mocs

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for generate-mocs

README.md
[![agentmods](https://agentmods.dev/badge/skills/huangkiki/dailypaper-skills/generate-mocs/github.svg)](https://agentmods.dev/skills/huangkiki/dailypaper-skills/generate-mocs)
Your own site
<a href="https://agentmods.dev/skills/huangkiki/dailypaper-skills/generate-mocs"><img src="https://agentmods.dev/badge/skills/huangkiki/dailypaper-skills/generate-mocs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for generate-mocs

Your own site · 80×15
<a href="https://agentmods.dev/skills/huangkiki/dailypaper-skills/generate-mocs"><img src="https://agentmods.dev/badge/skills/huangkiki/dailypaper-skills/generate-mocs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 523 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00050 $0.00523
Opus 5 $0.00025 $0.00262
Sonnet 5 $0.00010 $0.00105
Haiku 4.5 $0.00005 $0.00052

Measured 13d ago against content hash 93694895c7ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

generate-mocs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/generate-mocs/SKILL.md · 74 lines

What it actually says

更新目录页

这个 skill 用于手动补刷 Obsidian 里的目录页 / 导航页(MOC)。

Step 0: 读取共享配置

先读取 ../_shared/user-config.json,如果 ../_shared/user-config.local.json 存在,再用它覆盖默认值。

显式生成并在后续统一使用这些变量:

  • VAULT_PATH
  • NOTES_PATH
  • CONCEPTS_PATH
  • AUTO_REFRESH_INDEXES
  • GIT_COMMIT_ENABLED
  • GIT_PUSH_ENABLED

其中:

  • NOTES_PATH = {VAULT_PATH}/{paper_notes_folder}
  • CONCEPTS_PATH = {NOTES_PATH}/{concepts_folder}
  • GIT_PUSH_ENABLED 只有在 GIT_COMMIT_ENABLED=true 时才可能为真

后续步骤统一使用上面的变量。

执行步骤

  1. 运行概念目录页脚本:
python3 ../_shared/generate_concept_mocs.py
  1. 运行论文目录页脚本:
python3 ../_shared/generate_paper_mocs.py
  1. 汇报:
    • 扫描了多少个目录
    • 新建 / 更新了多少个目录页
    • 目录页文件写到了哪里

git 自动化

默认配置下:

  • AUTO_REFRESH_INDEXES=true
  • GIT_COMMIT_ENABLED=false
  • GIT_PUSH_ENABLED=false

只有在 GIT_COMMIT_ENABLED=true 时才做 git 操作,并且必须先检查:

  1. VAULT_PATH/.git 是否存在
  2. git add 之后是否真的有 staged changes

只有在上面两项都满足时才 commit。

只有在 GIT_PUSH_ENABLED=true 且仓库已配置远端时才 push。

结果要求

  • 目录页生成逻辑必须来自仓库自带脚本,不依赖 VAULT_PATH/scripts/*
  • 重复运行应保持幂等
  • 用户手动运行这个 skill 时,不受 AUTO_REFRESH_INDEXES 开关影响
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 74 lines · 50 tokens per session scan A 93694895c7ee

Subscribe to this mod's changes

generate-mocs is a skill published in the GitHub repository huangkiki/dailypaper-skills (1,220 stars, last pushed 20d ago), licensed Apache-2.0. It adds 50 tokens to every session and 523 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories