Agent Skills vs MCP vs Prompts: What Each One Does in AI Work
A prompt asks, a rules file reminds, a skill teaches and an MCP server connects. See what each costs in tokens and which one to use for QA work.
Hely PatelHead of Product and Marketing18 min read
A prompt asks, a skill teaches and an MCP server connects. A prompt is an instruction typed into one conversation. An agent skill is a saved procedure the agent loads when a task matches, so it knows how your team does the job. An MCP server is a standard connection that lets the agent call tools and read data, so it can actually do the job. A fourth layer, the rules file, holds instructions that are always on. They solve different problems and work best together, which is why the conversation in AI circles has moved from writing better prompts to building skills and giving agents tools.
If you test software, these four terms now appear in every release note, newsletter and tool page. They are easy to blur. People ask whether skills replace MCP, whether prompts are obsolete and which one to learn first. This guide gives a direct answer, a side by side comparison, real token measurements and a decision table for QA work.
We measured the token numbers ourselves, from a working skill and a running Playwright MCP server. We also tell you where the advice is changing, because the Playwright team itself now recommends a skills-based approach for coding agents, and independent measurements disagree on how large the gap really is.
Always-on instructions such as AGENTS.md or CLAUDE.md
At the start of every session
Yes
Short, universal project rules
Skill
A folder with a SKILL.md and optional scripts
When the agent judges it relevant
Yes
Repeatable procedures and standards
MCP server
A running program that exposes tools and data through a standard protocol
Tool definitions at connection, tools when called
Yes
Reaching external systems and acting in them
A helpful way to hold the difference: prompts are requests, rules are habits, skills are know-how and MCP is access. A tester who asks for test cases (prompt), whose team always writes IDs as TC-001 (rule), who follows a defined technique and checks the output with a linter (skill), and who files the result in an issue tracker (MCP) is using all four in one task.
Why the Conversation Moved From Prompts to Skills and Agents
For two years, getting value from AI meant prompt engineering. You learned phrasing, role statements, examples and formats. That worked while AI answered questions in a chat window.
Agents changed the job. An agent does not answer once. It plans, calls tools, reads results and continues. A single instruction typed into a chat is not enough guidance for a task that spans dozens of steps, and retyping long instructions for every session is wasteful.
Anthropic's engineers describe the shift as separating three concerns. In their talk at the AI Engineer Code Summit, titled "Don't Build Agents, Build Skills Instead", they frame it as runtime, connectivity and expertise: the agent is the runtime, MCP provides the connectivity, and skills package the expertise. The idea behind the title is that you do not need a new custom agent for every domain. You need the same general agent plus the right packaged expertise.
For QA, that framing is practical. Your expertise is your test design method, your bug template and your risk judgment. Your connectivity is the browser, the issue tracker and the test management system. A general agent plus those two pieces is closer to a working tester than any single prompt can be.
The job market reflects the shift too. In published QA job posting data, mentions of LLMs and AI agents are each roughly three times as common as mentions of prompt engineering. Prompting remains a useful skill. It is simply no longer the headline.
What Is a Prompt, and When Is It Still the Right Tool?
A prompt is whatever you type into one conversation: a question, a task, a pasted requirement. It is the fastest way to ask for something, and for one-off or exploratory work it is still the right tool.
Prompts have three limits that matter in QA:
They do not persist. The detailed instruction you wrote on Monday is gone on Tuesday unless you saved and pasted it.
They vary between people. Two testers write two prompts and get two output shapes.
They cannot act. A prompt can ask for a bug report. It cannot file one.
Use a prompt when the task is genuinely one-off, when you are exploring an unfamiliar area, or when you are refining something interactively. The moment you notice you are pasting the same paragraph for the third time, that paragraph belongs in a skill.
What Is a Rules File?
Coding agents read a rules file, such as AGENTS.md or CLAUDE.md, at the start of every session. It is the place for short instructions that should always apply: the test framework your project uses, the folder layout, a command that runs the suite, a convention that locators must be role-based.
The key difference from a skill is timing. Rules are always loaded, so every line costs tokens in every session whether or not the task needs it. Skills are loaded only when relevant. A practical split is to keep the rules file to a few dozen lines of universal facts and move anything task-specific into a skill.
A common mistake is dumping the whole test strategy into the rules file. It then competes with the actual task for context on every request.
What Is an Agent Skill?
A skill is a folder with a SKILL.md file, optional scripts, reference files and assets. The agent reads only the skill's name and description at startup. When a task matches, it loads the full instructions, and it opens reference files or runs scripts only when the instructions call for them.
The previous post in this series builds one in detail. The numbers matter for this comparison, so here are the measurements from that skill, a test case writer called writing-test-cases. Token counts use a rough four characters per token.
Part of the skill
Size
Loads when
Name and description
About 77 tokens
Always, once installed
SKILL.md instructions
About 390 tokens in total
The task matches the description
Standard (reference file)
About 160 tokens
The agent writes or checks a case
Technique guide (reference file)
About 100 tokens
The agent chooses techniques
Linter script (900 tokens of code)
Output only
The agent runs it
Installing the skill costs 77 tokens per session. Using it costs a few hundred more. The 900 tokens of linter code never enter the context at all, only what the script prints.
That is the core economic argument for skills. Detailed expertise is available to the agent but only paid for when used.
What Is MCP?
The Model Context Protocol is an open standard, introduced by Anthropic in November 2024, that lets an AI client discover and call external tools and read external data through one consistent interface. An MCP server exposes tools such as "navigate to a page" or "create an issue", and any MCP-capable client can use them.
MCP solved a real integration problem. Before it, every pairing of AI tool and external system needed custom glue. With a shared protocol, one server works across clients, and the major AI providers now support it.
For QA, MCP servers matter because they let an agent do things, not only describe them: drive a real browser, query a test database in read-only mode, read and create tickets, trigger a pipeline. The next post covers how to connect these safely.
The cost profile is different from a skill. An MCP client typically loads the definitions of the connected tools into context so the model knows what it can call. We measured this on Playwright MCP 0.0.86:
Playwright MCP configuration
Tools
Tool definitions
Approximate tokens
Default
25
21,209 characters
About 5,300
With vision, pdf and devtools capabilities
45
32,971 characters
About 8,200
A single well-scoped server is affordable. Several large servers can add up quickly. Anthropic's engineering team describes agents connected to many tools processing hundreds of thousands of tokens before they even start the request, and shows a workflow dropping from about 150,000 tokens to about 2,000 by presenting tools as code the agent loads on demand. Some clients already defer tool loading, which reduces the upfront cost, so measure in the client you actually use.
Skills vs MCP: The Playwright Twist
Playwright gives us a live, current example of how the two interact. The project offers both an MCP server and a command line interface designed for coding agents, and the CLI ships installable skills. The Playwright MCP README now suggests that coding agents consider the CLI with skills, because CLI commands are more token-efficient, and keeps MCP recommended for specialized loops that need persistent state, rich page introspection and iterative reasoning, such as exploratory automation, self-healing tests or long autonomous workflows.
Playwright's own comparison summarises it like this:
Playwright CLI with skills
Playwright MCP
Best for
Coding agents working in large codebases
Specialized agent loops, exploratory automation
How it works
The agent runs shell commands
The model calls MCP tools with structured parameters
Token cost
Lower: concise output, skills loaded on demand
Higher: tool schemas and snapshots in context
Independent results are less one-sided. A Checkly engineer ran the same shopping-cart task three times in fresh sessions with each approach and found the context at the end of the session roughly equal, about 48,000 to 50,000 tokens for MCP and 45,000 to 48,000 for the CLI with its skill, with overlapping ranges. His explanation: newer clients defer MCP tool loading, and Playwright MCP now writes page snapshots to disk and returns a link instead of inlining them.
Our own measurements show why both statements can be true. In our run, navigating to a 300-row page returned only 272 characters inline, because the snapshot was written to a file. But when the agent explicitly asked for a full snapshot, the response was 112,588 characters, about 28,000 tokens. A targeted find for one row returned 557 characters. The cost depends less on the protocol than on how the agent reads the page.
The honest conclusion is that token advice goes stale quickly. Use the comparison as a starting point and measure your own workflow.
A Worked Example: One Pasted Prompt, Rewritten as a Skill
Here is a prompt a tester might paste at the start of every test design session. It is a good prompt. It is also 535 characters, about 133 tokens, that someone has to remember to paste, in the same wording, every time.
Code · text
You are a senior QA engineer. Write test cases for the requirement below. Use IDs like TC-001. Name a
technique for each case: boundary value, equivalence partition or decision table. Mark priority P1, P2 or P3.
Write each expected result as something observable, never "works correctly". If you do not know an expected
value, write QUESTION: instead of guessing. Return JSON with these fields: id, requirement, title, technique,
priority, preconditions, steps, expected. Include at least one negative case and cover every requirement.
The same instructions, moved into the writing-test-cases skill from the previous guide, split into three places:
Part of the old prompt
Where it lives in the skill
Why it moved
"Write test cases for the requirement below"
The skill's description, which also says when to use it
The agent decides when to load the skill, so nobody has to paste anything
IDs, fields, techniques, priority
references/test-case-standard.md
Loaded only when the agent writes or checks a case
"Never write works correctly", "cover every requirement", "include a negative case"
scripts/lint_cases.py
A script checks these rules and fails loudly, where a prompt can only ask politely
The exact description that does the work:
Turns a requirement, user story or bug into reviewable test cases in the team standard (IDs, technique,
priority, expected results) and lints them before hand-off. Use when asked to write, review or extend test
cases, test scenarios or a test suite from requirements or acceptance criteria.
Two honest observations come out of this comparison.
First, the skill is not cheaper per use. The pasted prompt is about 133 tokens. The skill costs about 77 tokens to have installed and about 390 more when it loads. You do not adopt a skill to save tokens on one task.
Second, what you gain is the part a prompt cannot give you. The rules apply the same way for every tester on the team. The linter turns "never write works correctly" from a request into a check: in our run it rejected exactly that phrase and eight other planted problems, and it exits with a failure code so the agent cannot quietly skip it. And the instructions live in one file that you can review and version, instead of in fifty private copies of a prompt.
Which One Should You Use? A QA Decision Table
You want to...
Use
Why
Ask a one-off question about a requirement
Prompt
No setup, no reuse needed
Make every agent write test cases in your format
Skill, with a linter script
Persistent procedure with a check
Keep the suite command and folder layout known
Rules file
Short facts needed in every session
Let the agent open and click a real browser
MCP server, or CLI with skills
The agent needs capability, not instructions
Read and create tickets in your tracker
MCP server
External system access
Enforce your bug report template
Skill
Template plus a field check
Query a test database safely
MCP server with a read-only account
Access plus least privilege
Teach the agent how to use a tool well
Skill that names the MCP tools
Know-how layered over access
Explore a feature you do not understand yet
Prompt
Interactive and disposable
When two rows seem to fit, the usual answer is both. The tool provides access and the skill provides the method.
How the Four Layers Work Together: Filing a Bug
Here is one realistic task, reported in the order each layer takes part.
Prompt: the tester writes, "File a bug for the sick leave rule that accepted three days without a certificate."
Rules file: the agent already knows the project uses Chrome for repro and that bug titles start with the area name.
Skill: a bug filing skill loads. It carries the 12 field template and a script that rejects a report without steps or an expected result.
MCP: the agent calls the issue tracker's create tool with the validated fields and attaches the evidence.
Remove any layer and something breaks. Without the skill, the report is inconsistent. Without MCP, it stays in the chat. Without the rule, titles drift. Without the prompt, nothing starts.
For the evidence step, Bug Genius captures a screenshot and annotations in the browser and turns them into a structured report, a useful input for the skill's template.
Security: Each Layer Has Its Own Risk
Every layer that influences an agent is also an attack surface. The mitigations differ.
Layer
Main risk
Mitigation
Prompt
Injection through pasted content, such as a ticket body that contains instructions
Treat pasted and fetched text as untrusted data
Rules file
A changed rule silently alters behaviour for everyone
Review changes like code
Skill
A malicious skill can add vulnerabilities or direct the agent to leak data
Install only trusted skills, read scripts and dependencies first
MCP server
Over-broad tokens, local servers running with your privileges, token passthrough
Least-privilege scopes, consent before running local servers, sandboxing
The MCP specification's security guidance is specific. It says servers must not accept tokens that were not issued for them, recommends starting with a minimal scope and elevating only when a privileged operation is first attempted, and says a client that offers one-click local server setup must show the exact command before running it. It also warns that local servers run with the same privileges as the client, which is why sandboxing matters.
Treat every connection as a decision about what the agent is allowed to touch, and give it the least access that gets the job done.
Common Confusions and Mistakes
Confusion
Reality
Skills replace MCP
They do different jobs. Skills teach method, MCP gives access. A skill can tell the agent how to use an MCP tool
MCP is a prompt library
MCP exposes tools and data, not saved instructions
Prompts are obsolete
They remain the fastest way to make a one-off request
Everything belongs in the rules file
Always-loaded text costs tokens in every session. Move task-specific procedures to skills
More MCP servers is better
Every connected server adds definitions and risk. Connect only what the task needs
A skill is just a long prompt
A skill is discoverable, loaded on demand, can bundle scripts and persists across sessions
A protocol choice fixes token cost
How the agent reads data, such as full snapshots versus targeted finds, matters as much
A One-Hour Team Exercise
If your team already uses AI agents, this exercise sorts the four layers quickly.
List what loads at the start of a session. Open your rules file and count the lines. Anything task-specific is a candidate to move.
Pick your most repeated prompt. The paragraph someone pastes every week becomes your first skill.
Write that skill and run its check. Follow the steps in the skills guide.
Connect one MCP server, scoped to read-only first, and review the exact command before it runs.
Measure tokens before and after in the client you use, on a task you actually do.
At the end of the hour you will know which of your instructions were habits, which were know-how and which were access.
Frequently Asked Questions
What is the difference between agent skills and MCP?
A skill is packaged know-how: instructions, templates and scripts that teach an agent how to do a task, loaded only when relevant. MCP is a protocol for access: a server exposes tools and data so the agent can act in external systems. A skill can instruct the agent on how to use an MCP tool, so they work together.
Do agent skills replace MCP servers?
No. Skills carry procedure and expertise, while MCP provides connectivity to live systems. Playwright's own guidance shows the nuance: for coding agents it recommends its CLI with skills for token efficiency, and still recommends MCP for specialized loops that need persistent state.
Are agent skills better than prompts?
For repeated work, yes, because a skill persists, is shared across a team, can bundle a script that checks output and loads only when needed. For one-off or exploratory requests, a prompt is faster and perfectly appropriate.
What is the difference between a rules file and a skill?
A rules file, such as AGENTS.md or CLAUDE.md, loads at the start of every session, so keep it short and universal. A skill loads only when its description matches the task, so it can hold longer task-specific procedures without costing tokens on every request.
Which uses more tokens, skills or MCP?
It depends on the client and on how the agent reads data. A skill's metadata is small, about 77 tokens in our example. An MCP server's tool definitions were about 5,300 tokens for Playwright's default 25 tools, although some clients defer loading. In an independent three-run test, the end-of-session context for MCP and for the CLI with skills overlapped. Measure your own setup.
Can a skill call an MCP tool?
A skill can instruct the agent to use specific MCP tools in a given order. Anthropic's authoring guidance recommends writing the tool name in the form ServerName:tool_name so the agent can find it when several servers are connected.
Should testers still learn prompt engineering?
Yes, as a base skill for clear instructions, but it is no longer the whole story. The higher-leverage work is packaging your team's standards as skills and connecting agents to the systems where testing happens.
Conclusion
Prompts, rules, skills and MCP are four layers of one stack, not four competitors. A prompt starts the work, rules carry the always-true facts, a skill carries the method and an MCP server carries the access. Getting the split right keeps context small, output consistent and risk bounded.
For QA, the practical order is to keep prompts for exploration, trim the rules file to a page, turn your repeated procedures into skills and connect MCP servers one at a time with the least access that works. Then measure the tokens, because this area changes every few weeks.
Key Takeaways
A prompt asks, a rules file reminds, a skill teaches and an MCP server connects. They are layers, not rivals.
Skills load progressively: our test case skill costs about 77 tokens to install and a few hundred more when used. Its 900 tokens of script code never enter the context.
Playwright MCP 0.0.86 exposes 25 tools by default, about 5,300 tokens of definitions, and 45 tools with extra capabilities, about 8,200.
Token cost depends on how the agent reads pages. A 300-row page was 272 characters on navigate, 112,588 for a full snapshot and 557 for a targeted find.
Playwright now recommends CLI with skills for coding agents and MCP for specialized loops. A separate three-run test found the two roughly equal, so measure your own setup.
Keep the rules file short. Move task-specific procedures into skills.
Every layer is an attack surface. Install trusted skills, scope MCP tokens to least privilege and review the exact command of any local server before it runs.
Hely PatelHead of Product and Marketing @AIdriventesting.ai. Leads the platform's AI testing tools from idea to launch, and writes about AI-driven testing and practical AI adoption for QA teams.