f2s-kb-distill

Extracts reusable knowledge facts from Q&A sessions and merges them into a routed knowledge base.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? After an AI agent answers a question by drilling into source code, the discovered facts are lost unless someone manually documents them. This Skill captures those verified findings from the conversation and writes them into the project's .Knowledge base so future sessions can route to them directly. ## Core Features & Use Cases - Automatic knowledge distillation: Extracts reusable facts (mechanisms, state transitions, error contracts, config effects) from the latest question-and-answer round, with source file and line references. - Depth-aware merge decisions: Scores drill-down depth and description granularity to decide whether to append to an existing topic, create a sub-topic, or create a new module topic with a stock-doc. - Routing synchronization: Updates manifest-routing.json, matcher includeAny keywords, taskToTopicRules, and index.md so new topics are discoverable, then runs flow2spec kb plan/apply/build/check automatically. - Use Case: After asking how a retry mechanism works and getting a source-backed answer, trigger the distill flow to persist those findings as a knowledge topic that the next session will hit via keyword routing. ## Quick Start Ask the agent to distill the knowledge from our last Q&A exchange into the knowledge base using f2s-kb-distill.

Frequently Asked Questions about f2s-kb-distill

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

FAQPage Schema
How do I save knowledge discovered during an AI coding Q&A session?▼

Trigger f2s-kb-distill after the agent answers a question with source-backed findings. It extracts reusable facts from the conversation, decides whether to append to an existing topic or create a new one, and writes everything into the .Knowledge directory automatically.

What is the difference between f2s-kb-distill and f2s-kb-sync?▼

f2s-kb-distill focuses on extracting knowledge from a single question-and-answer round, while f2s-kb-sync is designed for batch synchronization of multiple capabilities at once. Use distill for incremental, conversation-driven knowledge capture.

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

It scores drill-down depth (files read, function references, code length) and compares the description level of new facts against the existing topic. A gap of two or more levels forces a new sub-topic; matching levels result in appending to the existing topic.

Does f2s-kb-distill require running manual CLI commands?▼

No. The agent runs flow2spec kb plan, apply, build, and check itself as part of the auto-merge protocol. Users only see a summary stating the knowledge base was synced, a semantic conflict needs confirmation, or the merge was skipped.

When does the lightweight mode of knowledge distillation apply?▼

Lightweight mode applies when the upstream feedback case is 2 or 3, at most 3 business source files were read, at most 5 functions were referenced, and the user did not dispute the prior conclusion. It skips scoring and decision-matrix steps but always runs routing sync and disk-write verification.