agentleFS
hazarsozerhazarsozer/ren-os/skills/distill/SKILL.md

distill

Skill2 starsChanged 3 months agoMITView on GitHub

The #60 wiki-distiller (spec 2026-08-18 §3): batch-mine L1 narratives newer than the stored watermark for durable learnings the live wrap gate missed, and land them through the single write door, producer="distiller", capped at WRITE_CAP writes per run.

39 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use overdrive, arrange and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • nikafastovets-langSkill

    overdrive

    Push interfaces past conventional limits with technically ambitious implementations. Whether that's a shader, a 60fps virtual table, spring physics on a dialog, or scroll-driven reveals — make users ask "how did they do that?

    Also in 12 projects that use this

  • nikafastovets-langSkill

    arrange

    Improve layout, spacing, and visual rhythm. Fixes monotonous grids, inconsistent spacing, and weak visual hierarchy to create intentional compositions.

    Also in 6 projects that use this

  • QredenceSkill

    layout

    Diagnose or improve layout in selected Figma frames, screens, components, or Figma Make prototypes by clarifying reading order, grouping, hierarchy, spacing rhythm, density, adaptation, and content extremes. Use when UI feels crowded, flat, misaligned, hard to scan, structurally unclear, or unstable across sizes.

    Also in 5 projects that use this

  • tdiminoSkill

    shape

    Plan the UX and UI for a feature before writing code. Run a structured discovery interview, then produce a design brief (.design-context.md) that guides implementation. Establishes design direction, constraints, and strategy before any code is written. Triggers on plan the design, design brief, shape the UX, before we build, design discovery.

    Also in 6 projects that use this

  • MicrosoftSkill

    impeccable

    Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a frontend interface. Covers websites, landing pages, dashboards, product UI, app shells, components, forms, settings, onboarding, and empty states. Handles UX review, visual hierarchy, information architecture, cognitive load, accessibility, performance, responsive behavior, theming, anti-patterns, typography, fonts, spacing, layout, alignment, color, motion, micro-interactions, UX copy, error states, edge cases, i18n, and reusable design systems or tokens. Also use for bland designs that need to become bolder or more delightful, loud designs that should become quieter, live browser iteration on UI elements, or ambitious visual effects that should feel technically extraordinary. Not for backend-only or non-UI tasks.

    Also in 6 projects that use this

  • Microsoft AzureSkill

    reflect

    Learning capture system that extracts HIGH/MED/LOW confidence patterns from conversations to prevent repeating mistakes. Use after user corrections ("no", "wrong"), praise ("perfect", "exactly"), or when discovering edge cases. Complements .squad/agents/{agent}/history.md and .squad/decisions.md.

    Also in 3 projects that use this

  • +1 more from nikafastovets-lang

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 36 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    NEVER part of the scheduled weekly routine.

    line 72
  2. Very specific:

    Write any wiki file directly — apply_candidates (and, for --seed-tree, the same concept-create machinery /ren:wrap uses) are the only write …

    line 122
  3. Very specific:

    Run --seed-tree on a schedule — it is manual-trigger only, never folded into the weekly routine.

    line 127

“Common” is measured: kept by at least 6 in 10 of the 36 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

distill

The #60 wiki-distiller (spec 2026-08-18 §3): batch-mine L1 narratives newer than the stored watermark for durable learnings the live wrap gate missed, and land them through the single write door, producer="distiller", capped at WRITE_CAP writes per run.

When to use

  • /ren:distill — on-demand run (the first backlog-rescue run is this).
  • The weekly routine (routines/distiller-weekly.md) runs the same flow.
  • /ren:distill --seed-tree <project> — MANUAL TRIGGER ONLY (spec 2026-08-31 §3 behavior 1). Backfills the concept tree from a project's EXISTING knowledge/lessons/ pages — durable concepts written before concept-tree routing existed, or missed by a session's own wrap gate. This mode is NEVER part of the scheduled weekly routine; it runs only when a friend (or the live session, deliberately) asks for it by name.

Flow

  1. Batch. uv run python -c "from skills.distill.lib import l1_batch, read_watermark; import json; print(json.dumps(l1_batch(read_watermark())))" from the framework repo (or the versioned plugin cache with UV_PROJECT_ENVIRONMENT redirected, same as /ren:update's convention). Empty batch → report "watermark caught up", stop.
  2. Dedup context. For each distinct session in the batch, collect landed_pages(session).
  3. Mine. Spawn ONE ren-distiller agent (worker-class) with the batch's escaped_body texts and the per-session landed sets. Parse its reply as the candidate JSON array. A malformed reply → stop, report, watermark UNTOUCHED.
  4. Classify. Build one classifier prompt per candidate via build_classifier_prompt(item, eligible_targets=eligible_update_targets(source_session), project=...) and spawn ONE classifier-class subagent (batched, same pattern as /ren:wrap step 3) returning an index-keyed JSON verdict array.
  5. Apply. Assemble candidates (lib shape: item/verdict/source_session/project/content=proposed_content/page=None) and call apply_candidates(candidates, run_session="distill-<date>", batch=batch, watermark_before=read_watermark()). Print the returned counts; a non-zero capped_remainder is reported as "N candidates carried to the next run"; duplicates (noop-duplicate replays) is reported separately and never counts against the cap.
  6. Advance the watermark to result["watermark_after"] — ONLY if steps 3-5 completed without an exception AND watermark_after is not None. The lib computes it: a fully-processed batch (no remainder) advances to the batch's max ren_ts; a capped run advances only up to (not past) the earliest L1 belonging to a session with unprocessed candidates, so that session's L1s stay behind the watermark and get re-mined next run (spec §3.4, §3.5). A None watermark_after with a non-empty remainder means no advance this run — say so on the report screen. Any exception in steps 3-5 leaves the watermark untouched (re-run safe; the journal dedup makes replays idempotent).
  7. Report. One screen: batch size, candidates, applied/held/suggested/gated_out/refused/duplicates, capped remainder, new watermark (or "no advance this run" when watermark_after is None).

--seed-tree <project> flow (Task 7, spec 2026-08-31 §3)

Manual trigger only — see "When to use" above. A single call does the whole run; there is no separate mine/classify subagent hand-off like the L1 flow above, because the candidates are already-written lessons, not narrative to mine, and this mode always has a live llm_call to gate them with.

  1. Run. seed_tree(project, llm_call, cap=None) (from skills.distill.lib).
  2. Internally: loads projects/<project>/schema.md's taxonomy — a missing or unparseable schema.md refuses the WHOLE run (result["blind"] is set, "no taxonomy — run ingest's taxonomy draft first"; run /ren:ingest-project or hand-seed a taxonomy first). Otherwise it enumerates projects/<project>/knowledge/lessons/*.md newer than the project's own seed_tree_watermark (kept separate from the scheduled distiller's watermark), gates each lesson body through the LIVE classifier, and for every kind == "concept" verdict that resolves to a brand-new taxonomy leaf: places it via the SAME concept-create machinery /ren:wrap uses (mints the page, maintains its leaf/parent hubs, additively splices schema.md), then appends a See: [[<node>]] pointer to the source lesson. Everything else (already-a-lesson verdicts, non-durable verdicts, an invalid concept placement) is skipped — advancing the watermark past it, since there is nothing to write for a lesson that's already sitting on disk as a lesson. Known limitation: a concept placement that resolves to an ALREADY- EXISTING taxonomy node is also skipped, and the source lesson is left un-annotated (result["existing_node_skipped"], distinct from result["gated_out"]'s classifier-noise cases) — --seed-tree does not accrete onto existing nodes; that machinery is /ren:wrap's own _concept_node_page + merge path. Backfilling accretion for this mode is future work, not this task's scope.
  3. Report. Same counter shape as the L1 flow (applied/held/ suggested/gated_out/refused/duplicates/capped_remainder), plus annotated (the See: pointer UPDATEs — these count toward the cap exactly like any other write), existing_node_skipped, and blind.

What this skill does NOT do

  • Write any wiki file directly — apply_candidates (and, for --seed-tree, the same concept-create machinery /ren:wrap uses) are the only write paths.
  • Advance the watermark on a failed run, or past an unprocessed session's earliest L1 on a capped run.
  • Touch quarantine banners, trust stamps, or the backup remote.
  • Run --seed-tree on a schedule — it is manual-trigger only, never folded into the weekly routine.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.