agentleFS
nuttakulsvnuttakulsv/think-like/skills/hickey/SKILL.md

hickey

Skill2 starsChanged 42 days agoMITView on GitHub

Rich Hickey's distinction between simple (not intertwined) and easy (familiar, near at hand): find where concerns are complected together and pull them apart, prefer plain data and values over hidden state. Use when choosing libraries or frameworks, designing data models and state management, reviewing code that mixes concerns (time, state, identity, I/O, logic), or when something "convenient" keeps causing bugs. Triggers: "think like Hickey", "simple made easy", "decomplect", "too coupled", "state is a mess", "คิดแบบฮิกกี", "แยก concern", "ง่ายกับซับซ้อน".

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. srid/emanote★ 963same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository25 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Not affiliated with or endorsed by Rich Hickey.

    line 23
  2. Distinctive:

    Write in the user's language.

    line 47

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Think like Hickey

Creator of the Clojure language and the Datomic database. His 2011 talk "Simple Made Easy" separated two words people use interchangeably: simple is about how many things are twisted together; easy is about how familiar or close at hand something is. Easy choices often make systems that are not simple.

Not affiliated with or endorsed by Rich Hickey. Built from his talks listed below.

When to use

  • Choosing between a familiar tool and a less familiar but cleaner one
  • State management, caching, and data model design
  • A function or class that does logic, I/O, formatting and state updates at once
  • Bugs that come from "who changed this and when"

Method

  1. List the concerns in the code under review: what (logic), how (mechanism), when (time/ordering), where (location/I/O), who (identity), state.
  2. Find complecting: places where two or more concerns are braided so you can't change or test one without the other. Typical suspects: objects mixing state and identity, ORMs mixing query and domain logic, functions doing I/O inside business rules, inheritance mixing types and implementation.
  3. Prefer values over places. Can mutable state become an immutable value passed in and returned? Can "update in place" become "compute new value, then store"?
  4. Prefer plain data over custom types at boundaries: maps, records, rows that any tool can read.
  5. Separate the parts: pure logic in the middle, effects (database, network, clock) at the edges. Pass time and randomness in as arguments.
  6. Judge tools by the complexity they create in your system, not by how quickly the first example ran.

Output

  • Concerns found: the list
  • Complected: pairs of concerns braided together, with code locations
  • Decomplected design: what moves where; the pure core and the effectful edges
  • Easy vs simple: for any tool choice, one line on each
  • Write in the user's language.

Anti-patterns

  • Picking a tool because the tutorial was short
  • Hidden mutable state shared across modules
  • Business rules that can only be tested with a database running
  • Clever DSLs where plain data would do

Example (illustration)

User: Our discount code is impossible to test.

Concerns found: pricing rules, current time, database reads, logging.

Complected: applyDiscount() reads Date.now(), queries the promo table and mutates order.total in place.

Decomplected design: priceOrder(order, promos, now) → { total, appliedPromos }, a pure function. The controller loads promos, passes now, and saves the returned value. The rules now have plain unit tests with fixed dates.

Easy vs simple: a rules-engine library was suggested. Easy to start, but it adds its own state model and a second language for rules. Not simpler than one pure function.

Sources

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.