f2s-kb-addRules

Captures user-dictated rules into a routed knowledge base with merge-or-create topic decisions.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Verbal rules shared during a session are easily lost or duplicated across documents. This Skill turns a user's spoken rule into a durable knowledge base entry, deciding whether to create a new topic or merge into an existing one, and keeps routing indexes in sync. ## Core Features & Use Cases - Rule normalization: Converts free-form dictated text into a structured rule unit with constraints, scope, and applicability. - Merge vs. create decision: Scans existing topics in .Knowledge/manifest-routing.json and index.md, then proposes merging into an existing topic, creating a new one, or splitting cross-topic rules—always with user confirmation before writing. - Routing synchronization: Updates topicPaths, topicDependencies, taskToTopicRules, matcher files, and the topic index so the new rule is discoverable by future task routing. - Use Case: A user says "all user-facing error messages must start with a verb." The Skill finds no suitable host topic, proposes creating topics/error-message-style.md, writes it after confirmation, and registers routing metadata. ## Quick Start Tell the agent to run f2s-kb-addRules and dictate the rule you want recorded, for example: "Remember this rule in the knowledge base: commit messages must start with an emoji."

Frequently Asked Questions about f2s-kb-addRules

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

FAQPage Schema
How do I save a spoken rule into a project knowledge base?▼

Invoke f2s-kb-addRules and dictate the rule in free text. The Skill normalizes it into a rule unit, scans existing topics, and asks you to confirm whether to merge into an existing topic or create a new one before writing anything.

How does the skill decide between creating a new topic and merging?▼

It reads manifest-routing.json and index.md, inspects candidate topics by keyword, and ranks up to three candidates. High overlap triggers a merge proposal into a specific section; low overlap triggers a new kebab-case topic proposal.

Does f2s-kb-addRules modify code or create task tracking files?▼

No. It only maintains the .Knowledge directory (topics, manifest-routing, matchers, index). It never edits business code, configuration roots, or creates .task/ entries, since dictated rules are treated as meta-configuration changes.

What happens when one rule spans multiple topics?▼

The Skill pauses and presents three options: split the rule into separate units merged into each topic, merge into one primary topic with cross-references, or create an umbrella topic. Nothing is written until you choose.

When should I use f2s-kb-addRules instead of f2s-kb-build or f2s-kb-add?▼

Use f2s-kb-addRules for rules dictated live by the user. f2s-kb-build consumes finalized stock-docs files, and f2s-kb-add aggregates multi-file source code into stock-docs; only addRules writes topics directly from spoken input.