跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
其他技能

sw-index

Use when the user wants the task list in docs/index.md refreshed, updated or rebuilt, says the index is out of date after editing tasks by hand, or invokes sw-index.

mhmtsrfglu · 已有静态检查记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

npx skills add mhmtsrfglu/superwiki --skill sw-index

技能说明


name: sw-index description: Use when the user wants the task list in docs/index.md refreshed, updated or rebuilt, says the index is out of date after editing tasks by hand, or invokes sw-index.

sw-index

Rewrites the task list at the top of docs/index.md from the task files. One command; do not read the task files or write the list yourself.

Run from the project root:

node docs/.sw/sw.mjs index

It prints whether the list changed and the counts. Tell the user that, in one line. Only its own section of index.md is rewritten; what the user wrote around it stays.

The list is a view. A task's status lives in the frontmatter of docs/tasks/<ID>.md: to change what the list shows, change the task file and run the command again. Never edit the list by hand.

If it fails

OutputDo
unknown command indexthe project's docs/.sw/sw.mjs is older than this skill; offer to run sw-init, which updates it and writes the list
this vault has no task modulesay so; sw-init with --tasks adds it
docs/index.md is missingoffer to run sw-init

If the user asks what is ready, what blocks a task or how many are done, answer with node docs/.sw/sw.mjs ready|check <ID>|status instead of reading the list.