Rename
DocumentsrenameRename is an Agent Skill for documents published in the ZimoLiao/scholaraio repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Use when the user wants to normalize paper directory names to Author-Year-Title format after metadata correction or audit cleanup.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/ZimoLiao/scholaraio/blob/HEAD/.claude/skills/rename/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/rename, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
重命名论文文件
根据 JSON 元数据规范化论文文件名(Author-Year-Title 格式)。
执行逻辑
-
判断用户意图:
- 重命名单篇:指定 paper_id
- 重命名全部:使用 --all
- 先预览再执行:使用 --dry-run
-
执行命令:
预览全部重命名:
scholaraio rename --all --dry-run
执行全部重命名:
scholaraio rename --all
重命名单篇论文:
scholaraio rename <paper-id>
- 重命名后建议重建索引:
scholaraio pipeline reindex
示例
用户说:"帮我把论文文件名整理一下"
→ 先执行 rename --all --dry-run 预览,确认后执行 rename --all