Quick answer
To replace an AI skill with one line in AGENTS.md, write down the single behaviour the skill gives you as one clear instruction, then test it against the original. Move the skill out of your skills folder (do not delete it yet), add the line to AGENTS.md (or CLAUDE.md for Claude Code), and run the same task in two sessions: one with the line, one with the skill. If the results are similar, keep the line and delete the skill a week later. This works best for habit-style skills. Keep skills that run code or hold private knowledge.
Key takeaways
- Many skills boil down to one behaviour you can state in a sentence
- The line goes in AGENTS.md, or CLAUDE.md for Claude Code
- Move, don’t delete: park the original skill until the line has proved itself
- Test with the same task in two sessions and compare the substance, not the formatting
- Formatting preferences, such as emojis or rounds, can be added with a few extra words
- Do not convert skills that run scripts or hold private know-how
📘 Main article: This guide supports Claude Skills Clean-Up: Which Skills to Keep, Merge or Delete. It shows how to shrink one habit-style skill into a single instruction, safely.
In this guide
- What does replacing a skill with one line mean?
- Which skills can become one line?
- How do you replace a skill with one line, step by step?
- What does a one-line “grill me” look like?
- How do you test the line against the original skill?
- What mistakes should you avoid?
- Frequently asked questions
- The bottom line
Some skills are long documents that say something quite simple. Modern models often need far fewer words to do the same thing, and every installed skill adds to every session.
This guide answers one question: how do you replace an AI skill with one line in AGENTS.md without losing what it did? It builds on our Claude skills clean-up guide and the example in Mark Kashef’s video.
What does replacing a skill with one line mean?
It means swapping a whole skill folder for a single sentence in the instruction file your agent reads at the start of every session. AGENTS.md is an open format that Codex and many other agent tools read. Claude Code reads CLAUDE.md, which can point to AGENTS.md if you keep one shared file.
A skill loads its name and description into each session, then the full instructions when a task matches. A single line is always there, so it should be short and clearly worded.
💡 Tip: If you use Claude Code and Codex together, keep shared rules in AGENTS.md and add a line in CLAUDE.md that tells Claude to read it. That way you only maintain one file.
Which skills can become one line?
Skills that describe a habit or a way of working are good candidates. Skills that run code or hold private knowledge are not. Use this table to decide:
| If the skill… | Then… |
|---|---|
| Describes a behaviour (ask questions first, plan before building, summarise at the end) | Try one line in AGENTS.md |
| Repeats general best practice the model already knows | Delete it, or keep one line if you want to nudge the model |
| Runs scripts that must behave the same every time | Keep it as a skill |
| Holds private know-how (your client’s report format, your email style) | Keep it, or move the key points into your memory file |
| Explains an API with no connector | Keep it until an official connector or MCP server exists |
If a skill is useful but only occasionally, there is a third option: store it away and load it on demand. Our sibling guide, How to Load AI Skills Only When You Need Them, Not Every Session, covers that.
How do you replace a skill with one line, step by step?
Summarise, write the line, park the skill, test, then decide. Here is the full routine:
- Pick one habit-style skill you use regularly.
- Ask your AI to summarise it: “In one sentence, what behaviour does this skill add that you would not do by default?”
- Write the line yourself, using plain words and a clear trigger, such as “when…”, “before…” or “if…”.
- Add it to AGENTS.md (or CLAUDE.md) under a short heading, such as “Working habits”.
- Move the skill folder out of the folder your tool loads, into a backup folder.
- Start a fresh session so the old skill is no longer loaded.
- Run the same task twice: once with the line, once with the skill restored in a separate session.
- Compare and decide. Keep the line if it does the job. Delete the backup after a week of normal use.
⚠️ Warning: Do not edit a skill that came with a plugin by hand. A plugin update may bring it back. Disable the plugin instead if you no longer need what it adds.
What does a one-line “grill me” look like?
One sentence that tells the AI to ask clarifying questions before it builds anything unclear. Mark says the “grill me” skill, created by Matt Pocock, is around 330 words. He replaced it with a line along these lines.
Here is our own version you can adapt:
“Before you build or create anything new where my instructions are unclear or missing detail, ask me a short series of questions first, one at a time.”
If you like the style of the original, add a second short sentence, such as “Group the questions into rounds.” Mark’s point is that the depth of questioning came from the model, not the 330 words.
How do you test the line against the original skill?
Give both versions the same real task and compare what they produce, not how it looks. A fair test keeps everything else the same.
- Same model and same settings in both sessions
- Same prompt, copied word for word
- Fresh sessions, so earlier chat does not leak in
- Judge the substance: did both ask the important questions or catch the same gaps?
- Run it two or three times, because AI answers vary
🔎 Unconfirmed / rumour: Mark’s side-by-side test of “grill me” was a single comparison shown in his video. It is a useful example, not a benchmark. Results can differ by model, tool and task, so run your own test before deleting anything.
What mistakes should you avoid?
The biggest mistake is swapping one kind of clutter for another. Watch out for these:
- Turning AGENTS.md into a dumping ground. It loads every session too, so keep each line short and only keep lines you need everywhere.
- Converting skills that run code. A sentence cannot replace a script.
- Duplicating your memory file. If the preference already lives in memory, do not add it again.
- Deleting before testing. Move first, delete later.
- Writing vague lines. “Be thorough” helps less than a clear trigger and action.
For a fuller tidy-up of rules, memory and plugins, see how to audit your Claude and Codex setup.
Want the full picture? Read Claude Skills Clean-Up: Which Skills to Keep, Merge or Delete for the three types of skill worth keeping and how to run a read-only audit.
Frequently asked questions
Does Claude Code read AGENTS.md?
Claude Code reads CLAUDE.md. Many people keep shared rules in AGENTS.md and add a line in CLAUDE.md telling Claude to read it, so both tools follow the same rules.
Will a one-line instruction work as well as a full skill?
For habit-style skills it often does, according to Mark’s test, but not always. Test it on your own tasks before deleting the skill.
How long should an AGENTS.md line be?
One clear sentence with a trigger and an action. If it needs a paragraph, it may be better as a skill.
What if I want the old formatting back?
Add a short second sentence describing it, such as asking for questions in rounds.
Should I delete the original skill straight away?
No. Move it to a backup folder and delete it after a week of normal use without problems.
The bottom line
Many skills are long ways of saying one thing. Write that one thing as a clear line in AGENTS.md, park the skill, and test both on the same task. If the line holds up, you have a lighter setup with nothing lost. Start with one habit-style skill today, then carry on with the rest of the Claude skills clean-up.
Related posts
- Claude Skills Clean-Up: Which Skills to Keep, Merge or Delete
- How to Load AI Skills Only When You Need Them, Not Every Session
- How to Organise Your AI Workspace for Multiple Clients or Businesses
