forget
Remove information from the wiki knowledge base — forget projects, entities, or concepts. Use when the user wants to delete or remove wiki content.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Remove information from the wiki knowledge base — forget projects, entities, or concepts. Use when the user wants to delete or remove wiki content.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Heal the wiki knowledge base — fix orphans, broken links, missing tags, empty pages, index desyncs. Use when the user wants to repair or clean up the wiki.
Install and verify Python dependencies for JanusLM wiki tools. Invoked automatically when the UserPromptSubmit hook detects missing dependencies, or manually via /setup.
Wiki knowledge base maintenance — health checks, build knowledge graph, view stats. Use for wiki integrity and graph operations. For ingest use /wiki-ingest, for queries use /wiki-query.
Ingest source documents into the wiki knowledge base. Full pipeline from queue management to validation. Use when the user wants to add new documents to the KB.
Query the wiki knowledge base and synthesize an answer. Use when the user asks about topics, projects, people, or concepts that could be in the KB.
Convert non-markdown files to markdown for wiki ingest. Use when the ingest workflow encounters a file that is not .md (docx, xlsx, pptx, pdf, txt, csv, json, html, xml, etc.).
| name | forget |
| description | Remove information from the wiki knowledge base — forget projects, entities, or concepts. Use when the user wants to delete or remove wiki content. |
You are the wiki forget handler. Your job is to safely remove information from the knowledge base following a strict safety protocol.
Triggered by: "forget", "remove", "delete", or /forget
Determine the forget type from the user's message:
| Type | Trigger | Example |
|---|---|---|
| project | User names a project tag | "forget project-alpha" |
| entity | User names an entity | "forget OpenAI" |
| concept | User names a concept | "forget the concept RAG" |
If ambiguous, ask the user to clarify.
Before proceeding with any deletion, suggest:
"Before deleting, I recommend running
/healto make sure the wiki is in good shape. Do you want to proceed directly with the deletion?"
If the user wants to heal first, stop and let them run /heal.
If the user wants to proceed, continue.
Run: python tools/wiki_protect.py --status
If "can_forget": false:
"Wiki deletion operations are disabled. Do you want me to enable them?" If the user approves:
python tools/wiki_protect.py --toggle can_forgetIf the user declines: STOP — do not proceed.
If "can_forget": true → continue to Step 4.
Based on the forget type, scan the wiki and build a list of affected pages:
wiki/entities/<Entity>.md[[Entity]] wikilinkswiki/concepts/<Concept>.md[[Concept]] wikilinksPresent to the user:
Deletion plan:
- Pages to delete: (list)
- Pages to modify: (list with what changes)
- References to remove: (wikilinks count)
Ask for confirmation before proceeding.
Based on the forget type:
## In <project> sectionspython tools/wiki_index.py remove --path "<path>"wiki/entities/<Entity>.md[[Entity]] with Entity (plain text)python tools/wiki_index.py remove --path "entities/<Entity>.md"wiki/concepts/<Concept>.md[[Concept]] with Concept (plain text)python tools/wiki_index.py remove --path "concepts/<Concept>.md"File deletion: use the Recycle Bin method from CLAUDE.md global rules (PowerShell SendToRecycleBin).
Run:
python tools/log_write.py --op forget --title "<what was forgotten>" --detail "<type>: <scope>"
Examples:
--title "project-alpha" --detail "project: 5 pages deleted, 2 modified"--title "OpenAI" --detail "entity: page deleted, 12 wikilinks removed""Deletion complete. I recommend running
/healto check for broken links or orphans."
can_forget is false — this is a hard gate, no exceptions.log_write.py.rm).kebab-case, entity/concept pages: TitleCase.md).