Writing SOUL.md
SOUL.md answers one question: who is the AI, when it's working
for you — whether that's a chat conversation or an agent like Cline?
Not what it's allowed to do — that's AGENTS.md. Not what it knows
about you — that's USER.md. Just: what kind of specialist is this,
and how does it sound when it writes?
So the SOUL can mirror who you are. Or you can assign a completely different kind of persona to the AI, depending on the project or task.
This matters more than it looks like it should. The same request —
"summarise this contract" — produces genuinely different output from
"a cautious junior paralegal" versus "a senior partner who's seen this
clause fail before." Same facts, different judgement calls about
what's worth flagging. SOUL.md is where you decide which one you're
getting.
What goes into it
A working SOUL.md usually covers four things, in roughly this order:
| Part | Answers |
|---|---|
| Role | What kind of specialist is this — not "an assistant," a specific practice |
| Expertise & limits | What it's confident in, and what it should defer or flag instead of guessing at |
| Tone | How it sounds on the page — formal, plain, warm, terse |
| Judgement style | How it thinks through a problem — what it prioritises when trading off |
Notice what's not on that list: specific rules like "always cite
your source" or "never send anything externally." Those are
behavioural constraints, not identity — they belong in AGENTS.md.
If your SOUL.md starts filling up with "always" and "never," that's
usually a sign a rule wandered into the wrong file.
A worked example
Here's a SOUL.md for an HR-transformation consultancy, the same
example used in the Concepts article on the five core terms:
---
name: soul
description: Defines the Agent's identity, tone, and professional
judgement for this firm.
---
# SOUL — Who You Are
You are a senior consultant at a professional services firm
specialising in HR transformation.
Your tone is professional, direct, and clear. You write in plain
business English — no jargon, no filler phrases. You are confident
but not arrogant. You always put the client's situation first before
talking about yourself or your firm.
You are not a general-purpose assistant. You are a specialist in HR
transformation engagements — particularly mid-size companies dealing
with process inconsistency, multi-site HR challenges, and
organisational change. Outside that area, say so rather than
improvising.
You think like a senior partner preparing for a client conversation:
structured, evidence-based, and focused on what the client actually
needs to hear — not what sounds impressive.
When you write, you write for a business audience. No academic
language. No unnecessary hedging. Short paragraphs. Clear
recommendations.
Notice the shape: every sentence is either identity ("you are a
senior consultant"), a boundary on expertise ("outside that area, say
so"), or tone ("no academic language, short paragraphs"). Nothing here
tells the AI what file format to save output in, or when to ask a
clarifying question — that's AGENTS.md's job, and mixing the two
makes both files harder to maintain.
Good vs. weak examples, side by side
| Weak | Better | Why |
|---|---|---|
| "Be professional and helpful." | "You write in plain business English — no jargon, no filler phrases. Confident but not arrogant." | The weak version could describe almost any assistant. The better version is specific enough to actually change output. |
| "You are an expert in everything HR-related." | "You specialise in HR transformation for mid-size, multi-site companies. Outside that, say so rather than improvising." | Naming the edges of expertise is as useful as naming the expertise itself — it's what stops confident-sounding guesses in unfamiliar territory. |
| "Always double-check your work before responding." | (leave this out of SOUL.md entirely) | This is a rule about behaviour, not identity — it belongs in AGENTS.md. |
| "Sound like a friendly expert." | "Short paragraphs. Clear recommendations. No unnecessary hedging." | "Friendly expert" is a vibe; the better version is something you can actually check a draft against. |
Don'ts
- Don't write a personality for its own sake. A
SOUL.mdfull of colourful adjectives ("witty, warm, insightful") without any connection to what the AI actually produces is decoration, not configuration. Every trait should change what ends up on the page. - Don't smuggle rules in. "Always ask before sending anything
externally" is a permission, not an identity trait — put it in
AGENTS.md, or you'll end up with the same rule half-stated in two places and no clear source of truth. - Don't skip the limits. A persona with no stated boundaries tends to answer everything with the same confidence, whether it's inside its actual expertise or not. "What this specialist doesn't know" is as important as what it does.
- Don't write it once and forget it. If your firm's tone shifts, or you realise the AI keeps sounding too formal for a fast-moving client, the fix is usually a one-line edit here — not a longer prompt every time.
Where and how to use it
clearxx Agent & Build Workspace. Save it as SOUL.md in your
project folder, alongside AGENTS.md, SKILL.md, and USER.md.
Cline reads it when told, together with the other files, if they're
present in the same project.
clearxx Assistant — one-off. For a single chat outside a regular project, open the file, select all, and paste it into the chat input before your first message. It applies for that conversation only.
clearxx Assistant — recurring. If this identity should apply to
every conversation for a given project or client, create a Folder for
it and paste the combined content of your SOUL.md (plus AGENTS.md
and USER.md, if you're using them) into the Folder's System
Prompt field, not into Knowledge. Every new chat started inside that
folder inherits it automatically — set once, always in effect.
Attaching the file as Knowledge instead would get it vectorized for
retrieval, which is the wrong mode for an identity file that needs to
be read whole, every time.
Every new chat started from that Folder then has the SOUL available automatically. Start a chat either directly from the Folder or add the Folder to the chat.
If you have a new topic with new requirements you may need a new Soul file. Before using it, always think about where to put it, and when and how to bring it into your work.