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.
git clone --depth 1 https://github.com/ryanzhao1011/workframenpx agentmods add skills/ryanzhao1011/workframe/module-index-refreshWrote 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.
[](https://agentmods.dev/skills/ryanzhao1011/workframe/module-index-refresh)<a href="https://agentmods.dev/skills/ryanzhao1011/workframe/module-index-refresh"><img src="https://agentmods.dev/badge/skills/ryanzhao1011/workframe/module-index-refresh/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.
<a href="https://agentmods.dev/skills/ryanzhao1011/workframe/module-index-refresh"><img src="https://agentmods.dev/badge/skills/ryanzhao1011/workframe/module-index-refresh.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00183 | $0.04957 |
| Opus 5.5 | $0.00073 | $0.01983 |
| Sonnet 5.5 | $0.00037 | $0.00991 |
| Haiku 4.5 | $0.00018 | $0.00496 |
Grade A, and why
module-index-refresh 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 3d 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.
How it starts
The opening of the file, as written. The whole thing — 219 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Module Index Refresh Skill
前置依赖
调用本 skill 前需读 skill: document-norms §3(机器维护段边界格式)/ §4(索引层级与同步规则)。
定位
modules/ 体系下机器维护索引段的唯一刷新入口。
适用范围:
- 全局
projects/modules/overview.md的basic-modules-index段 - 基础模块
<basic>/overview.md的submodules-index段 - 子模块
<sub>/overview.md的current-state-summary+requirements-index段 - 子模块需求清单
<sub>/requirements/overview.md的requirements-by-status段 - 需求
<req_slug>/overview.md的sub-requirements-index段
严格保证:
- 只重写
<!-- WORKFRAME:AUTO-INDEX:START[:<name>] -->与配对<!-- WORKFRAME:AUTO-INDEX:END[:<name>] -->之间内容(:<name>可选;命名段格式见 document-norms §3.3 + 子模块 overview 模板的current-state-summary/requirements-index双段示例) - 段外人写部分(positioning / 中间内容)零接触
- 同输入 → 同输出(可 diff 复现)
不适用:
- 修改 frontmatter
updated字段 → 由obsidian-safe-write或文档创建 skill 维护 - 修改 PRD 内容 → 由
prd-writer - 修改 current-state/ 内容 → 由
code-to-doc - 修复 broken link → 由
obsidian-link-audit
输入
| 模式 | 输入 |
|---|---|
| 增量(推荐) | 限定路径,如 <basic> / <basic>/<sub> / <basic>/<sub>/requirements/<req_slug> |
| 全量 | 无输入(递归 projects/modules/) |
工作流
Step 1: 路径解析与影响范围
按输入路径计算需刷新的 overview 文件:
| 输入路径 | 受影响 overview |
|---|---|
| 全量 | modules/overview.md + 所有 <basic>/overview.md + 所有 <sub>/overview.md + 所有 requirements/overview.md + 所有 <req_slug>/overview.md |
<basic> |
modules/overview.md + <basic>/overview.md |
<basic>/<sub> |
modules/overview.md + <basic>/overview.md + <basic>/<sub>/overview.md + <basic>/<sub>/requirements/overview.md |
<basic>/<sub>/requirements/<req_slug> |
上一行 + <req_slug>/overview.md |
优化原则:能只刷一个子模块就不全量刷。同一文件的多个 auto_sections 一次性处理,不重复读写。
Step 1.5: 全部段交给脚本(单一实现,防漂移)
六类段都由 module_init.py 渲染与写入(规则只在 _module_nav.py 一处;建树时也调同一入口),
模型不渲染、不手改段体:
# $WF_PLUGIN_ROOT = 会话开场注入的「本会话插件根」,执行前换成那个路径
R="$WF_PLUGIN_ROOT/scripts/module_init.py"
python -B "$R" --project . --refresh-index [--scope <Step 1 的输入路径或刚写的文件>…] # 写有差异的段
python -B "$R" --project . --check [--scope …] # 零写入比较
python -B "$R" --project . --convert-layout [--scope …] # 旧版式转换预览
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.
- 3d ago Changed · +6 lines 09b8ab1c3835
- 1mo ago Changed · +11 lines · +73 tokens per session scan B → A 347ed0b2319f
- 3mo ago First seen · 202 lines · 110 tokens per session scan B f1ad168645da
module-index-refresh is a skill published in the GitHub repository ryanzhao1011/workframe (9 stars, last pushed 5d ago), licensed MIT. It adds 183 tokens to every session and 4,957 once invoked, about $0.0007 per session on Opus 5.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-31.
module-index-refresh compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| module-index-refreshryanzhao1011/workframe | Skill | 9 | 5d ago | MIT | A | 183 | Claude Code |
| html-prototypemayuemarsha-del/pm-skills | Skill | 5 | 6mo ago | MIT | A | 97 | Claude Code |
| feature-acceptancemayuemarsha-del/pm-skills | Skill | 5 | 6mo ago | MIT | A | 192 | Claude Code |
| prdmayuemarsha-del/pm-skills | Skill | 5 | 6mo ago | MIT | A | 202 | Claude Code |
| ui-walkthroughmayuemarsha-del/pm-skills | Skill | 5 | 6mo ago | MIT | A | 231 | Claude Code |
| gbgcielebak/goal-by-goal | Skill | 1 | 5mo ago | MIT | A | 150 | Claude Code |
| competitor-researchmayuemarsha-del/pm-skills | Skill | 5 | 6mo ago | MIT | A | 123 | Claude Code |