Agent skill

Distill From Pattern

by jianzhichun in jianzhichun/emerge

A skill your agent uses when an Emerge event stream contains patternobserved, localpatternobserved, patternaggregated, or patternpendingsynthesis and Claude must turn raw runner/operator facts into…

MITAuto-check passed

Install Distill From Pattern

skills CLI
$ npx skills add jianzhichun/emerge --skill distill-from-pattern -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jianzhichun/emerge distill-from-pattern --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jianzhichun/emerge.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/distill-from-pattern .claude/skills/distill-from-pattern && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
distill-from-pattern
GitHub stars
104
Token cost
~561 tokens
SKILL.md length
235 words
Files
1
Skills in repo
14
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when an Emerge event stream contains patternobserved, localpatternobserved, patternaggregated, or patternpendingsynthesis and Claude must turn raw runner/operator facts into…

  • Works in 6 steps: Read the referenced event window from… → Read connector-local NOTES.md and… → Infer the smallest repeated operation… → …
  • An Emerge event stream contains patternobserved
  • SKILL.md covers Handoff Contract, Workflow, Rules and Output
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Distill From Pattern is an agent skill from jianzhichun/emerge. Use when an Emerge event stream contains patternobserved, localpatternobserved, patternaggregated, or patternpendingsynthesis and Claude must turn raw runner/operator facts into one conservative pipeline candidate through normal mechanism tools.

Its SKILL.md is about 560 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The licence is MIT.

When your agent uses it

  • An Emerge event stream contains patternobserved
  • Localpatternobserved
  • Patternaggregated

Example prompts

  • “/distill-from-pattern”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Read the referenced event window from events/events-.jsonl, events/events-local.jsonl, or events/events.jsonl.
  2. Read connector-local NOTES.md and optional synthesis_hints.yaml.
  3. Infer the smallest repeated operation and choose a generic connector.mode.name intent.
  4. Write conservative exploratory code that assigns result for reads or action for writes.
  5. Run one icc_exec with explicit intent_signature and representative args.
  6. If execution fails or verification is ambiguous, report the blocker instead of retrying indefinitely.

What it can do on your machine

Read from SKILL.md and the folder at commit 035db30. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Distill From Pattern loads about 561 tokens when it runs. Until then it costs about 68 tokens; SKILL.md has 235 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~68
When it runs · the whole SKILL.md, loaded when a task matches
~561

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from jianzhichun/emerge at commit 035db30, republished under its MIT licence (© jianzhichun). 235 words, ~561 tokens.

Download SKILL.mdSave it as .claude/skills/distill-from-pattern/SKILL.md (or your agent's skills folder).
name
distill-from-pattern
description
Use when an Emerge event stream contains pattern_observed, local_pattern_observed, pattern_aggregated, or pattern_pending_synthesis and Claude must turn raw runner/operator facts into one conservative pipeline candidate through normal mechanism tools.

Distill From Pattern

Use this when pattern_observed, local_pattern_observed, pattern_aggregated, or pattern_pending_synthesis appears in the event stream. The Python layer only emits facts; Claude performs the judgment.

Handoff Contract

scripts/synthesis_events.py is the deterministic packaging boundary. It can append pattern_pending_synthesis and synthesis_job_ready facts for a selected event window, but it does not choose whether the pattern matters, call an LLM provider, smoke-test generated code, or materialize a pipeline.

When the stream only contains pattern_observed, local_pattern_observed, or pattern_aggregated, inspect the facts first. If they justify distillation, package or reference the selected window as synthesis facts, then continue from pattern_pending_synthesis / synthesis_job_ready. Do not reintroduce a Python coordinator.

Workflow

  1. Read the referenced event window from events/events-<profile>.jsonl, events/events-local.jsonl, or events/events.jsonl.
  2. Read connector-local NOTES.md and optional synthesis_hints.yaml.
  3. Infer the smallest repeated operation and choose a generic connector.mode.name intent.
  4. Write conservative exploratory code that assigns __result for reads or __action for writes.
  5. Run one icc_exec with explicit intent_signature and representative args.
  6. If execution fails or verification is ambiguous, report the blocker instead of retrying indefinitely.

Rules

  • Keep product-specific knowledge in connector-local files, not this skill.
  • Parameterize only values that vary across event samples.
  • Prefer a narrow pipeline candidate over a broad one with weak verification.
  • Never write lifecycle state directly; use the mechanism tools that record WAL and evidence.

Output

Return a concise report with intent signature, source events inspected, icc_exec verification result, and any remaining blocker.

© jianzhichun, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/distill-from-pattern of jianzhichun/emerge.

Open the folder on GitHubat commit 035db30

Compare with similar skills

Distill From Pattern next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Distill From Pattern compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Distill From Pattern this skilljianzhichun/emerge104—~561Automated safety check: PassMIT
Monitor Streamruvnet/ruflo74k—~188Automated safety check: PassMIT
Golang Patternsaffaan-m/ECC276k—~1.1kAutomated safety check: PassMIT
Patternssickn33/agentic-awesome-skills47k1 repos~2.6kAutomated safety check: PassMIT
Kotlin Exposed Patternsaffaan-m/ECC276k4 repos~5.5kAutomated safety check: PassMIT
Dotnet Patternsaffaan-m/ECC276k1 repos~2.3kAutomated safety check: PassMIT

Similar skills

  • Monitor Stream

    ruvnet/ruflo

    Stream live swarm events using the Monitor tool for real-time observability

    74k GitHub stars~188 tokensUpdated today
    DevOps & CloudAuto-check passed
  • Golang Patterns

    affaan-m/ECC

    Go-specific design patterns and best practices including functional options, small interfaces, dependency injection, concurrency patterns, error handling, and package organization.

    276k GitHub stars~1.1k tokensUpdated today
    DevelopmentAuto-check passed
  • Patterns

    sickn33/agentic-awesome-skills

    Reference document for monopoly patterns. An agent skill from sickn33/agentic-awesome-skills.

    47k GitHub starsUsed in 1 repo~2.6k tokens
    Backend & APIsAuto-check passed
  • JetBrains Exposed ORM patterns including DSL queries, DAO pattern, transactions, HikariCP connection pooling, Flyway migrations, and repository pattern.

    276k GitHub starsUsed in 4 repos~5.5k tokens
    DatabasesAuto-check passed
  • Dotnet Patterns

    affaan-m/ECC

    Idiomatic C and .NET patterns, conventions, dependency injection, async/await, and best practices for building robust, maintainable .NET applications.

    276k GitHub starsUsed in 1 repo~2.3k tokens
    DevelopmentAuto-check passed
  • Kubernetes workload patterns, resource management, RBAC, probes, autoscaling, ConfigMap/Secret handling, and kubectl debugging for production-grade deployments.

    276k GitHub starsUsed in 1 repo~5k tokens
    DevOps & CloudAuto-check passed

More from jianzhichun/emerge

All 14 skills in this repo
  • Distilling Operator Flows

    jianzhichun/emerge

    A skill your agent uses when wiring a generic connector to capture remote operator actions and convert repeated event facts into pending pipeline work through Claude Code skills.

    104 GitHub stars~432 tokensUpdated 5 mo ago
    Auto-check passed
  • Emerge Forward Synthesis

    jianzhichun/emerge

    Distill Emerge forward flywheel WAL samples into a parameterized pipeline result.

    104 GitHub stars~585 tokensUpdated 5 mo ago
    Auto-check passed
  • Emerge Reverse Synthesis

    jianzhichun/emerge

    Distill Emerge reverse flywheel raw operator events into a structured synthesis result.

    104 GitHub stars~451 tokensUpdated 5 mo ago
    Auto-check passed
  • A skill your agent uses when a user asks to initialize a domain flywheel from natural language context, especially when environment details are incomplete or mixed with execution assumptions.

    104 GitHub stars~2.2k tokensUpdated 5 mo ago
    Auto-check passed
  • Operator Monitor Debug

    jianzhichun/emerge

    A skill your agent uses when the operator monitoring pipeline appears broken: EventBus has no events, PatternDetector is not firing, elicitation dialog never appears, or OperatorMonitor is silent.

    104 GitHub stars~1k tokensUpdated 5 mo ago
    Auto-check passed
  • Policy Optimization

    jianzhichun/emerge

    A skill your agent uses when policy health needs tuning: too many explore pipelines, repeated failures, stalled promotions, or noisy rollback behavior.

    104 GitHub stars~916 tokensUpdated 5 mo ago
    Auto-check passed

Questions about Distill From Pattern

What does Distill From Pattern do?

A skill your agent uses when an Emerge event stream contains patternobserved, localpatternobserved, patternaggregated, or patternpendingsynthesis and Claude must turn raw runner/operator facts into…. Distill From Pattern is an agent skill from jianzhichun/emerge. Use when an Emerge event stream contains patternobserved, localpatternobserved, patternaggregated, or patternpendingsynthesis and Claude must turn raw runner/operator facts into one conservative pipeline candidate through normal mechanism tools.

When should I use Distill From Pattern?

Distill From Pattern fits situations like: an Emerge event stream contains patternobserved; localpatternobserved; patternaggregated.

How do I install Distill From Pattern in Claude Code?

Run `npx skills add jianzhichun/emerge --skill distill-from-pattern -a claude-code`. Or copy the skill folder (skills/distill-from-pattern in jianzhichun/emerge) into .claude/skills/distill-from-pattern in your project. Claude Code loads it when a task matches its description.

How do I install Distill From Pattern in Codex?

Run `npx skills add jianzhichun/emerge --skill distill-from-pattern -a codex`. Or copy the skill folder (skills/distill-from-pattern in jianzhichun/emerge) into .agents/skills/distill-from-pattern in your project. Codex loads it when a task matches its description.

Can I use Distill From Pattern in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jianzhichun/emerge --skill distill-from-pattern -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/distill-from-pattern, .gemini/skills/distill-from-pattern, .github/skills/distill-from-pattern and .opencode/skills/distill-from-pattern in your project.

What does Distill From Pattern need to run?

SKILL.md names no scripts, command-line tools or credentials: Distill From Pattern is instructions for the agent only. Our summary lists: Python 3.

Does Distill From Pattern access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Distill From Pattern safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Distill From Pattern use?

Distill From Pattern is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Distill From Pattern use?

About 561 tokens (SKILL.md is roughly 2.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Distill From Pattern?

Skills that share tags, products or a category with Distill From Pattern: Monitor Stream (ruvnet/ruflo, 74k stars), Golang Patterns (affaan-m/ECC, 276k stars), Patterns (sickn33/agentic-awesome-skills, 47k stars) and Kotlin Exposed Patterns (affaan-m/ECC, 276k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Distill From Pattern?

jianzhichun (a GitHub user) maintains it in jianzhichun/emerge, which has 104 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on April 26, 2026.

Source: jianzhichun/emerge on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.