flow-distill

Extract reusable templates from completed development flows into Markdown files.

15|4|Updated Jan 20, 2026
One-click install
npx skills add https://github.com/cofin/flow --skill flow-distill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flow-distill
Source: https://github.com/cofin/flow/tree/main/templates/codex/skills/flow-distill
Command: npx skills add https://github.com/cofin/flow --skill flow-distill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of extracting reusable patterns and structures from completed development flows, turning them into standardized templates for future use.

Core Features & Use Cases

  • Template Generation: Creates new .agent/templates/ files based on successful past flows.
  • Abstraction: Identifies and abstracts common elements into placeholders (e.g., {{feature_name}}).
  • Learning Preservation: Captures valuable insights and "gotchas" from the original flow into the new template.
  • Use Case: After completing a complex feature implementation, use flow-distill to create a template for similar features, ensuring consistency and saving setup time.

Quick Start

Use the flow-distill skill to extract a template named 'user-auth-template' from flow ID 'flow-12345'.

Frequently Asked Questions about flow-distill

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

FAQPage Schema
How do I create reusable code templates from completed development flows?

To create reusable templates from completed development flows, use the flow-distill process to extract abstractable components and convert them into standardized Markdown files within the `.agent/templates/` directory. This preserves learned knowledge and identifies placeholders for future feature implementations.

What is the best way to preserve learned knowledge and gotchas from a finished feature implementation?

The best way to preserve learned knowledge from a finished feature implementation is to distill the completed flow into a reusable template. This process captures valuable insights and gotchas from the original flow directly into the new Markdown template file.

How do I extract a template named 'user-auth-template' from a specific flow ID?

To extract a template named 'user-auth-template' from a specific flow ID, invoke the flow-distill skill and provide the target flow identifier along with the desired template name. The skill analyzes the flow structure and generates a new Markdown template file.

How does template abstraction handle placeholder creation for common workflow elements?

Template abstraction handles placeholder creation by analyzing completed flow structures and identifying common elements. It replaces these abstractable components with standardized placeholders like `{{feature_name}}` to ensure the generated Markdown templates are reusable across similar workflows.

Do I need any external dependencies to generate Markdown templates from past development flows?

No external dependencies are required to generate Markdown templates from past development flows. The process operates independently using internal scripts and references to analyze flow structures and write standardized files directly to the `.agent/templates/` directory.