f2s-kb-fix

Fixes code implementation errors and synchronizes corrections into the Flow2Spec knowledge base.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When a user points out that generated code violates a project rule or implements something incorrectly, the fix alone is not enough—the same mistake will recur unless the project knowledge base is updated. This Skill corrects the code and automatically propagates the corrected rule into the .Knowledge/ topics, stock-docs, index, and routing manifest. ## Core Features & Use Cases - Code correction with scope clarification: Identifies the violation point and affected range, asks when unclear, and fixes the implementation within the minimal viable scope. - Automatic knowledge base sync: Converts the corrected rule into a kb-delta draft, previews it with flow2spec kb plan, applies it with kb apply, then runs kb build and kb check without requiring the user to run commands manually. - Task tracking integration: When changeTracking.fix is enabled, matches or creates tasks under TASK_ROOT, checks off steps on disk as they complete, and records user-facing to-dos. - Use Case: A user reports that a callback interface's idempotency implementation is wrong. The Skill fixes the callback handling chain, updates the idempotency rules in the relevant topic, refreshes the index, and outputs a summary of both code and knowledge base changes. ## Quick Start Tell the agent to run f2s-kb-fix and describe the incorrect implementation and the correct rule so it fixes the code and syncs the knowledge base.

Frequently Asked Questions about f2s-kb-fix

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

FAQPage Schema
How do I fix code and update project documentation at the same time?▼

Describe the incorrect implementation and the correct rule, then invoke f2s-kb-fix. It repairs the code within the minimal viable scope and automatically syncs the corrected convention into .Knowledge topics, stock-docs, and the index.

How does f2s-kb-fix update the Flow2Spec knowledge base?▼

It drafts a kb-delta recording taskId, baseRevisions, and changes, previews it with flow2spec kb plan, applies it with kb apply, then runs kb build and kb check. Users never run these commands manually.

What happens if the knowledge base merge has a revision conflict?▼

If topic revisions do not match during the kb plan preview, automatic writing stops and the Skill switches to a semantic merge explanation. The user is told there is a conflict requiring confirmation rather than a silent overwrite.

Does f2s-kb-fix track multi-step fixes across sessions?▼

Yes, when changeTracking.fix is enabled in flow2spec.config.json. It matches or creates a task under TASK_ROOT, checks off each completed step on disk immediately, and records user-facing to-dos in user-todos.md.

What are the limitations of f2s-kb-fix?▼

It does not modify the configuration root rules/skills, and documentation changes follow strict style limits such as roughly 60 added lines per file per sync. Unclear scopes are fixed minimally rather than refactored across the whole repository.