agentleFS
udaysharmadevudaysharmadev/Skills/skills/distill/SKILL.md

distill

Skill4 starsChanged 2 months agoMITView on GitHub

Turns a vague software request into a compact implementation brief with actors, triggers, preconditions, behavior, failures, permissions, data effects, edge cases, and observable acceptance conditions. Use before planning when product intent or scope is ambiguous.

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

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. 0 are common, 16 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 36 edited versions we read keep these.

  • 16

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never infer permission to delete data, break a public contract, change pricing, send external communication, access production data, spend …

    line 39
  2. Distinctive:

    Write observable requirements as behavior under conditions:

    line 51
  3. Distinctive:

    Before drafting a single question, confirm the surfaces the brief touches actually exist: the page/module named, the data involved, the …

    line 89
  4. Distinctive:

    Ask only blocking questions, max 5, in one batch.

    line 107
  5. Very specific:

    Use the template in references/brief-template.md (it includes a filled example).

    line 113
  6. Distinctive:

    Read the finished brief as an implementer with no conversation history.

    line 140
  7. Distinctive:

    Every material behavior has a success and relevant failure/edge condition.

    line 145
  8. Distinctive:

    If a missing item would change implementation substantially, ask the compact question batch or return a conditional brief.

    line 153
  9. Distinctive:

    Mid-implementation scope change: update the goal, scope, non-goals, affected acceptance criteria, and assumptions together.

    line 167
  10. Distinctive:

    Approval-bound action: stop at a precise decision/authorization request.

    line 170
  11. Distinctive:

    Every line must remove ambiguity or it gets deleted.

    line 175
  12. Distinctive:

    No restating general knowledge ("React is a component library"): the reader is a coding agent, not a student.

    line 176
  13. Distinctive:

    No invented requirements the user never implied.

    line 178
  14. Distinctive:

    Stop when the brief removes implementation-blocking ambiguity.

    line 180
  15. Distinctive:

    Ask only when alternatives materially change behavior, data, permissions, or risk.

    line 186
  16. Distinctive:

    Every agent-executable specification is objectively checkable by another agent without human intervention.

    line 193
  17. Distinctive:

    Read references/research.md when a decision depends on an external standard, a numerical claim, or a fast-moving practice.

    line 215

“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: weak request in, sharp brief out

A great brief removes ambiguity. It does not add volume. Your output should be executable by a weaker model without access to this conversation: every fact it needs is on the page, and nothing on the page is filler.

When NOT to use

  • The idea hasn't survived critique yet → hotseat first.
  • The request is already precise (goal, scope, and definition of done are unambiguous) → skip straight to planning.
  • The task is a small mechanical fix ("rename this variable") → just do it.

Prerequisites

The triggering request. A quick look at the repository for context (what exists, what conventions apply): lighter than a spelunk pass; read only what the request names or obviously touches.

Evidence, authority, and assumption model

Distill clarifies intent; it does not silently become a product owner, architect, security approver, or implementation agent. Separate all brief content into these classes:

ClassMeaningTreatment
Confirmed factuser statement or observed repository evidencecite compactly
Constraintexplicit requirement, policy, compatibility, budget, or authority limitpreserve verbatim when material
Assumptionreasonable choice that does not need user input yetnumber it and make it falsifiable
Open decisionplausible answers materially change outcomeask or route to hotseat
Suggestionnon-binding improvement beyond the requestisolate; never smuggle into scope

Never infer permission to delete data, break a public contract, change pricing, send external communication, access production data, spend money, or deploy. Those are explicit approval boundaries in the brief when relevant.

Brief decision framework

Distill only the ambiguity that matters to a downstream implementer. For each candidate detail, ask: does an alternative change user outcome, scope, data, permission, compatibility, risk, verification, cost, or release behavior? If not, omit it or make a narrow assumption. If yes, decide it, ask it, or record it as a deliberately unresolved decision with a safe discovery step.

Write observable requirements as behavior under conditions:

SituationRequirement form
Ubiquitous behaviorThe system shall <response>
Triggered behaviorWhen <trigger>, the system shall <response>
Conditional behaviorWhile <condition>, the system shall <response>
Failure/exceptionIf <failure>, the system shall <safe response>
Prohibition/invariantThe system shall not <forbidden outcome>

The form is a tool, not a ritual. Pair each material requirement with an oracle: visible result, returned contract, persisted state, log/audit event, or testable absence of a forbidden side effect. "Intuitive", "fast", "secure", and "production-ready" are labels until their observable condition is named.

Scale the brief to the request

Request typeBrief shape
tiny task (button rename, copy fix)goal + acceptance criterion + where: 5–10 lines, no template ceremony
featurefull template below
large feature / migrationfull template + NFRs, rollout constraints, backward-compatibility and data-migration notes
bug/change requestreproduction facts + expected behavior + scope guard (what NOT to fix along the way)
greenfield productfull template + target user + success metric; defer tech choices to masterplan unless the user named them

A brief for a button rename that mentions "non-goals" and "rollout" is enterprise cosplay: match depth to blast radius.

Workflow

1. Extract the goal

Restate the request as one sentence: what will be true after the work that isn't true now, for whom. If you cannot write this sentence, that's a clarifying question, not a brief.

2. Ground in the repo first (lightly)

Before drafting a single question, confirm the surfaces the brief touches actually exist: the page/module named, the data involved, the commands available. Briefs referencing nonexistent files are how hallucinated work starts. Most "ambiguities" die here: what remains is genuinely missing.

3. Ambiguity detection (max 5 questions)

Actively scan the request for linguistic, semantic, and functional ambiguities. List what's genuinely blocking:

  • Undefined boundaries ("make it fast" → what is the target metric?)
  • Contradictory constraints
  • Missing definitions of "good" or failure states

For each candidate question, apply the materiality test: name the two most plausible answers and what each would change about implementation, security, data handling, or UX. If nothing material changes, it is not a question, it becomes an explicit numbered assumption in the brief.

Ask only blocking questions, max 5, in one batch. Anything non-blocking becomes an explicit numbered assumption in the brief. Never run a back-and-forth interrogation.

4. Write the brief

Use the template in references/brief-template.md (it includes a filled example). Core sections:

  • goal (one sentence) + user outcome;
  • context: relevant existing pieces, with file paths;
  • constraints and conventions to respect;
  • scope: what's in;
  • non-goals: what's explicitly out (as valuable as scope);
  • agent-executable specifications: statements another agent can objectively verify without human judgment;
  • edge cases: empty/loading/error/malformed states worth handling;
  • non-functional requirements only when they bite (performance budget, accessibility bar, i18n, security constraint): omitted means "nothing beyond the project's existing bar";
  • backward compatibility / migration notes when existing data or users are affected;
  • UX expectations (only if user-facing);
  • verification: how "done" gets proven: which commands must pass, what a human/browser check confirms;
  • known unknowns + numbered assumptions.

5. One-pass confirmation

Show the brief. Ask for corrections once, integrate, done. Don't loop on polish: downstream skills (masterplan) will surface anything structural.

6. Run the implementation-readiness review

Read the finished brief as an implementer with no conversation history. Check:

  1. The target actor, triggering condition, and desired outcome are clear.
  2. Scope and non-goals prevent the most tempting adjacent work.
  3. Existing paths/commands are observed or visibly provisional.
  4. Every material behavior has a success and relevant failure/edge condition.
  5. Permissions, data effects, compatibility, and irreversible actions are explicitly bounded where applicable.
  6. Acceptance criteria can be proven at the right boundary, not merely acknowledged by a human.
  7. Assumptions have identifiers, are falsifiable, and carry an owner/review trigger when they are material.

If a missing item would change implementation substantially, ask the compact question batch or return a conditional brief. Do not conceal ambiguity in polished prose.

Failure handling and scope change

  • Conflicting user statements: quote the conflict neutrally and ask for the decision; do not choose the more convenient interpretation.
  • Repository contradicts request: preserve the request, report the observed conflict and path, then offer a revised scope or discovery task.
  • Unsettled product tradeoff: frame options, consequences, and evidence needed; route to hotseat instead of pretending it is a requirement.
  • Insufficient repository access: emit a provisional brief with every path/command marked assumption, then name the minimum inspection needed.
  • Mid-implementation scope change: update the goal, scope, non-goals, affected acceptance criteria, and assumptions together. Do not patch only a task line while leaving the original definition of done misleading.
  • Approval-bound action: stop at a precise decision/authorization request. The brief may specify preparation but not authorize execution.

Anti-bloat rules

  • Every line must remove ambiguity or it gets deleted.
  • No restating general knowledge ("React is a component library"): the reader is a coding agent, not a student.
  • No invented requirements the user never implied. Suggestions go in a clearly marked non-binding suggestions list.
  • Stop when the brief removes implementation-blocking ambiguity; brevity is a quality signal, not a fixed line target.

Tool selection / fallback

  • Repository artifacts and the user's words outrank generic templates.
  • Ask only when alternatives materially change behavior, data, permissions, or risk.
  • Without repository access, produce a provisional brief and label path or command assumptions.

Quality gates

  • A reader who never saw this chat could implement without guessing on scope: test your draft against this before showing it.
  • Every agent-executable specification is objectively checkable by another agent without human intervention.
  • The verification section names real commands/checks (that exist in this repo or are standard).
  • Assumptions are numbered and falsifiable ("A1: single-user, no roles").

Stop conditions

  • User confirms the brief → hand off to masterplan (or implement directly if the task is small), then stop.
  • The request reveals an unsettled product decision → stop and route back to hotseat for that decision.

Output contract

In chat: the brief. On disk (when the task will span sessions or feed planning): docs/briefs/<slug>.md with provenance header (<!-- generated by distill on YYYY-MM-DD -->).

<slug>: short kebab-case text derived from the task title.

Research basis

Read references/research.md when a decision depends on an external standard, a numerical claim, or a fast-moving practice. The ledger records what the source supports, what it does not support, and when to reverify.

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.