Lately I've been working on something: turning most of my workflows into Skills. Anything with a standardized process gets written up as a SKILL.md.
At the same time, while using personal assistants like Hermes Agent, I've been paying more and more attention to how to write SOUL.md and USER.md so they're leaner and more on point, because they decide whether the agent can really become a collaborator that gets me.
That got me thinking about a bigger question: we used to write code, and now we write MD.
A project used to have one README.md at most, written for people.
Open the same project today and you'll see AGENTS.md, SKILL.md, SOUL.md, USER.md, DESIGN.md,
plus a special category that AI writes for itself: MEMORY.md and NOTES.md, which keep memory and task state across sessions.
More files isn't surprising. What's surprising is that they're all .md, and they're all written for AI. How to write these .md files well is something I'm still figuring out. This piece is me thinking through the shift.
The audience for .md has changed
The audience for README.md is people. People can fill in what you didn't write through context, shared understanding, and time spent together. Write "keep the code clean," and your colleague roughly knows what you mean.
The audience for AGENTS.md is AI. It has no context, no shared understanding, and no long-term impression of you. It can only understand you through the tokens in its context window. Whatever you didn't write down doesn't exist for it.
That's a fundamental difference, not a difference of degree. Anthropic, Karpathy, and others have recently been pushing a concept: context engineering. It's the upgrade to prompt engineering, moving from "how do I write one good prompt" to "how do I systematically manage what the AI sees." At its core it answers one question: how do your domain knowledge, your way of working, and you as a person become tokens an AI can understand?
The big tools each express this in their own format; Claude Code, for example, uses CLAUDE.md. AGENTS.md is currently an open standard led by the Linux Foundation and supported by more than 60 tools. The formats differ, but the essence is the same: before the work starts, the AI reads the working instructions any collaborator needs to know.
Why split it into files
Software engineering has separation of concerns: different logic goes in different modules so they don't interfere with each other. That idea is migrating into AI context management: project knowledge in one file, capability specs in another, identity in a third.
But this isn't just about engineering tidiness. Wittgenstein had a concept called the language game: meaning isn't fixed; it's determined by the specific context of use. "Quality" in a coding collaboration means test coverage; in a writing collaboration it means some hard-to-describe sense of rhythm. Same word, completely different meanings in different language games.
So you split. AGENTS.md defines the rules of the "coding collaboration" game:
- SKILL.md defines the rules of the "capabilities and ways of working" game
- SOUL.md defines the rules of the game for the AI's own values and code of conduct
- USER.md defines the rules of the game for the AI's understanding of the user and their preferences Mix them together and the AI gets confused. More importantly, you get confused writing them, because knowledge at different levels has completely different logic of expression and density requirements.
Every .md file draws the boundary of one specific collaborative relationship and makes its vocabulary and context of use explicit. This isn't filing documents into categories. It's building the AI a cognitive frame for each situation. Once you see that, the structure of the three layers of externalization gets a lot clearer.
Knowledge, externalized in three layers
Here's the metaphor I use: onboarding a long-term remote assistant. You'll be working together for years, but they're in another city. They can't slowly get to know you through daily contact; all they have is what you write down.
1. Project knowledge
Layer one: project knowledge → AGENTS.md
The easiest and most direct. What tools you use, where the no-go zones are, the commit format, which directories must never be edited by hand. This is the equivalent of a technical onboarding doc. The rules are explicit, and AI follows them well. For example, a web project's AGENTS.md might say:
- A one-line description of each subproject under apps/ (so it doesn't waste tokens rescanning every time)
- For TS files, run npm typecheck first; after any API change, npm test is mandatory
The AI only needs to know "what and how." It doesn't need to understand "why."
2. Ways of working
Layer two: ways of working → SKILL.md
Medium difficulty. You have to make your workflow concrete and standardized, basically turning it into an SOP.
Take generating a weekly sales insights report: how you want the AI to process and aggregate the data, which dimensions must be covered, what format the charts use, how deep the recommendations should go, what tone and structure to write in.
It usually includes an output template, style preferences, how key metrics are calculated, and the pitfalls to avoid. For example, a sales team's SKILL.md might specify: report titles should be short and clear, every conclusion needs supporting data, unusual swings get highlighted first, and the last section gives action items instead of a vague summary.
Writing this layer forces you to spell out "the things you normally do on autopilot," and as you write you discover that a lot of habits and intuitions can actually be abstracted into concrete, executable steps and rules. Without a detailed SOP, the weekly report can come out all over the place, and switching the base model can give wildly different results. You wouldn't want a different analyst every week producing your report by their own standards and style. You want them to know what you want, never mix up the key concepts, and ideally keep each report consistent with the last.
3. The user profile
Layer three: "who you are" → SOUL.md and USER.md
This layer is the hardest to write and the most worth the time. You need to keep the two files clearly apart, because they point in completely different directions.
SOUL.md is the agent's own underlying profile. It defines what kind of being this AI is: its values, its decision principles, its behavioral boundaries. The name "soul" isn't arbitrary; it really does define things at that level. Picture this: a user asks the agent to do something that conflicts with its values. SOUL.md decides how it responds. It's not a list of rules. It's the AI's basic character.
USER.md is the AI's understanding and profile of the user it works with. It's not a self-introduction the user writes. It's the AI's accumulated "understanding of you": your communication style, preferences, background context, and what you care about. SOUL.md decides what the AI is; USER.md decides how the AI understands you. Two files, two directions.
Back to the metaphor: SOUL.md is like the remote assistant's own statement of values, and USER.md is like the impression of you they've built up over years of working together. This layer is especially critical for agents that need high autonomy and run independently over the long term. For simple task execution, the first two layers are mostly enough. But for personal assistants like OpenClaw or Hermes Agent, which have to make judgment calls and handle complex problems on your behalf when you're not around, these two files are indispensable.
The core difference between the three layers isn't the amount of information. It's how much can be put into words. Layer one can almost all be said; layer three can mostly only be sensed.
Restraint beats piling on
But more .md files isn't better, and longer isn't better. An LLM's context window is like human working memory: it has a limit. Researchers have also found a phenomenon called "context rot": the longer the file, the more the AI selectively ignores, and the rule you care about most may be exactly the one that gets skipped. Frontier models can reliably follow roughly 150 to 200 instructions; beyond that, adherence starts to decay. Once the context gets long, the model easily forgets important rules.
That constraint is actually a good thing. It forces you to answer: what really matters?
Writing a SKILL.md isn't dumping in every preference, and writing a USER.md isn't writing an autobiography. They're high-density extractions. Put in only what the AI would definitely get wrong without. Leave the rest out. Write positive requirements where you can, and fewer prohibitions. Building a Skill is incremental: you refine it as you use it. When you notice the model keeps making the same mistake, write that down.
Language, knowledge, and limits
All this reminds me of two philosophers. They came at the same problem from different directions, and it's a problem people thought about a long time ago.
In the Tractatus Logico-Philosophicus, Wittgenstein wrote: "The limits of my language mean the limits of my world." For humans, this is an epistemological metaphor: the limits of what you can think are set by the language and concepts you have. For AI, it's literal fact: its "world" is the tokens in its context window, and whatever you didn't write down doesn't exist in its world. When you write a SOUL.md, you're literally expanding the AI's world so it can reach you as a person.
He also had what's called the private language argument: a purely private language is impossible; meaning requires publicness, criteria that others can check. Your aesthetic intuition and your style of judgment are "private" right now. They live in your neurons and your gut, and they work fine without any public form. Writing SOUL.md and USER.md forces that private knowledge to find a public form, so it becomes transferable and checkable.
Polanyi said the same thing from the other side: "We can know more than we can tell." That's the essence of tacit knowledge. An old carpenter's feel for the grain of the wood, an old doctor's sense of what's wrong at first glance: that experience lives in their hands and their eyes, and it can't be fully written into a manual. An apprentice doesn't learn from the manual. They learn by watching the master for three years.
That's exactly the dilemma SOUL.md and USER.md face. Your deepest aesthetic preferences and your instincts for judgment are your most valuable knowledge, and also the hardest to put into words. You can approximate them, but you can't capture them completely.
Put these two limits together and you get the full tension of the problem: AI can only understand what's been written down (Wittgenstein), and what people can write down is never complete (Polanyi). .md files live between these two limits, trying to close the gap.
But here's the counterintuitive part: when you can't write something down, it isn't always because the knowledge is too complex. Sometimes you just haven't thought it through yet. Being pushed by AI collaboration to write these files is a kind of passive self-clarification. In the process of explaining yourself to an AI, you get to know yourself again.
My take
These .md files are becoming everyone's AI interface spec. Just as an API has an OpenAPI spec, you as a person are starting to need a spec of your own, so any AI tool can quickly understand how you work and what you value.
And it's not just collaboration with AI; collaborating with people works the same way. You need to present your insights, views, positions, and values, explicitly or implicitly, in a form the other person can take in more easily, to cut down on misunderstandings as you work together. That process helps them understand you more fully, along with what you're really trying to achieve. It's the same with AI, except AI relies more on explicit text, without the flexibility and tolerance for error of human communication.
But I don't think the most interesting trend is here.
Recently some personal assistants have gained a capability called Dreaming. Take OpenClaw's Auto-Dream: at four every morning it triggers a "Dream Cycle." It automatically scans the last few days of collaboration logs, extracts key decisions, learned patterns, and threads of unfinished tasks, then writes that knowledge back into MEMORY.md in layers, while continuously updating its understanding of the user (USER.md) and of its own way of working. One line in its README stuck with me: "The brain doesn't stop working during sleep; that's when its most important work begins."
What does that mean? This set of .md files is no longer just static documents a human maintains by hand. It's starting to get its own path to evolve. The AI doesn't need to wait for you to tell it what to change. It's reflecting, distilling, and updating its understanding of you and of itself on its own. Like working with a real person for years: they slowly get to know you better through everyday work, and you don't have to call a meeting every time to recalibrate. AI is starting to need time to reflect and look back on itself too. I want to write a separate piece on that.
Wherever Dreaming ends up, I'm more and more sure of one thing: thinking yourself through and writing it down is worth doing in itself. Not for the AI. For you.
References
- Wittgenstein, Ludwig. Tractatus Logico-Philosophicus (1921)
- Wittgenstein, Ludwig. Philosophical Investigations (1953)
- Polanyi, Michael. The Tacit Dimension (1966)
- Anthropic Engineering Blog. Effective context engineering for AI agents (2025)
- Schmid, Philipp. The New Skill in AI is Not Prompting, It's Context Engineering (2025)
- tianpan.co. CLAUDE.md and AGENTS.md: The Configuration Layer That Makes AI Coding Agents Actually Follow Your Rules (2026)
- LeoYeAI. OpenClaw Auto-Dream: Automatic memory consolidation for OpenClaw agents (2026)