wiki-fileback

wiki-fileback is a skill for Claude Code, Codex from GYF0311/lorekit. It costs 59 tokens per session (1,767 once invoked), scanned A, original, MIT.

A skill for saving decisions, facts, and insights from a conversation into a file-based knowledge base. It finds the relevant subject page and appends a dated timeline entry without rewriting the existing summary.

In plain words
What is it for?
Use it when asked to remember something, make a note, file information back, or save a decision to the knowledge base. It is for conversation-derived notes, not for importing external documents or URLs.
Why use it?
It preserves useful conversation outcomes in the right place and keeps related pages linked. It also includes checks for locating pages, synchronising indexes, and validating the saved content.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when asked to remember something, make a note, file information back, or save a decision to the knowledge base. It is for conversation-derived notes, not for importing external documents or URLs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gyf0311/lorekit/wiki-fileback
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 GYF0311/lorekit --skill wiki-fileback
Clone the repo
git clone --depth 1 https://github.com/GYF0311/lorekit

Made for: Claude Code, Codex.

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 wiki-fileback

README.md
[![agentmods](https://agentmods.dev/badge/skills/gyf0311/lorekit/wiki-fileback/github.svg)](https://agentmods.dev/skills/gyf0311/lorekit/wiki-fileback)
Your own site
<a href="https://agentmods.dev/skills/gyf0311/lorekit/wiki-fileback"><img src="https://agentmods.dev/badge/skills/gyf0311/lorekit/wiki-fileback/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 wiki-fileback

Your own site · 80×15
<a href="https://agentmods.dev/skills/gyf0311/lorekit/wiki-fileback"><img src="https://agentmods.dev/badge/skills/gyf0311/lorekit/wiki-fileback.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,767 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.
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.00059 $0.01767
Opus 5.5 $0.00024 $0.00707
Sonnet 5.5 $0.00012 $0.00353
Haiku 4.5 $0.00006 $0.00177

Measured 3mo ago against content hash 6005e885919b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

wiki-fileback 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 3mo 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.

skills/wiki-fileback/SKILL.md · 119 lines

How it starts

The opening of the file, as written. The whole thing — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.

wiki-fileback

把对话里产生的新洞察、新决定、新事实按主语写回 corpus。和 wiki-ingest 的关键区别:输入不是外部资料,而是当前对话的对话记录/结论。

项目/domain skill 可以把已确认的研究结论、候选摘要或对话洞察路由到这里;完整外部材料、finished package 和来源归档仍走 wiki-ingest。

When to trigger

  • 用户说"这个记一下"、"存下来"、"做个笔记"、"把刚才那个放进去"
  • 用户说"fileback"、"存回知识库"、"归档到 wiki"
  • wiki-query 返回结果后,用户说"好,把今天聊到的这点补到这个页上"
  • 对话里刚得出一个决定 / 结论 / 事实,用户示意要留痕

不要触发:

  • 输入是 URL / 文件 / 外部资料 → 那是 wiki-ingest
  • 只是随口说,用户没明确要存 → 不要自作主张

Decision tree

  1. 识别待存内容:用户指向"刚才那段"、"今天聊的 X",明确边界
  2. 识别主语(按 系统/filing-rules.md)
    • 谁/哪个项目/哪个概念 是这条内容的"主角"?
    • 一条内容可以有多个主语 → 每个主语都要处理
  3. 定位目标页:lorekit search "<主语>"
    • 命中 → update 分支
    • 未命中 → 过 Notability gate,决定新建还是挂到最近相关页
  4. 写入格式(严格):
    • 只追加到 ## Timeline 段落,永不改写 compiled truth
    • 条目格式:- YYYY-MM-DD HH:mm — <一句话事实/决定/洞察>(来源:对话)
    • 如涉及其他实体,用 [[wikilink]] 引用
  5. 反向链接:如果这条 timeline 提到别的主语页,对方也要追加一条反向条目
  6. 同步文本档案(lorekit sync):
    • 如果本次 fileback 新建了页面或修改了 corpus/index.md:必须跑
    • 如果只是往已有页面追加 timeline 一行:可选(目录 summary 通常不变)
    • 一条命令刷新 _INDEX.md、合并 root index.md,再跑 doctor
  7. 自检:lorekit lint --quick
  8. 汇报

Tools to use

  • lorekit search "<主语>" — 定位目标页
  • lorekit sync — 同步 _INDEX.md / root index.md 并跑 doctor(新建页面或改 index.md 后必跑)
  • lorekit lint --quick — 写完自检
  • 底层:Read / Edit(追加 timeline,不要 Write 覆盖)

Output format

本次 fileback:
  - 内容:<一句话摘要>
  - 主语:<人物/项目/概念>
  - 目标:[[页面名]](追加 timeline 1 条)
  - 反向链接:[[另一页]] 已追加
lint:PASS

铁律:

  1. 只追加,不改写 compiled truth(那是 wiki-ingest 或人工 review 的职责)
  2. 每条都要带时间戳和"来源:对话"标记
  3. 不确定主语时先问用户,不要猜

价值判断:建 synthesis 页的阈值

fileback 的常规路径是"追加 Timeline"。但当本次 fileback 的内容同时满足以下任一条件时,主动向先生提议升级为 synthesis 页(知识库/专题/<slug>.md):

  • 跨源 ≥ 3 个 source — fileback 内容综合了 3 个及以上 知识库/摘要/ 的观点
  • 有新综合见解 — 内容不是单源复述,而是对多源的新组合、新结论、新模型
  • 先生明确立场 — 对话中先生说过"我认为..."、"我的立场是..."、"综合来看..."

提议话术:

本次 fileback 涉及多源综合(或:"先生的明确立场")。
这个答案建议升级为 `知识库/专题/<slug>.md`,作为独立的 synthesis 页留存,便于下次引用。
建不建?(Y/N)
  Y → 走"建 synthesis 页"流程(见下节),先做反向检验再建
  N → 只追加 Timeline,结束

Read the full file on GitHub · 119 lines

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. 3mo ago First seen · 119 lines · 59 tokens per session scan A 6005e885919b

Subscribe to this mod's changes

wiki-fileback is a skill published in the GitHub repository GYF0311/lorekit (5 stars, last pushed 4mo ago), licensed MIT. It adds 59 tokens to every session and 1,767 once invoked, about $0.0002 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.

Related

wiki-fileback compared with skills from other repositories

wiki-fileback next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
wiki-filebackGYF0311/lorekitSkill54mo agoMITA59Claude Code, Codex
mindbasefrankchu91/mindbase-llm-wikiSkill1421mo agoMITA105Claude Code
llm-wikizosmaai/pi-llm-wikiSkill6346d agoMITA52Claude Code
openclaw-memory-tencentdb-setupTencentCloud/TencentDB-Agent-MemorySkill31kyesterdaynoneA70Claude Code, Codex
link-memorygowtham0992/linkSkill2274d agoMITA0Claude Code, Codex
link-retrievegowtham0992/linkSkill2274d agoMITA42Claude Code, Codex
kb-workflowwillynikes2/knowledge-base-serverSkill1903d agoMITA40Claude Code, Codex