Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add wangxijie001/yoji --skill record-filegit clone --depth 1 https://github.com/wangxijie001/yojiWrote 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/wangxijie001/yoji/record-file)<a href="https://agentmods.dev/skills/wangxijie001/yoji/record-file"><img src="https://agentmods.dev/badge/skills/wangxijie001/yoji/record-file/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/wangxijie001/yoji/record-file"><img src="https://agentmods.dev/badge/skills/wangxijie001/yoji/record-file.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00049 | $0.00704 |
| Opus 5 | $0.00024 | $0.00352 |
| Sonnet 5 | $0.00010 | $0.00141 |
| Haiku 4.5 | $0.00005 | $0.00070 |
Grade A, and why
record-file 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 9d 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.
What it actually says
文件记录 Skill
概述
作为 AI 伴侣,你在 companion 目录下创建或修改文件时,必须在 AGENTS.md 中留下记录。这就像你对自己"做了什么"的记忆——以后你能知道自己创建过哪些文件、为什么创建它们。
何时触发
- 使用
write_file创建新文件后 → 立即追加记录 - 使用
edit_file修改现有文件后 → 更新对应记录(如有实质变化) - 使用
write_file完全覆盖已有文件 → 更新对应记录
不需要记录的情况:
- 只是读取文件(
read_file、ls、glob、grep) - 修改内容微不足道(修正拼写、格式化),可跳过
记录格式
在 AGENTS.md 的 # 文件记录 章节下,每条记录占一行:
- [文件名](相对路径) — 用途说明(创建时间:YYYY-MM-DD)
示例:
- [SKILL.md](skills/user/my-skill/SKILL.md) — 用户自定义技能,用于快速搜索本地文档(创建时间:2026-06-25)
- [notes.txt](notes.txt) — 用户口述的购物清单(创建时间:2026-06-25)
操作流程
创建新文件
- 执行
write_file创建文件 - 读取 AGENTS.md 当前内容(如不确定文件记录章节位置)
- 使用
edit_file在# 文件记录章节末尾追加一条记录 - 记录包含:文件名(带相对路径)、用途简述、创建日期
修改已有文件
- 执行
edit_file修改文件 - 如果修改改变了文件的用途或内容性质,更新 AGENTS.md 中对应记录
- 如果只是小修补(改个错字、微调格式),不需要更新记录
如果 AGENTS.md 没有"文件记录"章节
在文件末尾新建该章节:
# 文件记录
- [xxx](xxx) — xxx(创建时间:YYYY-MM-DD)
关键规则
- 必须记录:创建任何新文件后,必须在同一轮对话中更新 AGENTS.md
- 简洁:每条记录一行,用途说明不超过 20 字
- 准确:文件路径必须是相对 companion 目录的路径
- 去重:同一文件不重复记录——如果已存在该文件的记录,更新它而不是新增一行
- 不过期:文件被删除后,不要自动删除记录(你可能不记得删过什么,留作参考)
- 不越界:只能记录 companion 目录内的文件
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.
- 9d ago First seen · 68 lines · 49 tokens per session scan A 6656135d2cbe
record-file is a skill published in the GitHub repository wangxijie001/yoji (776 stars, last pushed 27d ago), licensed MIT. It adds 49 tokens to every session and 704 once invoked, about $0.0002 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.
Other skills, from other repositories
zifamem-integrate
Add the public ZifaMem Python SDK to an AI companion, roleplay agent, coding-agent harness, or chatbot runtime. Use when the user asks to integrate ZifaMem, add emotional long-term memory, wire session summaries, inject recall context into prompts, configure LLMProvider extraction, or adapt memory to Claude Code…
zifamem-memory-audit
Review a ZifaMem integration or any AI-agent memory pipeline for extraction safety, user-fact evidence, LLMProvider validation, profile poisoning, private-data leakage, session-boundary mistakes, deletion controls, and tests. Use when the user asks to audit memory behavior, check whether memories are safe to write…
rag-evaluate-quality
Periodically measure the retrieval quality of the knowledge base using evaluateretrieval (MRR@5, Recall@5, Precision@5) plus getindexstats for health metrics. Run weekly, after significant reindex activity, or when the user reports declining answer quality. Prevents silent index rot and grounds "should we tune X"…
rag-index-decisions
After making a non-obvious architectural decision, solving a novel bug, agreeing on a coding standard, or reaching a conclusion worth remembering, index it back into the knowledge base so the next occurrence is one search away. Uses adddocument or addfromurl. Closes the feedback loop that makes a RAG-backed team…
rag-onboard-context
At the start of every new session or when the topic shifts significantly, probe the knowledge base to learn what is indexed. Calls getindexstats + listcategories + a couple of exploratory searchknowledge queries. Prevents the agent from operating blind or making wrong assumptions about what the corpus contains.
persona-knowledge
Persistent, incremental, searchable persona knowledge base. Ingests data from Obsidian vaults, chat exports, X/Twitter archives, and more into a MemPalace-backed store with a Karpathy LLM Wiki knowledge layer. Exports training/ directories for persona-model-trainer.