<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Gal Arav</title>
    <description>The latest articles on DEV Community by Gal Arav (@gal_arav_fb41e711a92bdf0d).</description>
    <link>https://dev.to/gal_arav_fb41e711a92bdf0d</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4263114%2Fc50ce7f0-5f73-4eb8-ad23-6400669c9690.png</url>
      <title>DEV Community: Gal Arav</title>
      <link>https://dev.to/gal_arav_fb41e711a92bdf0d</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gal_arav_fb41e711a92bdf0d"/>
    <language>en</language>
    <item>
      <title>Skill or MCP Server? Ask What Stops the LLM From Disobeying</title>
      <dc:creator>Gal Arav</dc:creator>
      <pubDate>Tue, 24 Nov 2026 17:56:52 +0000</pubDate>
      <link>https://dev.to/gal_arav_fb41e711a92bdf0d/skill-or-mcp-server-ask-what-stops-the-llm-from-disobeying-p48</link>
      <guid>https://dev.to/gal_arav_fb41e711a92bdf0d/skill-or-mcp-server-ask-what-stops-the-llm-from-disobeying-p48</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://towardsdatascience.com/skill-or-mcp-server-ask-what-stops-the-llm-from-disobeying" rel="noopener noreferrer"&gt;Towards Data Science&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Towards Spec-Driven Test Automation, Part 4&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;From the very first commit of my Python project, one rule mattered more than any other: the coding agent must never see the acceptance criteria. So I built two agents that never compare notes: one writes the tests from the full specification, and a separate coding agent writes the code from the same specification with the criteria cut out. In most coding environments, the same agent writes both, which compromises the validity of the test results. I forced the cut to happen in code by using &lt;strong&gt;context assembly&lt;/strong&gt;, the step that builds the coding agent's prompt, where the criteria section of the task file is cut out before the prompt is built. &lt;/p&gt;

&lt;p&gt;For a while I thought that cut was airtight. Then I found that a single comment line broke it: the cut stopped there, and every criterion after the comment reached the coding agent. A week later, a criterion wrapped onto a second line did the same thing. Not good. Both bugs were mine and I was annoyed that the same core problem had resurfaced. So this time, after fixing both bugs, I added tests to ensure that any future build would fail if the cut was not applied as intended. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcth78250w1cb76635x6f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcth78250w1cb76635x6f.png" alt="Context assembly: the criteria are cut out of the task file before the coding agent's prompt is built" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Skills and MCP servers are often weighed against each other. One year ago, on the day Anthropic launched Skills, Simon Willison called them "maybe a bigger deal than MCP" (&lt;a href="https://simonwillison.net/2025/Oct/16/claude-skills/" rel="noopener noreferrer"&gt;https://simonwillison.net/2025/Oct/16/claude-skills/&lt;/a&gt;). They are not really rivals, and for the rule my project depends on, the answer turned out to be neither, as I opted for context assembly. I still ended up shipping all three, as each carried a separate advantage.&lt;/p&gt;

&lt;p&gt;I wanted users to be able to reach &lt;strong&gt;qikly&lt;/strong&gt;, my command-line tool, from a chat environment, through the AI assistant in their editor or terminal, such as Claude Code or Cursor. That puts two LLMs in play: the assistant, which drives qikly for the user, and qikly's own coding agent, which writes the code. Neither should see the acceptance criteria, because either could then write code to pass the tests rather than to solve the problem. The assistant could already run qikly from the command line. What it lacked was knowing when to use it. I figured a &lt;strong&gt;Skill&lt;/strong&gt;, a folder of Markdown instructions the assistant loads when a request matches its description, would do the trick. A Skill is also a good way to package the best practices for using it, so the assistant picks them up without anyone having to remember to paste them in.&lt;/p&gt;

&lt;p&gt;Writing the Skill made me separate two jobs, and only one of them belongs in a Skill.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Skill's job is advice:&lt;/strong&gt; what goes in the requirements, which the coding agent reads, and what goes in the acceptance criteria, which it never sees. That is judgement, so it can only be taught: the assistant will &lt;em&gt;usually&lt;/em&gt; follow it, and you can measure whether it helps, but you cannot promise it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Context assembly's job is cutting the criteria out&lt;/strong&gt;, every time it builds the coding agent's prompt, whether or not a Skill is installed.&lt;/p&gt;

&lt;p&gt;The advice still matters even though the cut is automatic, because the cut removes only the criteria section of the spec. If a criterion is also written into the spec's requirements, it reaches the coding agent anyway. So I added a check to &lt;code&gt;qikly --validate&lt;/code&gt; that warns when a requirement restates a criterion.&lt;/p&gt;

&lt;p&gt;The same split applies to any rule you give an LLM: some must hold whatever it decides, and others only work if it understands them. Two common fixes fall short. A better model follows advice more often but not always. Setting the &lt;em&gt;temperature&lt;/em&gt; to zero makes its answers &lt;em&gt;more repeatable, not more obedient&lt;/em&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  MCP server vs Skill
&lt;/h3&gt;

&lt;p&gt;Both are described as "giving the LLM a new capability", and both do, so the difference is easy to miss. Here is what each one actually is.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftcqywx4icszdoc687xh0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftcqywx4icszdoc687xh0.png" alt="What an MCP server is, and where it is strong" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;An MCP (Model Context Protocol) server is a process&lt;/strong&gt;: think of it as an API for AI assistants. It exposes typed functions as tools (mine are Python) over a live client-server protocol. The host, the app the assistant runs in, such as Claude Code or Cursor, connects to the server through its built-in MCP client and lets the LLM call those tools the way your code calls a function. A server either runs on your own machine, started by the host as a local process, or is hosted by its provider as a web service at a URL; qikly's is the local kind.&lt;/p&gt;

&lt;p&gt;If you write your own agent loop, the code that calls the model and runs the tools it asks for, you do not need a server for this: you pass the tool schemas in your own API call. An MCP server is for when the loop belongs to an assistant such as Claude Code or Cursor, whose code you cannot edit. My project, qikly, runs as a command-line tool and needs no server. Its MCP server is an optional extra, worth adding when an assistant drives qikly for you. It installs with &lt;code&gt;qikly --install-mcp&lt;/code&gt; and has four tools: &lt;code&gt;qikly_run&lt;/code&gt; to start a run, &lt;code&gt;qikly_status&lt;/code&gt; to poll it, &lt;code&gt;qikly_validate&lt;/code&gt; to check a task file and &lt;code&gt;qikly_scaffold&lt;/code&gt; to draft one from a Python file.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn9aiomqm96hgz0lh9ynt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn9aiomqm96hgz0lh9ynt.png" alt="What a Skill is, and where it is strong" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A Skill is a static, portable instruction set&lt;/strong&gt;, usually a &lt;code&gt;SKILL.md&lt;/code&gt; saying when to use something and how, with optional reference files beside it. It is used in two steps: the LLM always sees the Skill's name and description, and opens the full file only when that description seems to fit what it is doing. So, unlike the &lt;strong&gt;system prompt&lt;/strong&gt;, which the LLM always sees in full, a Skill can fail by going unread: if its description does not look relevant to a request, the rest is never opened. A Skill folder can also ship scripts, but the assistant decides whether to run them, so even a Skill's script is a choice the assistant makes, not code its output must pass through.&lt;/p&gt;

&lt;h3&gt;
  
  
  The question that matters
&lt;/h3&gt;

&lt;p&gt;Most comparisons weigh the two on knowledge versus access. That framing misses a more useful question. When adding anything to an LLM application, ask: &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;What stops the LLM from disobeying the rule?&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdirlke35avrxqe2r4qvc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdirlke35avrxqe2r4qvc.png" alt="The question: what stops the LLM from disobeying the rule?" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;My MCP server is code, so it passes that test for what goes through it. It never hands the acceptance criteria to the assistant, however it asks, because the refusal is written into the server rather than requested in a prompt.&lt;/p&gt;

&lt;p&gt;The files on disk are another matter. The criteria sit in a task file, and the assistant can open that file with its own tools, without going through qikly's MCP server at all, so the server only guards its own front door. qikly's coding agent never depended on that door: it never reads the disk, and the criteria cut happens in context assembly, which it cannot get around. For the assistant there is a mechanism too: the docs show a permissions rule that keeps it out of the generated tests, which are written from the criteria.&lt;/p&gt;

&lt;p&gt;The real question, then, is not "should this be a Skill or a server". It is the one above, asked of the thing you are adding, and then picking whichever format answers it the way you need. I went looking for what else was on offer and found a good many formats. Every one of them falls into the same two groups: the ones that inform the LLM of a rule, and the ones that enforce it in code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8yfvcxi7mjgkf1y9aue8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8yfvcxi7mjgkf1y9aue8.png" alt="Formats that inform an LLM of a rule, strongest to weakest" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8q51iysttj23i1iirsgi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8q51iysttj23i1iirsgi.png" alt="Formats that enforce a rule in code, strongest to weakest" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The two tables differ in one thing: what happens when the LLM would rather do something else. Every row of the first ends at the same place, the LLM's own judgement: however firmly a rule is worded, the LLM can still decide not to follow it. In the second table its preference does not arise, because something in its path refuses on its own authority. Each table runs from the strongest row at the top to the weakest at the bottom. So what stops the LLM from disobeying? With a Skill, nothing does. Code in its path does, because the LLM never gets the choice.&lt;/p&gt;

&lt;p&gt;qikly uses eight of the twelve rows above, including the one that holds its central claim. One of the eight has a name already: &lt;strong&gt;fixed control flow&lt;/strong&gt;, where the sequence of calls is code rather than a plan, is what Anthropic's workflow-versus-agent distinction calls a workflow, as against an agent that plans its own steps, and by that definition qikly is a workflow. Fixed control flow settles which prompt runs next without settling what any of them contains, which is why the criteria cut still had to be code rather than an ordering.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fofrx5eiobi4gsrsipuab.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fofrx5eiobi4gsrsipuab.png" alt="The eight of twelve formats qikly uses" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  The project this came from
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;The code is open source, and the landing page links the repository: &lt;a href="https://qikly.com/?ref=dev_p4" rel="noopener noreferrer"&gt;https://qikly.com/?ref=dev_p4&lt;/a&gt; . &lt;/li&gt;
&lt;li&gt;The Skill is described at &lt;a href="https://github.com/gal-a/qikly/blob/main/docs/skill.md" rel="noopener noreferrer"&gt;https://github.com/gal-a/qikly/blob/main/docs/skill.md&lt;/a&gt; and installs with &lt;code&gt;qikly --install-skill&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The MCP server is described at &lt;a href="https://github.com/gal-a/qikly/blob/main/docs/mcp.md" rel="noopener noreferrer"&gt;https://github.com/gal-a/qikly/blob/main/docs/mcp.md&lt;/a&gt; and installs with &lt;code&gt;qikly --install-mcp&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Splitting the specification this way borrows from safety-critical practice, where verification must be independent of whoever built the thing, and goes one step further. On most teams a developer reads the whole ticket, criteria included, and codes to it; only the tests come from somebody else. In qikly the independence comes from what each agent is shown: the test generator gets the criteria and the coding agent never does, so a run also shows whether the requirements alone were enough. When a test fails, the coding agent sees what pytest prints, by default including the failing test's source, which often restates its rule. A staged setting, off by default, starts with a one-line error and widens only as attempts keep failing. &lt;a href="https://towardsdatascience.com/towards-spec-driven-test-automation-part-1" rel="noopener noreferrer"&gt;Part 1&lt;/a&gt; explained that trade-off.&lt;/p&gt;

&lt;p&gt;The coding agent never edits the tests. It emits a diff, and a diff touching anything outside the code is refused. The integration and system suites are written before any code exists and stay as written. The reason that the unit suite is generated last, with the code in view, is that unit tests also cover the helpers the coding agent wrote, which the task file's interface section does not name and which do not exist until the code does.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk4085xeczn41bhzmazzb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk4085xeczn41bhzmazzb.png" alt="The path a task takes through qikly's agents" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In &lt;a href="https://towardsdatascience.com/a-google-team-measured-half-of-my-argument-and-left-the-other-half-open" rel="noopener noreferrer"&gt;Part 3&lt;/a&gt; I called this &lt;strong&gt;Independent Spec-Driven Development (ISDD)&lt;/strong&gt;: the coding agent is given the decisions, the test generator is also given the consequences, and the independence lies in what each of them knows. That only works if the criteria cut always happens. &lt;/p&gt;

&lt;p&gt;The project, which now ships as a command-line tool, an MCP server and an agent Skill, has grown to nearly 2,000 tests, and about 70 of them guard that one rule, covering every prompt the coding agent receives, every reply the MCP server sends, and each way of writing a task file that has broken the cut or could.&lt;/p&gt;

&lt;h3&gt;
  
  
  The distinction this project taught me
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;What code executes can enforce. What an LLM reads can only inform.&lt;/strong&gt; A Skill is read by the LLM, so it could never have held the rule this whole project rests on. A server is executed, so it could have. Mine refuses to return the criteria too, but the rule qikly depends on needed no format at all: context assembly keeps the criteria out of the coding agent's prompt however qikly is started, from a shell or from a tool call.&lt;/p&gt;

&lt;p&gt;Anything that must be &lt;strong&gt;guaranteed&lt;/strong&gt; regardless of what the LLM decides has to live in code, behind an interface the LLM cannot reach around, such as access control, the criteria cut, rate limits, audit trails. In other words, anything you would want to say "it is impossible for this to happen" about.&lt;/p&gt;

&lt;p&gt;Anything that is &lt;strong&gt;knowledge, judgement or procedure&lt;/strong&gt; belongs in a Skill, because a tool call has nowhere to put it. Three concrete examples from my &lt;code&gt;SKILL.md&lt;/code&gt;: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;which line of a specification is a decision somebody made versus which is a consequence that follows from it.&lt;/li&gt;
&lt;li&gt;what it means when the repair loop, qikly's fix-and-retest cycle, stalls and keeps resubmitting the same patch.&lt;/li&gt;
&lt;li&gt;why a suite that passes can still be worth very little.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Write the sentence you want to be true, then ask what stops the LLM from disobeying it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F91gyzxu007z88snqq7o2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F91gyzxu007z88snqq7o2.png" alt="Three answers to the same rule: Skill, MCP server and context assembly" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Why I shipped both anyway
&lt;/h3&gt;

&lt;p&gt;Because they do different jobs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The server starts and tracks long runs.&lt;/strong&gt; A run takes minutes to hours, depending on its scope and complexity, and a tool call cannot block for that long. So &lt;code&gt;qikly_run&lt;/code&gt; starts the run in the background, in its own process, and returns an id at once, while &lt;code&gt;qikly_status&lt;/code&gt; reports what became of it. Several tasks can run in parallel this way, one process each. That start-and-poll split is the server's main convenience: the assistant starts and checks runs as ordinary tool calls instead of driving a shell. The command line can do the same with &lt;code&gt;qikly --run&lt;/code&gt; and &lt;code&gt;qikly --status&lt;/code&gt;, and the server is built on them. What the server adds is arguments checked against a schema, annotations telling the assistant which calls are safe to make unattended, and access for an assistant with no terminal at all. Its replies reach the assistant's own context, so they are one more place a criterion could leak, and they have tests of their own.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Skill teaches what the tools cannot.&lt;/strong&gt; An assistant that calls &lt;code&gt;qikly_scaffold&lt;/code&gt; gets back a task file with two sections to fill in, and nothing in the tool says which of the user's sentences belong in which. That is the decision-versus-consequence line above, the hardest judgement in this project. There is no function signature for it, so it has to be written for the LLM to read, and that is what a Skill is. It matters because a decision left hidden in the criteria makes runs stall more often, since the coding agent cannot guess a decision it never sees. On one driver-assistance task, with the decision left in the criteria, 3 of 10 runs converged, reaching code that passes every test; moved into the requirements, 10 of 10 did, and 9 of 10 on a rerun the next day. Helping draw that line well is most of what the Skill's four and a half thousand words are for. It deserves an article of its own, and will get one.&lt;/p&gt;

&lt;p&gt;A Skill can also reach the assistant before any tool is in play. Mine opens with advice for a request that never mentions qikly: if asked to write tests and there is no specification, do not write them yet, and offer the two routes that get one written first. A tool's description is about using the tool, so it has nothing to say to an assistant about to write tests by hand. This is still advice, not a guarantee: the assistant will usually follow it, which is all a Skill can promise.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why not RAG (Retrieval-Augmented Generation)?
&lt;/h3&gt;

&lt;p&gt;A data scientist's first question is often whether RAG could do this job instead. At most it could stand in for the Skill. &lt;strong&gt;Retrieval is not an alternative to the server at all.&lt;/strong&gt; RAG puts text in the context window and enforces nothing, so it fails the same test a Skill does, and the guarantee could no more live there than it could live in a Skill.&lt;/p&gt;

&lt;p&gt;Against a Skill it is a fair question, and it comes down to selection and size. &lt;strong&gt;Retrieval guesses relevance from the query, while a Skill declares it in a description written by its author&lt;/strong&gt;, which is why a retriever searching on "write me some tests" would not pull up the Skill's opening instruction, a passage saying not to write tests yet. &lt;strong&gt;And a Skill arrives whole&lt;/strong&gt;, in its own order, each rule still attached to the example that explains it, where retrieval hands over fragments ranked by score and step three without step one is worse than nothing. That only works while the whole thing is small enough to hand over. At two thousand pages you have no choice but to retrieve fragments and live with the ranking, which is exactly when retrieval earns its infrastructure. Retrieval is for knowledge you have too much of. A Skill is for knowledge all of which matters.&lt;/p&gt;

&lt;h3&gt;
  
  
  Common mix-ups
&lt;/h3&gt;

&lt;p&gt;Once you start looking, this gets mixed up in public constantly, and it goes wrong both ways.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Servers that are really Skills.&lt;/strong&gt; A lot of what ships as an MCP server is knowledge wearing a protocol. Even a single tool can earn a server: it can check its inputs against a schema, hold a credential the LLM never sees, or reach an assistant that has no terminal to run commands in. But if its one tool only wraps a command-line program the assistant could already run, the only thing it adds is that the assistant now knows the program exists. A Skill says that just as well, in a &lt;code&gt;SKILL.md&lt;/code&gt; naming the program and when to use it, with no process to configure, start and keep alive.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Skills that are really promises.&lt;/strong&gt; A &lt;code&gt;SKILL.md&lt;/code&gt; saying "never commit secrets", "always ask before deleting" or "do not read files outside the project" is a hope with good formatting. Every one of those has to hold whatever the LLM decides, so it needs a mechanism that can refuse: a permission system, a hook, a sandbox. Left as an instruction, it is decoration.&lt;/p&gt;

&lt;p&gt;If a rule has to be true, it belongs somewhere the LLM's output must pass through. If it only has to be known, an instruction the LLM reads is the right tool, and you should stop calling it a safeguard.&lt;/p&gt;

&lt;h3&gt;
  
  
  Other popular ways to guard a rule
&lt;/h3&gt;

&lt;p&gt;A few things get no more than a mention here. &lt;strong&gt;Constrained decoding&lt;/strong&gt; and &lt;strong&gt;structured outputs&lt;/strong&gt; enforce without any server at all. You pass a JSON schema or a grammar with the API request, and as the model writes, any next token that would break it is removed from the choices, so an invalid answer cannot be produced. It guarantees the answer's format, though, not that the answer is right. &lt;strong&gt;Continuous integration (CI) gates&lt;/strong&gt; enforce after the fact rather than in the path: the LLM does whatever it does, and the build fails afterwards. In this project that is the backstop, catching a regression in the criteria cut rather than doing the cut. &lt;strong&gt;Output validators&lt;/strong&gt; and &lt;strong&gt;guardrail libraries&lt;/strong&gt; sit in between, enforcing only what they were told to check.&lt;/p&gt;

&lt;p&gt;And finally, an &lt;strong&gt;MCP server&lt;/strong&gt; can inform as well as enforce. Besides the &lt;strong&gt;tools&lt;/strong&gt; explained in this article, the &lt;strong&gt;Model Context Protocol&lt;/strong&gt; lets a server offer &lt;strong&gt;prompts&lt;/strong&gt; (ready-made instructions) and &lt;strong&gt;resources&lt;/strong&gt; (documents the LLM can read). Those reach the LLM as text, so they are advice, exactly like a Skill; only the server's tools run code that can refuse. Shipping a server does not by itself mean a rule is enforced: that depends on which part of the server holds it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Further reading
&lt;/h2&gt;

&lt;p&gt;This article describes my own experience with a range of current AI topics, and builds on Anthropic's free course, available here: &lt;a href="https://academy.claude.com/courses/building-with-the-claude-api" rel="noopener noreferrer"&gt;https://academy.claude.com/courses/building-with-the-claude-api&lt;/a&gt; . &lt;/p&gt;

&lt;p&gt;Skills have a separate free course of their own, Introduction to agent skills: &lt;a href="https://academy.claude.com/courses/introduction-to-agent-skills" rel="noopener noreferrer"&gt;https://academy.claude.com/courses/introduction-to-agent-skills&lt;/a&gt; . &lt;/p&gt;

&lt;p&gt;What this article adds, from real issues I had to research and think through, is one question for sorting any rule you give an LLM, a map of twelve common formats by whether they inform or enforce, and a worked case from shipping both a Skill and an MCP server.&lt;/p&gt;

&lt;h2&gt;
  
  
  Previous articles in this series
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://towardsdatascience.com/towards-spec-driven-test-automation-part-1" rel="noopener noreferrer"&gt;Part 1&lt;/a&gt; makes the case for the split: when one AI writes both the code and its tests, "the green test suite can mean nothing". It explains how qikly writes the tests from criteria the coding agent never sees.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://towardsdatascience.com/towards-spec-driven-test-automation-part-2" rel="noopener noreferrer"&gt;Part 2&lt;/a&gt; follows one full run of qikly, in which tests the coding agent never saw caught a bug in its range check on radar data.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://towardsdatascience.com/a-google-team-measured-half-of-my-argument-and-left-the-other-half-open" rel="noopener noreferrer"&gt;Part 3&lt;/a&gt; introduces a new concept, &lt;strong&gt;ISDD&lt;/strong&gt;, &lt;strong&gt;Independent Spec-Driven Development&lt;/strong&gt;, and reviews a Google research team's recent measurement of SDD.&lt;/p&gt;

&lt;h2&gt;
  
  
  About the Author
&lt;/h2&gt;

&lt;p&gt;Gal Arav is the author of Applied Statistics for Data Science and maintains qikly, a new open-source Python project for spec-driven test automation, at:&lt;br&gt;
&lt;a href="https://qikly.com/?ref=dev_p4" rel="noopener noreferrer"&gt;https://qikly.com/?ref=dev_p4&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Readers are encouraged to give it a spin, and any (human) feedback is much appreciated as the codebase continues to evolve.&lt;/p&gt;

&lt;h2&gt;
  
  
  A note on the cover
&lt;/h2&gt;

&lt;p&gt;The cover uses a still of Charlie Chaplin and Jackie Coogan in &lt;em&gt;The Kid&lt;/em&gt; (1921), public domain in the United States, via Wikimedia Commons: &lt;a href="https://commons.wikimedia.org/wiki/File:Chaplin_The_Kid_4.jpg" rel="noopener noreferrer"&gt;https://commons.wikimedia.org/wiki/File:Chaplin_The_Kid_4.jpg&lt;/a&gt; . The title and the portrait cards cut from the still are mine. The image was inspired by a replica of this photograph in my room in my childhood. Figures 2 and 3 use portraits cut from the same still. The other images are by the author, drawn by a Python script written with Claude.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;If this found something in your own tests, a ⭐ on &lt;a href="https://github.com/gal-a/qikly" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; helps others find it.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>devtools</category>
      <category>python</category>
    </item>
  </channel>
</rss>
