record-file

record-file is a skill for Claude Code from wangxijie001/yoji. It costs 49 tokens per session (704 once invoked), scanned A, original, MIT.

An instruction set that requires an entry in AGENTS.md whenever files are created or meaningfully changed. AGENTS.md is a project rules file that can also keep a record of past file changes.

In plain words
What is it for?
It helps document new or changed files, update an existing file record instead of duplicating it, and create a file-record section when AGENTS.md does not have one.
Why use it?
It prevents file changes from being forgotten later, especially when several people or coding assistants work in the same project. The record includes what changed, why, and when.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions AGENTS.md.

Good fit It helps document new or changed files, update an existing file record instead of duplicating it, and create a file-record section when AGENTS.md does not have one.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wangxijie001/yoji/record-file
Install

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.

Any agent
npx skills add wangxijie001/yoji --skill record-file
Clone the repo
git clone --depth 1 https://github.com/wangxijie001/yoji

Made for: Claude Code.

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 record-file

README.md
[![agentmods](https://agentmods.dev/badge/skills/wangxijie001/yoji/record-file/github.svg)](https://agentmods.dev/skills/wangxijie001/yoji/record-file)
Your own site
<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.

agentmods 80×15 button for record-file

Your own site · 80×15
<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>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 704 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.00049 $0.00704
Opus 5 $0.00024 $0.00352
Sonnet 5 $0.00010 $0.00141
Haiku 4.5 $0.00005 $0.00070

Measured 9d ago against content hash 6656135d2cbe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

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.

src/main/agent/skills/builtin/record-file/SKILL.md · 68 lines

What it actually says

文件记录 Skill

概述

作为 AI 伴侣,你在 companion 目录下创建或修改文件时,必须在 AGENTS.md 中留下记录。这就像你对自己"做了什么"的记忆——以后你能知道自己创建过哪些文件、为什么创建它们。

何时触发

  • 使用 write_file 创建新文件后 → 立即追加记录
  • 使用 edit_file 修改现有文件后 → 更新对应记录(如有实质变化)
  • 使用 write_file 完全覆盖已有文件 → 更新对应记录

不需要记录的情况

  • 只是读取文件(read_filelsglobgrep
  • 修改内容微不足道(修正拼写、格式化),可跳过

记录格式

在 AGENTS.md 的 # 文件记录 章节下,每条记录占一行:

- [文件名](相对路径) — 用途说明(创建时间:YYYY-MM-DD)

示例:

- [SKILL.md](skills/user/my-skill/SKILL.md) — 用户自定义技能,用于快速搜索本地文档(创建时间:2026-06-25)
- [notes.txt](notes.txt) — 用户口述的购物清单(创建时间:2026-06-25)

操作流程

创建新文件

  1. 执行 write_file 创建文件
  2. 读取 AGENTS.md 当前内容(如不确定文件记录章节位置)
  3. 使用 edit_file# 文件记录 章节末尾追加一条记录
  4. 记录包含:文件名(带相对路径)、用途简述、创建日期

修改已有文件

  1. 执行 edit_file 修改文件
  2. 如果修改改变了文件的用途或内容性质,更新 AGENTS.md 中对应记录
  3. 如果只是小修补(改个错字、微调格式),不需要更新记录

如果 AGENTS.md 没有"文件记录"章节

在文件末尾新建该章节:

# 文件记录
- [xxx](xxx) — xxx(创建时间:YYYY-MM-DD)

关键规则

  1. 必须记录:创建任何新文件后,必须在同一轮对话中更新 AGENTS.md
  2. 简洁:每条记录一行,用途说明不超过 20 字
  3. 准确:文件路径必须是相对 companion 目录的路径
  4. 去重:同一文件不重复记录——如果已存在该文件的记录,更新它而不是新增一行
  5. 不过期:文件被删除后,不要自动删除记录(你可能不记得删过什么,留作参考)
  6. 不越界:只能记录 companion 目录内的文件
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. 9d ago First seen · 68 lines · 49 tokens per session scan A 6656135d2cbe

Subscribe to this mod's changes

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.

Related

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…

zifacorp/zifamem · 88 tokens

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…

zifacorp/zifamem · 86 tokens

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"…

lyonzin/knowledge-rag · 78 tokens

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…

lyonzin/knowledge-rag · 72 tokens

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.

lyonzin/knowledge-rag · 63 tokens

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.

acnlabs/OpenPersona · 62 tokens