Your coding agent says the change is done. The diff looks reasonable, the agent says the tests pass, and you have three more pull requests waiting. The question every engineering lead is now asking is simple: how do I know it actually works?
Skills are the newest answer. Claude Code and Codex both support them, and searches for "Claude Code skills" and "Codex skills" have jumped in the last few months. A skill is a small folder of instructions that your coding agent loads when a task matches. Written well, a testing skill turns "I think it works" into "here is the run that proves it".
This guide covers how skills work in both tools, how to write one that makes your agent test its own changes, and the gap that skills can't close on their own.
What is a skill in Claude Code and Codex?
A skill is a directory with a SKILL.md file in it. The file has a short header with a name and a description, followed by plain instructions the agent follows when the skill runs. You can add scripts, reference documents and templates alongside it.
Both tools build on the same open Agent Skills standard, so the basic format carries across. The important idea is progressive disclosure. The agent starts with only each skill's name and description, and loads the full instructions when it decides a skill is relevant. That means you can keep long testing procedures in a skill without paying for them in every conversation.
There are two ways a skill gets used:
- You call it directly. In Claude Code you type the skill name as a slash command, such as /verify. In Codex you run /skills or mention it with a dollar sign, such as $verify.
- The agent picks it. If your request matches the skill's description, the agent loads it on its own. This is why the description matters more than anything else in the file.
Where do skills live?
Where you save a skill decides who gets it.
In Claude Code:
- Personal skills go in ~/.claude/skills/ and load in all your projects on that machine.
- Project skills go in .claude/skills/ inside the repository. Commit them and everyone on the team gets the same skill.
- Skills can also come from plugins, from your organization's managed settings, or from your claude.ai account.
In Codex:
- Repository skills go in .agents/skills/. Codex looks in every folder from where you launched it up to the repository root, so a monorepo can have shared skills at the top and module-specific ones lower down.
- Personal skills go in ~/.agents/skills/, and machine-wide skills in /etc/codex/skills.
- Codex also ships system skills, including a skill creator and a skill installer.
For testing, project skills are the ones that matter. A testing procedure that lives in the repository is reviewed like code, versioned like code and used by every developer and every agent that touches the project.
Claude Code's built-in run and verify skills
Claude Code already includes skills aimed at exactly this problem. According to its documentation, three bundled skills work together:
- /run launches and drives your app so you can see a change working.
- /verify builds and runs your app to confirm a code change does what it should, without falling back to tests or type checks alone.
- /run-skill-generator records how to build and launch your project, then saves that recipe as a project skill so later runs follow it instead of guessing.
The detail that makes this useful for teams is what happens at commit time. When a session starts with a project skill named verify in place, Claude Code's commit instructions tell Claude to run it right before each commit, except for changes that only touch docs or tests. This needs Claude Code v2.1.286 or later.
In other words, a verify skill in your repository becomes a gate the agent passes through on its own, every time, without anyone remembering to ask.
How to write a testing skill your agent will actually use
Most skills that don't work fail for one of three reasons: the description is vague, the steps are vague, or the skill tries to do too much. Here's what a good testing skill contains.
A description that says when to run
The description is what the agent reads to decide whether to load the skill. Front-load the trigger. A description like "Runs the checkout regression tests and reports failures. Use after any change to cart, checkout or payment code, or before committing." gives the agent a clear rule. A description like "Helps with testing" gives it nothing.
Codex's documentation adds a practical warning: when many skills are installed, it shortens descriptions to fit its budget. If the trigger words come first, the skill still matches when the end of the description is cut.
Steps with clear inputs and outputs
Write the instructions as a short procedure, not an essay:
- Which command builds the app, and which starts it.
- Which test suites to run for which parts of the codebase.
- What counts as a pass, and what to do on a failure.
- What to report back, such as the failing test names, the error and the step that broke.
One job per skill
Keep one skill per job. A skill that builds, tests, writes release notes and opens a pull request is hard for the agent to match and hard for you to debug. Separate skills for "verify the change", "run the full regression" and "check accessibility" are easier to trigger and easier to trust.
Rules about the tests themselves
This is the part teams most often skip. Tell the agent what it must not do:
- Don't edit, skip or delete a test to make it pass.
- Don't change expected values unless the task asked for a behavior change.
- If a test fails, report it and stop, rather than "fixing" the test.
Coding agents are very good at making a red build green. Without these rules, the fastest route to green is sometimes to change the test. We covered how to enforce this with Claude Code hooks, which can block the edit outright instead of relying on instructions.
Where skills fall short for testing
Skills are a big step forward, but they have limits that matter for QA.
The agent is still grading its own work
A skill is instructions to the same agent that wrote the code. It decides how to interpret the steps, which output to read and when to call something a pass. That's far better than no check at all, but it isn't independent verification. When the code, the test run and the verdict all come from one agent, a misunderstanding in the first step can carry through to the last.
Unit tests aren't the user's journey
Most testing skills run the project's own test commands. Those usually cover functions and components, not a real user signing in, filling a form and paying. The bugs that reach customers often live in the journey: a renamed button, a redirect that loops, a field that no longer saves.
Results live in a chat session
A skill's output is a message in the agent's conversation. There's no shared history of which flows were tested on which build, no video of what happened and no trend across releases. When a release manager asks "what was tested before this went out?", a chat transcript is a weak answer.
Skills drift
A skill is only as current as the person who last edited it. When the app's launch process or test layout changes, the skill keeps giving yesterday's instructions until someone notices. Claude Code's recorded run recipes help here, since Claude updates the recorded file when a run goes wrong, but most hand-written skills have no such mechanism.
How to close the gap: give the agent a test it can't grade
The fix isn't to drop skills. It's to make one of the skill's steps call something the agent doesn't control.
A practical setup looks like this:
- Keep a verify skill for fast feedback. Let the coding agent build, run unit tests and check the change it made, using the rules above.
- Run end-to-end journeys outside the agent. Critical flows such as sign-in, checkout and account changes run in a separate system that records what happened.
- Make the skill wait for that result. The skill's last step is to trigger the end-to-end run and report its outcome, not to decide the outcome itself.
- Run the same checks in CI. The same journeys run on every pull request, so a change that skipped the agent's skill still gets tested.
This is also where the build-or-buy question comes in. You can wire this up yourself with Playwright and a coding agent, and we compared that route in End-to-End Testing Tools: Build It Yourself or Buy?. If you go that way, our guides to Playwright CLI for coding agents and Playwright MCP cover the moving parts.
Where Robonito fits
Robonito is an agentic QA platform: its AI agents create, run and maintain end-to-end tests for web, mobile, API and desktop apps. In the setup above, it plays the part of the independent check.
- Tests are written in plain English or recorded in the desktop app, so the journeys can be owned by QA or product people, not only by whoever prompted the coding agent.
- Every run keeps evidence. Each run keeps video, network traces and an AI root cause for failures, plus pass rates and trends across runs.
- Self-healing handles cosmetic change. When labels, layouts or locators change, steps adapt and healed steps are logged for review. When the result itself is wrong, the test still fails.
- Claude and ChatGPT can connect directly. Robonito has an MCP server that you can connect to Claude and ChatGPT. Once connected, they can create, change and run tests and read results within the permissions you grant, using tokens issued by Robonito. A skill's last step can ask for a Robonito run and report what Robonito found.
- It runs in your pipeline. Robonito integrates with GitHub Actions, GitLab CI, Jenkins, Azure DevOps and CircleCI on the Starter plan and above.
Where it doesn't fit: if your project is a library with no user interface, or your unit tests already cover what matters, a well-written verify skill may be all you need. Robonito earns its place when real user journeys break and nobody notices until a customer does.
You can on the free forever plan, or to see an end-to-end check run alongside a coding agent.
A simple rollout plan
If you're starting from nothing, this order works for most teams:
- Week one: add a project verify skill with the build, test and "don't touch the tests" rules. Commit it so every developer's agent uses it.
- Week two: pick the five user journeys that would hurt most if they broke, and automate them end to end outside the coding agent.
- Week three: add a step to the skill that triggers those journeys and reports the result, and run the same journeys in CI on every pull request.
- Ongoing: when a bug reaches production, ask whether a journey would have caught it, and add one if so.
Frequently asked questions
What are Claude Code skills?
Claude Code skills are folders containing a SKILL.md file with a name, a description and instructions. Claude loads a skill when your request matches its description, or you can run it directly as a slash command. They follow the open Agent Skills standard.
Are Codex skills the same as Claude Code skills?
They share the same open Agent Skills standard, so the basic SKILL.md format carries across. The locations differ: Codex reads repository skills from .agents/skills, while Claude Code reads project skills from .claude/skills. Each tool also adds its own extra features.
Can a skill make my coding agent run tests before every commit?
In Claude Code, yes. When a project skill named verify is in place at the start of a session, Claude Code's commit instructions tell Claude to run it before each commit, except for docs-only or test-only changes. This requires Claude Code v2.1.286 or later.
Is a testing skill enough to trust AI-generated code?
It's a strong first layer, but the same agent writes the code, runs the check and judges the result. For changes that affect real users, add end-to-end tests that run outside the agent and in CI, so the verdict doesn't depend on the agent's own reading. Our playbook for testing AI-generated code goes further.
Can Claude or ChatGPT run Robonito tests?
Yes. Robonito has an MCP server that you can connect to Claude and ChatGPT. Once connected, they can create, change and run tests and read the results, within the permissions you grant and using tokens issued by Robonito. The run itself happens in Robonito, so the result and its evidence don't depend on the assistant's own judgment.
Where should I store testing skills?
In the repository, as project skills: .claude/skills for Claude Code and .agents/skills for Codex. That way the procedure is reviewed and versioned like code, and every developer's agent follows the same steps.
If your coding agents ship faster than your team can check their work, or and put an independent end-to-end check behind every change.




