distill-traces

Extract reusable loop patterns and YAML state fragments from execution logs.

7|2|Updated Jan 3, 2026
One-click install
npx skills add https://github.com/BrennonTWilliams/little-loops --skill distill-traces
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: distill-traces
Source: https://github.com/BrennonTWilliams/little-loops/tree/main/skills/distill-traces
Command: npx skills add https://github.com/BrennonTWilliams/little-loops --skill distill-traces

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill solves the problem of inconsistent agent behavior by mining successful execution history to create standardized, reusable YAML state templates and transition fragments.

Core Features & Use Cases

  • Pattern Extraction: Automatically analyzes event logs to identify common state sequences and action patterns.
  • Template Generation: Produces structured YAML files that serve as blueprints for future loop development.
  • Use Case: If you have a complex remediation loop that has run successfully multiple times, use this skill to distill those successful runs into a library of primitives that can be imported into new, similar automation tasks.

Quick Start

Run the distill-traces skill for the loop named rn-remediate to generate reusable state templates and transition logic from its successful history.

Frequently Asked Questions about distill-traces

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

FAQPage Schema
How do I extract reusable loop patterns from historical execution logs?

You can extract reusable loop patterns by analyzing event JSONL files to identify common state sequences, producing structured YAML files that serve as blueprints for future automation loop development.

What is the best way to standardize inconsistent agent behavior from past successful runs?

Standardizing inconsistent agent behavior involves mining successful execution history to create standardized, reusable YAML state templates and transition fragments for future loop development.

How do I generate YAML state templates from event sequences?

Generating YAML state templates requires performing frequency analysis on local event JSONL files to synthesize common state transitions into structured blueprint files for new automation tasks.

Do I need local history directories to analyze state transitions and event logs?

Yes, accessing local history directories and event JSONL files is required to perform frequency analysis and pattern synthesis for extracting reusable loop patterns and state fragments.

Can I use distill-traces to create a library of primitives from a complex remediation loop?

Yes, distill-traces can distill multiple successful runs of a complex remediation loop into a library of reusable primitives that can be imported into new, similar automation tasks.

What are the limitations of mining execution history for reusable automation patterns?

Mining execution history for automation patterns is limited to analyzing existing successful runs, meaning it cannot synthesize templates for novel state sequences or event transitions not present in the local JSONL logs.