wiki-save

wiki-save is a command for Claude Code from zhaixin244-wq/fnw. It costs 0 tokens per session (245 once invoked), scanned A, original, MIT.

A command that archives the important parts of the current coding-agent session into a wiki. It can record decisions, documents, problems, solutions, and recent working context.

In plain words
What is it for?
Use it after a session to summarize work, refresh the hot cache, create knowledge pages, update cross-references, and optionally set an archive title.
Why use it?
It reduces the need to reconstruct what happened in a session and keeps related wiki pages and indexes up to date.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it after a session to summarize work, refresh the hot cache, create knowledge pages, update cross-references, and optionally set an archive title.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/zhaixin244-wq/fnw/wiki-save
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.

Clone the repo
git clone --depth 1 https://github.com/zhaixin244-wq/fnw

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/zhaixin244-wq/fnw/wiki-save/github.svg)](https://agentmods.dev/commands/zhaixin244-wq/fnw/wiki-save)
Your own site
<a href="https://agentmods.dev/commands/zhaixin244-wq/fnw/wiki-save"><img src="https://agentmods.dev/badge/commands/zhaixin244-wq/fnw/wiki-save/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-save

Your own site · 80×15
<a href="https://agentmods.dev/commands/zhaixin244-wq/fnw/wiki-save"><img src="https://agentmods.dev/badge/commands/zhaixin244-wq/fnw/wiki-save.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 245 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.00000 $0.00245
Opus 5 $0.00000 $0.00122
Sonnet 5 $0.00000 $0.00049
Haiku 4.5 $0.00000 $0.00024

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

Security

Grade A, and why

wiki-save 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 10d 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.

.claude/commands/wiki-save.md · 35 lines

What it actually says

Wiki Save — 会话归档

将当前会话的关键信息归档到 wiki 系统。

执行流程

  1. 提取会话摘要:回顾本次会话的:

    • 讨论的知识点
    • 做出的设计决策
    • 生成/修改的文档
    • 发现的问题和解决方案
  2. 更新 Hot Cache:刷新 wiki/hot.md 中的:

    • 当前工作上下文
    • 最近修改的页面
    • 会话记忆摘要
  3. 创建新页面(如需):如果会话中产生了新的知识点:

    • 生成结构化 wiki 页面
    • 添加到对应目录(entities/concepts/comparisons)
    • 更新交叉引用
  4. 更新索引:更新 wiki/index.md

参数

  • $ARGUMENTS — 可选,指定归档标题

使用示例

/wiki-save                              # 自动归档
/wiki-save "PCIe Gen6 FEC 机制分析"      # 指定标题
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. 10d ago First seen · 35 lines · 0 tokens per session scan A 75a230be1803

Subscribe to this mod's changes

wiki-save is a command published in the GitHub repository zhaixin244-wq/fnw (29 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 245 tokens. 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.