agentleFS
bladerblader/theorist/SKILL.md

theorist

Skill188 starsChanged 9 months agoMITView on GitHub

Maintain a per-repo THEORY.MD as a continuously updated narrative of the operating theory behind the current work. Activates EVERY session and stays active throughout the session. Requires frequent in-session rewrites as new learnings land (major result, verification outcome, or strategy pivot). Not a log, not a plan, not a todo list — a cohesive document describing the higher-level thinking, systematic strategy, and motivation behind the work as it evolves. Updated end-to-end (rewritten, not appended) as understanding deepens.

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈15

    Distinctive · estimate

    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:

    The systematic strategy: Not task-by-task steps, but the higher-order approach.

    line 38
  2. Distinctive:

    Not a changelog or log: Never append timestamped entries.

    line 47
  3. Distinctive:

    Not a plan or todo list: No task items, checkboxes, or step-by-step instructions.

    line 49
  4. Distinctive:

    If meaningful work begins and no THEORY.MD exists yet, create one once you have enough context to write a meaningful narrative (not before …

    line 64
  5. Distinctive:

    Update THEORY.MD when understanding shifts meaningfully:

    line 70
  6. Distinctive:

    Do NOT update on every small code change.

    line 78
  7. Very specific:

    verify (tests/benchmarks/repro checks).

    line 89
  8. Distinctive:

    If active work continues for ~10 minutes without a theory refresh, perform a concise rewrite that incorporates current learnings.

    line 94
  9. Distinctive:

    If multiple discoveries happen in a burst, batch them into one immediate rewrite after the burst.

    line 96
  10. Distinctive:

    Keep the document concise.

    line 107
  11. Distinctive:

    Write as a thoughtful engineer explaining their mental model to a peer.

    line 148
  12. Distinctive:

    Avoid hedging language — state the theory clearly, and separately note where confidence is low.

    line 150
  13. Distinctive:

    Update when theory changes, not when code changes.

    line 158
  14. Distinctive:

    Prefer frequent concise rewrites over infrequent large rewrites.

    line 160
  15. Distinctive:

    If the session remains trivial (one-liner fix, config change), stay active but no-op the document creation/update requirement.

    line 161
  16. Distinctive:

    If multiple workstreams are active, the theory should cover the primary one with brief notes on how others connect, not try to be …

    line 163

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Theorist

You maintain a per-repo narrative document at THEORY.MD that captures the operating theory of the work being done. This is not a plan, not a log, not a task list. It is a living essay that describes why the work exists, what the systematic strategy is, and how the current approach connects to the larger picture.

This skill is always active during every session. No trigger required. Once active in a session, it stays active for the full session.

What THEORY.MD Is

A cohesive narrative document — typically 1-3 pages — that a thoughtful collaborator could read to understand:

  • The problem thesis: What problem is being solved and why it matters. Not "fix bug X" but "the export pipeline assumes Y, which breaks under Z."
  • The operating theory: The current mental model of how the system works and where the leverage points are. What has been tried, what was learned, and what that implies about the shape of the solution.
  • The systematic strategy: Not task-by-task steps, but the higher-order approach. Why this sequence of work? What principle connects the changes?
  • Key discoveries and pivots: Moments where understanding shifted. What was the old theory, what broke it, and what replaced it.
  • Open questions and uncertainties: What is still unknown. Where the current theory might be wrong. What would change the approach.

What THEORY.MD Is Not

  • Not a changelog or log: Never append timestamped entries. The document is rewritten holistically as understanding evolves.
  • Not a plan or todo list: No task items, checkboxes, or step-by-step instructions. A plan says "do X then Y." A theory says "X matters because of Y, and the right lever is Z."
  • Not a postmortem: Written in the present tense of ongoing work, not retrospectively about completed work.
  • Not a status report: No "today I did X." Instead: "The current approach is X because the evidence shows Y."

Session Behavior

Starting a Session

At session start, if THEORY.MD exists, read it. Use it to orient yourself to the work. Do not announce that you read it.

If meaningful work begins and no THEORY.MD exists yet, create one once you have enough context to write a meaningful narrative (not before — don't create an empty skeleton).

During Work

Update THEORY.MD when understanding shifts meaningfully:

  • A root cause is identified that changes the approach.
  • A strategy pivot happens (tried X, learned Y, now doing Z).
  • A key discovery narrows or expands the problem scope.
  • The systematic approach crystallizes or changes direction.
  • An open question gets answered, or a new uncertainty emerges.

Do NOT update on every small code change. Update when the theory changes, not when the code changes.

Update Cadence (Strict)

Theorist should refresh frequently during active work, not just at major milestones or session end.

  • Trigger an update after each major work loop:
    • investigate,
    • implement,
    • verify (tests/benchmarks/repro checks).
  • Trigger an update whenever verification materially changes confidence (new failure mode, passing fix confirmation, large benchmark shift).
  • Trigger an update when 2-3 meaningful learnings have accumulated, even if they happened close together.
  • If active work continues for ~10 minutes without a theory refresh, perform a concise rewrite that incorporates current learnings.
  • If multiple discoveries happen in a burst, batch them into one immediate rewrite after the burst; do not defer to session end.

How to Update

Rewrite the relevant sections of the document in place. The entire document should read as a coherent narrative at any point in time. Old theories that were superseded should be briefly noted as pivots ("Initially the hypothesis was X, but Y revealed that Z"), not deleted entirely — the evolution of understanding is part of the theory.

Keep the document concise. Prefer clarity over completeness. A reader should be able to understand the full strategic picture in under 5 minutes.

Document Structure

THEORY.MD should flow as natural prose organized under a few clear headings. The exact structure should adapt to the work, but a typical shape:

# Theory: [Short Title of the Work]

## Problem

[What problem exists, why it matters, what makes it hard. Not just symptoms
but the structural reason the problem exists.]

## Operating Theory

[Current mental model. How does the system actually work in the relevant area?
What are the key dynamics? Where is the leverage?]

## Strategy

[The systematic approach. Not tasks but principles. Why this sequence? What
connects the individual changes into a coherent campaign?]

## Key Discoveries

[Pivots in understanding. What was learned that changed direction. Brief but
specific — not "found a bug" but "the formula translator was re-parsing
identical ASTs 415K times because the cache key included per-cell context,
making the cache effectively useless."]

## Open Questions

[What remains uncertain. Where the current theory might break. What evidence
would change the approach.]

Tone

Write as a thoughtful engineer explaining their mental model to a peer. Direct, specific, no filler. Use concrete examples from the codebase. Avoid hedging language — state the theory clearly, and separately note where confidence is low.

Practical Rules

  • One THEORY.MD per repo, at repo root (THEORY.MD).
  • Maximum ~200 lines. If longer, tighten the prose.
  • Rewrite holistically, never append.
  • Update when theory changes, not when code changes.
  • Stay active for the whole session once activated.
  • Prefer frequent concise rewrites over infrequent large rewrites.
  • If the session remains trivial (one-liner fix, config change), stay active but no-op the document creation/update requirement.
  • If multiple workstreams are active, the theory should cover the primary one with brief notes on how others connect, not try to be comprehensive about everything.

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.