Skip to content

Writing SKILL.md

A Skill is a written-down working method for a type of task — independent of today's specifics. You've already seen one in detail: the Q&A Skill (in Articles - Use Cases) walks through a complete example end to end. This article is different — it's the general pattern behind any Skill, so you can write your own for whatever recurring task you're tired of re-explaining.

Not every Skill looks like the Q&A Skill. That one happens to work in question-and-answer rounds, because scoping an ambiguous plan is naturally interview-shaped. A Skill for formatting a report doesn't need rounds at all — it needs a checklist. The mechanic should match the task, not the other way around.

The anatomy, recapped

Every SKILL.md file begins with a small structured section at the very top — this holds basic info like the skill's name and what it does, formatted in a consistent (so called: YAML) way so tools can read it automatically. After that comes the main content: plain written instructions, formatted with simple symbols (like # for headings or - for bullet points) so it's easy to read both as plain text and in a nicely formatted view.

Part What it covers
Name A short identifier, matching the parent folder
Description What it does and when it should activate — this is what makes it discoverable
Instructions The actual working method: steps, format, examples, edge cases
Optional resources Scripts, references, templates — only if the task needs them

The description matters more than it looks like it should — it's the only part of the Skill that's loaded before the AI tool — whether that's a chat, an agent like Cline, or anything else reading it — decides whether to use it at all. If the description is vague, the Skill simply doesn't get picked when it should.

Writing a description that actually triggers

Two habits make the difference between a Skill that fires when it should and one that quietly never gets used:

  • Write it in the third person. The description gets folded into the AI tool's own instructions — whether it's being read directly in chat or picked up automatically by an agent like Cline — so inconsistent point of view causes confusion. "Reviews a proposal against the firm's structure requirements" — not "I can help you review a proposal."
  • Name the specific triggers, not just the general topic. "Use when the user asks to review a proposal, or mentions checking a document against firm standards" gives the tool something concrete to match against. "Helps with proposals" is too broad to reliably fire on the right requests and stay quiet on the wrong ones.
Weak description Better description
"Helps write proposals." "Reviews a draft proposal against the firm's required structure — Situation, Complication, Resolution, Approach, Why Us — and flags any missing section. Use when the user asks to review, check, or proofread a proposal draft."
"For research tasks." "Summarises research into three parts: key findings, implications for the named client, and one recommendation. Use when the user asks for research, a summary of a topic, or industry background on a client."

Two Skills that aren't shaped like rounds

A checklist Skill — for reviewing something against a fixed set of requirements, not scoping an open plan:

---
name: proposal-review
description: Reviews a draft proposal against the firm's required
  structure and flags missing sections. Use when the user asks to
  review, check, or proofread a proposal draft.
---

# Proposal Review

Check the draft against these five sections, in order: Situation,
Complication, Resolution, Our Approach, Why Us. For each one, confirm
it's present and report which is missing, not just whether the whole
document passes or fails.

Flag, but don't silently fix: bullet points inside narrative sections,
executive summaries longer than one page, and any claim that isn't
attributed to a source or a document.

Report findings as a short list, ordered by section, not as prose.
End with a one-line verdict: ready to send, or not yet.

A style-guide Skill — for applying a fixed set of formatting rules to any document, regardless of content:

---
name: client-doc-format
description: Applies the firm's formatting rules to any client-facing
  document. Use when the user asks to format, clean up, or finalise a
  document before sending it to a client.
---

# Client Document Formatting

Apply these rules to the document, in this order: convert any bullet
list inside a narrative section to prose. Replace filler phrases
("leveraging synergies," "in today's fast-changing landscape") with
plain statements. Confirm every executive summary is one page or
less — if not, say what to cut, don't cut it yourself without asking.

Do not change the substance of any recommendation. This Skill is
about form, not content.

Neither of these asks a single question or works in rounds — they don't need to, because the task isn't ambiguous. That's the point: match the mechanic to the task, don't default to the Q&A pattern for everything.

Don'ts

  • Don't write a vague, general-purpose description "to be safe." A Skill that claims to help with "proposals" in general will either never trigger reliably or trigger on requests it shouldn't — name the specific situations.
  • Don't cram everything into one Skill. If you're writing "and also" more than once in the description, it's probably two Skills. A proposal-review Skill and a proposal-formatting Skill can both be small and specific rather than one large one trying to do both.
  • Don't write rules in ALL CAPS instead of explaining the reasoning. "ALWAYS FLAG MISSING SECTIONS" gives the tool a rule to follow but no way to reason about an edge case it wasn't told about. "Flag missing sections — a proposal that skips Complication usually reads as pushy, since there's no problem established before the pitch" gives it something to reason from, which handles situations the rule itself didn't anticipate.
  • Don't let a Skill balloon past what it needs. Keep it under roughly 300 words where possible. If it's growing long, that's usually a sign it's trying to do two jobs, not that it needs more detail.
  • Don't skip reading a Skill you didn't write yourself before using it. This applies doubly to anything with scripts attached — a Skill with unreviewed executable code is a real risk, not a theoretical one.

Where and how to use a Skill

A Skill isn't limited to autonomous agent setups — you can use one directly in a chat conversation, or hand it to a tool like Cline to apply automatically. How you bring it in depends on where you're working:

clearxx Agent & Build Workspace (Cline). Save it as SKILL.md inside a folder named after the skill, in your project directory. Cline reads it when told, together with SOUL.md, AGENTS.md, and USER.md if they're present in the same project.

clearxx Assistant — one-off. Open the file, select all, and paste the full text into the chat input before describing the what you want to do. This works for a single conversation, no setup required — you're simply giving the AI the instructions directly, the same way you'd paste any reference material.

clearxx Assistant — recurring. If you'll use this Skill regularly, paste it into a Folder's System Prompt field alongside — not into Knowledge, which vectorizes content for retrieval rather than reading it whole. Every new chat started from that Folder then has the Skill 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 Skill file. Before using it, always think about where to put it, and when and how to bring it into your work.