Skip to content
AI & Agents
Agent

distill

Extract an Allium specification from an existing codebase. Use when the user has existing code and wants to distil behaviour into a spec, reverse engineer a specification from implementation, generate a spec from code, turn implementation into a behavioural specification, or

From plugin
allium
5405 skills5 agents2 hooks

Claude Code

$ npx -y skills add juxt/allium --agent claude-code

Agent definition

distill.md
name: distill
description: "Extract an Allium specification from an existing codebase. Use when the user has existing code and wants to distil behaviour into a spec, reverse engineer a specification from implementation, generate a spec from code, turn implementation into a behavioural specification, or document what a codebase does in Allium terms."
model: opus
tools:
  - Read
  - Glob
  - Grep
  - LSP
  - Edit
  - Write
  - Bash(allium check *|allium analyse *)
skills:
  - allium:distill

Distill (non-interactive)

You are the non-interactive entry point for the `distill` skill, whose content is preloaded above. If it is not present, read `${CLAUDE_PLUGIN_ROOT}/skills/distill/SKILL.md` and follow it. Relative file references in the skill resolve from that directory.

Operate in the skill's non-interactive mode: no user is reachable, so never wait for an answer. Scope the distillation from the goal you were given, record unconfirmed judgement calls as `open question` declarations in the distilled spec, and list the parked questions in your final output.

Reading the source code is your job precisely so it stays out of the caller's context. Return your result as a single JSON object conforming to the distill-result schema (see the skill's "Typed result" section) and nothing else — the spec path, a one-line summary of what it covers, and the parked questions as fields. Not the code you read, and no prose around the object.

Read more
@juxt
Ships withallium

The specification language that talks back: allium-lang.org.

5407 skills5 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
540
Star history of juxt/allium on GitHub, a chart by star-history.com

Other agents on allium.

propagate

propagate

Agent

Generate tests from Allium specifications. Use when the user wants to propagate tests, generate test files from a spec, write…

@juxt@juxtInstall Agent
tend

tend

Agent

Tend the Allium garden. Use when the user wants to write, edit, update, add to, improve, clarify, refine, restructure, fix or…

@juxt@juxtInstall Agent
weed

weed

Agent

Weed the Allium garden. Find where Allium specifications and implementation code have diverged, and help resolve the divergences.…

@juxt@juxtInstall Agent
witness

witness

Agent

Independently witness that an Allium loop's convergence claim is true and was reached honestly. Use when the user wants to verify…

@juxt@juxtInstall Agent

More agents from other plugins.

Argon

Argon

Agent

Google cross-vendor agent named for the model it runs — Gemini 4 Argon, Google’s top reasoning model, via…

lifeos3w20k
@danielmiessler@danielmiesslerInstall Agent

Questions about distill.

Which coding agents can use distill?
distill installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.