Teach the AI Your Workflow for More Consistent Results
If you want to get the most out of AI agents, one mechanism worth learning is the “skill.”
When you repeat the same task, a skill lets you teach the AI the steps in advance.
In this article, we cover the idea behind skills and then use Codex to compare results with and without one.
The test case is converting only the drums in a full mix—with guitar, bass, and vocals—into MIDI for each kit piece.
Here are the three key points of this article.
- A skill is a set of instructions that bundles the steps of a task with the tools to use
- Using a skill makes a big difference in the accuracy of drum-to-MIDI conversion
- You can update a skill with the steps that worked and keep improving it
Video
Audio Samples
How much does a skill change the result of converting drums to MIDI?
First, listen to and compare the MIDI created from the same full mix.
We will look at why the results differ, along with how skills work, in the sections below.
What Is a Skill?
A skill is a set of work instructions you hand to the AI.
The idea is the same as teaching a new hire at a bar how the place makes its drinks.
There are many ways to pour a beer, but once you decide “this is how we pour it here” and have everyone follow it, the result is the same no matter who pours.
A skill works the same way: you decide the order and content of the work, and the AI follows it.
The contents are written in plain text.
The Difference With and Without a Skill
The more complex the task, the bigger the difference a skill makes.
For example, if you simply hand over a task like fixing a chord progression based on music theory, the AI works out the processing steps on its own.
As a result, you get results you did not expect, the quality does not improve despite the time spent, or the result is different every time.
Deciding the order and content of the work yourself leads to higher accuracy.
It helps to think of a skill as a written record of what you learned when trial and error finally worked.
Once you hand over a skill, even a rough request returns the result you were aiming for, which makes the work much easier.
Because a skill is just text, anyone can prepare one once the goal is clear.
You Can Also Specify the Tools
A skill can include not only the steps of the task but also the tools to use.
AI agents use tools such as web search to accomplish their goals.
For example, when splitting audio into stems before converting it to MIDI, the agent itself has no ability to separate the audio.
So it calls an external stem separation tool behind the scenes, passes it the audio, and returns the resulting files.
Being able to say “use this stem separation tool” in advance is another role of a skill.
Think of a skill as a package of instructions and tools.
The More Detail You Write, the Closer It Gets to Your Own Way of Working
Standards for what is good differ from person to person, so a skill reflects the judgment and habits of whoever wrote it.
In composition, for example, if you keep adding instructions such as “after this chord, this kind of chord works well,” it becomes easier to reproduce chord progressions that sound like you.
The more detailed and in-depth the instructions, the more specific the results.
A longer skill is not necessarily a better one.
If you hand over a huge set of instructions at once, not all of it may be reflected.
Processing can also become slow or steps can be skipped, so the ideal is a lean skill refined through trial and error.
Converting Drums to MIDI Without a Skill
The task we test is converting the drums in a full mix to MIDI.
The source material is a full mix with guitar, bass, and vocals.
From it, we extract only the drums and turn them into MIDI for each kit piece, such as kick and snare.
It is a complex task, but we start by simply asking Codex with no skill installed.
Hand Over the Audio and the Request
Attach the audio file and send the request.

Without a skill, the agent starts by searching for the analysis tools itself.
Search results vary somewhat, and it may pick whatever ranks near the top at that moment.
When the tool changes, the result changes too—that is the risk.
Check the Result
Processing took about 6 minutes and 40 seconds.
It output MIDI split into cymbals, hi-hat, kick, snare, and toms.
We load the output MIDI into Cubase and compare it with the original drum MIDI from when the song was made.

It captured more than we expected, but some issues remained: hi-hats had turned into ride cymbals, and crash cymbals were missing.
The dynamics are also on the small side.
Fixing things by hand afterward defeats much of the purpose of automating, so ideally the result comes out as intended in one pass.
Installing a Skill
This is where a skill that spells out the work steps becomes important.
This time, we use a drum-to-MIDI skill that Sleepfreaks instructor Miyakawa uses regularly.

With a skill, you do not have to write it from scratch.
Repeat the work while asking for corrections, and once you are happy with the result, ask the AI to “register the best combination so far as a skill,” and it will put it together for you.
Install the Skill
You can install the skill by having Codex read the skill folder.

Depending on your environment, permission restrictions may prevent writing, and Codex may show a command to run in PowerShell instead.
PowerShell is a Windows app; you can install the skill simply by pasting in the displayed command and running it.



If “Installed” appears, it worked.
The installed skill becomes available when you open a new chat.
The unfamiliar screen may be confusing, but all you do is copy and paste.
Check the Installed Skill
You can check the contents of an installed skill from the settings.



It describes the whole flow, from the separation and transcription steps to the final stage of adding dynamics and the conditions for completion.
Retesting the Same Audio With the Skill
We hand over the same audio as before, this time having Codex process it with the skill.

You can pick the skill from the list that appears when you type “/”, but as shown here, simply describing it in everyday words is enough for it to be used.
Compare the Results
With the skill, processing took longer than without it.
We line up the finished MIDI next to the result made without the skill and compare them.

With the skill, the hi-hat misdetection was fixed, and crash cymbals were detected as well.
Velocity (dynamics) is applied properly, and even the fine tom movements are captured.
Accuracy improved because the skill includes a step that checks the MIDI against the original audio after it is output.
That takes extra time, but accuracy improves greatly.
With this much difference in the result, a skill is well worth preparing.
Skills Can Grow
A skill is not something you make once and leave; you can keep improving it as you use it.
If something does not work well on a new song, fix it and then ask the AI to “update the skill with the pattern that worked.”
You can also save it as a separate skill; if you split skills by purpose, such as music production and video editing, accuracy improves the more specialized each one is.
When you have a well-made skill, it is also worth asking the AI to explain what it does inside.
Doing so deepens your own knowledge and helps you level up.
Download the Skill Used in This Article
You can download the drum-to-MIDI skill used in this article here.
If you find yourself repeating the same task again and again, give skills a try.
NEW ARTICLES
Latest English Articles






















