wiki-remove

A safe workflow for removing an outdated source or knowledge page from a local knowledge collection. It moves items to the system recycle bin rather than permanently deleting them.

In plain words
What is it for?
Use it to preview and then remove a specific local source, update source references, create a snapshot, and run a follow-up lint check.
Why use it?
It shows the affected files and pages first, so you can review the impact before removal and avoid deleting related information by keyword.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/gyf0311/lorekit/wiki-remove
Any agent
npx skills add GYF0311/lorekit --skill wiki-remove
Clone the repo
git clone --depth 1 https://github.com/GYF0311/lorekit

Made for: Claude Code, Codex.

Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 709 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00064 $0.00709
Opus 5 $0.00032 $0.00354
Sonnet 5 $0.00013 $0.00142
Haiku 4.5 $0.00006 $0.00071

Measured 2d ago against content hash 05b6127769fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

wiki-remove 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 2d 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-remove/SKILL.md · 90 lines

What it actually says

wiki-remove

安全移除 corpus 中的一篇来源或知识页。删除语义是移动到系统回收站,不是永久删除;级联范围只按来源归因清理,不按关键词删除同主题其他知识。

When to trigger

  • 用户说"删除这篇"、"移除这个知识"、"这篇过时了不要了"
  • 用户说"remove"、"trash"、"丢到回收站"
  • 用户给出 URL、原料/...知识库/摘要/... 或其他 wiki 页路径并要求删除

不要触发

  • 只是标记过时、不想删除文件 → 建议改 status: archived
  • 要整理/合并重复页 → 先 wiki-lintwiki-audit
  • 要删除外部网站内容 → lorekit 只能移除本地 corpus 内容

Workflow

1. 先生成影响报告

永远先跑 dry-run:

lorekit remove "<target>"

报告会列出:

  • 将移动到系统回收站的文件/目录
  • 将修改的页面(Timeline 行、frontmatter sourcessource_count
  • Compiled Truth 中疑似依赖该来源、需要人工复核的段落

2. 向用户确认

把报告摘要给用户,明确说明:

  • 删除会进入系统回收站,可恢复
  • 只会移除这篇来源贡献的信息
  • 同主题其他来源(例如其他 harness 文章)不会被删除
  • Compiled Truth 不会自动改写,只报告疑似影响

3. 用户确认后执行

lorekit remove "<target>" --apply

--apply 会:

  1. 先创建 snapshot
  2. 移除明确来源贡献的登记
  3. 把目标文件/目录移动到系统回收站
  4. 刷新 index.md / _INDEX.md
  5. 跑 lint 报告

Output format

remove 影响报告:
  - 回收站:N 项
  - 修改页面:N 页
  - 人工复核:N 段 Compiled Truth

确认后我再执行:
  lorekit remove "<target>" --apply

执行后:

已移入系统回收站:
  - <path>

snapshot:<path>
sync:完成
lint:<N> issue(s)

铁律

  1. 不用 rm,不做永久删除。
  2. 不按关键词级联删除,只按明确来源 wikilink / sources 归因清理。
  3. 删除某篇 harness 文章时,不能删除其他 harness 来源支撑的 harness 概念页。
  4. Compiled Truth 缺少精确来源标记时,只报告疑似影响,不自动改写。
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. 2d ago First seen · 90 lines · 64 tokens per session scan A 05b6127769fd

Subscribe to this mod's changes

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

Related

Other skills, from other repositories

llm-wiki

Build and maintain a persistent, interlinked Obsidian-compatible markdown wiki using Karpathy's LLM Wiki pattern. Extension-backed with auto-generated metadata, guardrails, and 14 custom tools (+3 opt-in agent-trajectory tools).

zosmaai/pi-llm-wiki · 52 tokens

mindbase

Maintain a persistent AI-tended research wiki. Activates when the user wants to ingest a source (PDF, URL, article, paste), capture a thought, build the wiki context, query what's already known, lint for orphans/contradictions, or maintain page conventions. Phrases include "add this to my wiki", "today I decided…"…

frankchu91/mindbase-llm-wiki · 105 tokens

llm-wiki

Build and maintain an LLM-curated personal knowledge base — the "LLM Wiki" pattern from Andrej Karpathy's April 2026 gist. Use this skill whenever the user wants to ingest a source (paper, article, transcript, PDF, notes) into a persistent compounding knowledge base, ask a question against accumulated notes, lint or…

praneybehl/llm-wiki-plugin · 221 tokens

wiki-ingest

Process source files into synthesised wiki pages. Always use this skill when the user says /wiki-ingest, 'import these files', 'process my clippings', 'ingest this article', 'I have new articles to add', 'turn this PDF into a wiki page', 'what's in my raw/ folder', or 'what have I ingested'. Also use when the user…

vanillaflava/llm-wiki-skills · 182 tokens

wiki-ingest

Digest a course source file into the wiki. This skill should be used when the user says "ingest", "消化", "process this PDF/slide", or drops a course file into raw/ and wants it turned into wiki pages. Reads the source, deduplicates via manifest, creates source + concept pages, and finds cross-course connections.

IssacW228/student-llm-wiki · 75 tokens

wiki-config

Set up, validate, and reconfigure the llm-wiki skill suite. Always use this skill when the user says /wiki-config, asks to 'set up my wiki', 'configure wiki', 'initialize wiki config', mentions 'page structure problems', 'schema issues', 'missing templates', 'wiki help', 'how does the wiki work', or when any wiki…

vanillaflava/llm-wiki-skills · 166 tokens