f2s-kb-rm

Deletes knowledge topics and routing index entries for removed stock-docs documents.

48|6|Updated Feb 11, 2026
One-click install
npx skills add https://github.com/double-coding-lab/Flow2Spec --skill f2s-kb-rm-double-coding-lab
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: f2s-kb-rm
Source: https://github.com/double-coding-lab/Flow2Spec/tree/main/.cursor/skills/f2s-kb-rm
Command: npx skills add https://github.com/double-coding-lab/Flow2Spec --skill f2s-kb-rm-double-coding-lab

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When a stock-docs document becomes obsolete, its derived knowledge topics, index entries, and routing rules in the .Knowledge base linger as stale references that mislead AI coding agents. This Skill removes the document's topics and cleans every dependent mapping so the knowledge base stays consistent. ## Core Features & Use Cases - Topic Deletion by Document: Accepts a .Knowledge/stock-docs file path or filename fragment, matches related topics via .Knowledge/index.md, and deletes the corresponding topic files. - Routing Manifest Cleanup: Removes stale topicPaths, taskToTopicRules, topicDependencies, and topicMetadata entries from manifest-routing.json and matcher files, and reassigns fallbackTopic when it is deleted. - Ambiguity Safety: When a filename fragment matches multiple topics, it asks the user to confirm the deletion scope before removing anything. - Use Case: After deprecating a design document, run this Skill to delete its two derived topics, clean the routing manifest, and receive a summary of deleted topics, index entries removed, and manifest fields adjusted. ## Quick Start Ask the agent to delete the project context for a specific stock-docs document by giving its filename or a matching fragment, for example: remove the knowledge topics for the callback document.

Frequently Asked Questions about f2s-kb-rm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I delete knowledge topics for a removed document in Flow2Spec?▼

Provide the .Knowledge/stock-docs file path or a filename fragment. The skill matches related topics in .Knowledge/index.md, deletes the topic files, removes index entries, and cleans routing manifest references.

What happens to manifest-routing.json when a topic is deleted?▼

The skill removes stale topicPaths, taskToTopicRules, topicDependencies, and topicMetadata entries, plus invalid rules in matcher files. If the fallbackTopic was deleted, a new fallback topic must be assigned before writing.

What happens when a filename fragment matches multiple topics?▼

The skill lists all candidate topics and asks you to confirm the deletion scope before removing anything. The final summary states which topics were deleted, which were kept, and why.

Does deleting a topic affect other knowledge base topics?▼

Only matched topics are deleted; other topics remain untouched. However, dependency edges referencing deleted topics are cleaned from topicDependencies to keep the topic graph valid.

When does the skill split deletion work into sub-agents?▼

Sub-agent execution only occurs when subAgent is enabled and a batch deletion removes five or more topics at once. Scope confirmation and fallbackTopic reassignment always remain with the main agent.