WEBVTT

00:00:00.000 --> 00:00:02.640
People keep fighting about which provider is better,

00:00:02.960 --> 00:01:07.230
Code or Codex. A few months ago, Claude Code was everyone's darling. But in the past few weeks, Codex has been emerging and many people have been shifting over. And, honestly, I don't see this trend changing anytime soon, and wouldn't be surprised if in another few weeks, people start flocking back to Cloud Code. But here's the part that nobody's talking about. When it comes to skills, both providers can handle them, but the way they're designed, used, and executed are pretty different. You'll end up having to recycle and recreate skills over and over again. So the point of this video is to equip you with one single skill that you can use as a universal adapter to convert a Cloud Code skill to a Codec skill and vice versa. So by the end of this video, I'm gonna give you a skill and slash command that you can use to maintain your nimbleness in this ever changing space. If that sounds interesting, then let's jump in. So our goal here is very simple. We wanna be able to create and convert any skill to have it work in both Codex and Claude code at the same time. So it should look something like this, where you can go into Claude code right here, then enter something like Polyskill,

00:01:07.230 --> 00:01:10.990
which is the name of our skill that I'll be giving you today, which will be our main converter.

00:01:11.405 --> 00:01:16.125
If you pop into Codex through the CLI as well, you'll be able to see it here as well.

00:01:16.525 --> 00:01:29.120
And then if you wanna be able to use it through Claude desktop or you wanna use it through the Codex app, then if you pop over there, you should be able to see this here as well. And the best part of this is that if you have the right skill and process,

00:01:29.360 --> 00:01:41.120
this is as simple as just executing the exact same skill in two different folders and making sure it shows up and renders correctly. Now although the overall concept of a skill is the same between OpenAI and Anthropic,

00:01:41.435 --> 00:01:45.035
when it comes to the mechanics and nuts and bolts, there are some nuances.

00:01:45.195 --> 00:02:00.480
So in Claude code, you can do something more nuanced where you can actually drop a terminal command in the middle of a skill and it will know how and when to execute it. While you can execute something similar in codex, it wouldn't be in the exact same way from a structure standpoint. And when it comes to codex specifically,

00:02:00.720 --> 00:02:04.160
it has this cap on reading all the descriptions of skills

00:02:04.240 --> 00:02:14.365
where if you have too many skills, at some point, it might not read the description at all of a particular skill or it will get cut off. So imagine you have a description where you set the context

00:02:14.445 --> 00:02:44.275
of when to use the skill, but all of your triggers are at the very end, it might not ever see them. Whereas in Claude Code, it will ram all your descriptions as is as long as they're below a certain character limit within the context window as soon as you start a new session. And on the codec side, we have an extra configuration file that's called a sidecar or another YAML file where it can have more details on what tools and services it should be able to connect to from that particular skill, and this is something that's not present in Cloud Code.

00:02:44.515 --> 00:02:45.875
So you have two choices.

00:02:46.115 --> 00:02:59.390
Either you constantly maintain and manually convert every single time you wanna do the equivalent of moving houses from OpenAI to Codex, or you do all the work once, get the leverage you need, and use one skill called Polyskill

00:02:59.390 --> 00:03:32.770
to take care of everything for you. And by the way, if you like the way I teach and you want access to all of my exclusive content along with our Claude Code Living course where we add one new module every single week that you'll never see on YouTube, then you wanna check out the first link down below from my early adopters community. If you wanna be able to audit what courses exist and what's coming next, we have a link on our about page that you can check out to make sure it's the right decision for you. Alright. Back to the video. But before we jump into the nitty gritty, just in case you're not as familiar with skills or you don't know all of the core components that can comprise a skill, here's your quick TLDR.

00:03:32.850 --> 00:03:42.525
So the anatomy of an average agent skill looks like this. You have a skill MD, then you have the name and description in Claude Code. For example, the name is in what's called kebab case.

00:03:42.685 --> 00:03:47.725
This has your markdown body walking through all the terminal commands, all the context,

00:03:47.805 --> 00:03:49.325
all the order of operations,

00:03:49.565 --> 00:03:51.405
and then you have this section that's called scripts.

00:03:51.750 --> 00:04:13.445
And in scripts, can have some Python scripts that Claude code uses or executes to get the job done. And then you can have some additional reference files and additional assets that the skill can refer to, and all you'd have to do is just specify this within the skill body itself. When it comes to the cross section of a Claude code skill, it looks like this. So you have the name, description,

00:04:13.685 --> 00:04:17.285
which tools are allowed, so which bash commands can execute

00:04:17.285 --> 00:04:28.910
using this skill, and at the same time, you can make sure that it needs to ask you permission every single time it uses a skill or whether it should use it automatically. And this is the cross section of a Claude code skill.

00:04:29.070 --> 00:04:40.705
So if we zoom in, we have the name, we have the description, which tools, batch commands are allowed to be executed by the skill, and then we have this additional field that's called disable model invocation,

00:04:40.705 --> 00:04:43.745
which means do you want the skill to run autonomously

00:04:43.745 --> 00:05:15.270
based on Claude Codes' judgment, or do you want it to elicit your approval every single time? And then in the body, like we said, we have this thing that's called dynamic injection and this is the equivalent of being able to run a specific slash command. Now the technical term for this is this exclamation mark is called a bang and this is called a backtick. So a backtick bang is how it would see this terminal command and execute it by proxy. And codexes looks very similar. So if we zoom into here, again, we have name, we have description

00:05:15.350 --> 00:05:25.590
where ideally it's better for you to add the trigger at the very beginning so you don't run into that memory issue we mentioned before. And then we have the short description, but notice how it's under the heading metadata.

00:05:25.665 --> 00:05:30.865
So this is where the short description goes. And then we have this complimentary file, again called the sidecar

00:05:30.865 --> 00:05:35.745
or configuration YAML file that will include things like how it should be displayed

00:05:35.905 --> 00:05:44.650
in the interface of the Codex app, which icon it should be represented by, the default prompt, any form of dependencies on tools, any policies,

00:05:44.810 --> 00:05:46.490
same thing on the invocation,

00:05:46.490 --> 00:05:48.890
but again, it's under a policy heading, etcetera.

00:05:49.130 --> 00:06:00.865
So both are functionally able of very similar things, but there are nuances that would have one skill misfire in the other provider. So now that we're on the same page, this is how my Poly skill works.

00:06:01.105 --> 00:06:05.425
We have a definition dot markdown file and this is where it identifies

00:06:05.505 --> 00:06:36.785
what the skill you're trying to convert looks like, and then it understands how it should be activated and how it should differentiate its body to work for both Claude as well as Codex and create this YAML file if needed for the Codex skill version. And you can think of my skill again as a form of adapter. This is a universal travel adapter, just as an analogy. And behind the scenes, you pretty much have three core pieces. The first piece is what I call the shared structure. It's basically a neutral version of what each skill needs to be irrespective of the specifics of the structure and syntax.

00:06:37.120 --> 00:06:39.120
The second piece are the adapters.

00:06:39.360 --> 00:06:41.280
You can think of them like cartridges.

00:06:41.520 --> 00:06:50.640
If you plug a cartridge in, that tool is now supported by that skill. And if you pull it out, it's no longer available. And the third piece is just the CLI, command line interface.

00:06:51.035 --> 00:07:24.605
If you wanna add multiple tools to both providers, then it's as simple as a natural language command. So by some miracle, if Gemini becomes competitive enough to something like Codex or Cloud Code in the near future, and you wanna be able to add this functionality to the adapter, it wouldn't be that hard. All you'd have to do is use your provider of choice to analyze the structure of a Gemini skill, look for the schema, and then find a way to basically abide by it and convert to all three different outputs. I've designed it to be as plug and play as possible. So all you have to do is bring the skill and the associated assets

00:07:24.605 --> 00:08:11.050
to the specific skills folder for that particular provider. And once that's done, all you'll have to do is write Polyskill install, and in stage two, you'll officially be able to tap into both run times of both tools. And stage three is as simple as writing Polyskill and saying convert my insert name of specific skill here. And in codex, it would be the dollar sign if you're using the CLI instead of the slash command. All we'd have to do is put the skill in a brand new folder, do Polyskill install like I said. It will build the skill, then install the skill for both providers, and this little squiggly line, this tilde, just means that it's installed globally at the Cloud level and the dot agents level, which is specific to Codex. Then once we have that and scroll down, you could send a prompt as simple as this. So I could do slash Polyskill,

00:08:11.050 --> 00:08:24.425
and then this is the name of a skill that I have that basically analyzes YouTube content from other competitors. Then I just tell it go and convert this to work with Codex. If we go to the very bottom here, you'll see it does a full repackaging

00:08:24.505 --> 00:08:35.400
of this skill to work in both areas and then as soon as it says that it's landed, then you can navigate to something like the Codex app, go on the three dots right here, click on refresh,

00:08:35.400 --> 00:08:50.145
and then you'll be able to see at the very bottom this y compare skill waiting to be used. So let's say you wanna take another skill like the native front end design skill from Cloud Code, we could do the exact same process. I'll go here. I'll do Polyskill

00:08:50.145 --> 00:08:51.265
once more,

00:08:51.665 --> 00:08:54.545
and then I'll say convert the front end

00:08:55.185 --> 00:08:56.465
design skill

00:08:56.945 --> 00:08:57.825
to

00:08:57.905 --> 00:08:58.465
Codecs.

00:08:59.230 --> 00:09:02.030
And then it should be able to go look for the configuration,

00:09:02.270 --> 00:09:13.725
look at how it works down to the nth degree, and then replicate that same functionality to work in codecs as well. And I didn't have to pause the video for long and it finished in under ten seconds. So theoretically,

00:09:13.885 --> 00:09:24.205
all these assets should be installed. If we go into Codecs, you can see right here, we can't see it off the cuff. But if we do a double click here, we do a refresh,

00:09:24.610 --> 00:09:31.890
and we go to the very bottom, we should be able to see, there we go, the front end design skill. It's as easy as doing try and chat,

00:09:32.370 --> 00:09:59.370
using it, building whatever you want, and now you have this two way communication between Codex and Cloud Code. You'd have the identical experience in the Codex app where if you use dollar sign Polyskill and you tell it to use one of the Codex native skills, you can bring this to Cloud Code in under a minute and pretty much you can see right here it imported this agent email inbox skill. If we pop into our terminal and we slash clear and we do something like agent

00:09:59.450 --> 00:10:03.690
inbox, let's do actually slash agent inbox, agent inbox,

00:10:03.770 --> 00:10:11.085
you could see it right here. And the best part of this process is because you can do this seamless two way communication and two way conversion,

00:10:11.325 --> 00:10:17.965
anytime you bring any skill in, it could be from Cursor, it could be from Gemini, you could say, want you to take said skill,

00:10:18.205 --> 00:10:29.090
adapt it, and disseminate it to both providers so I can use it turnkey out of the box. And that's really it. So we focused on skills, but this could be extended to focus on things like rules,

00:10:29.090 --> 00:10:29.890
hooks,

00:10:30.050 --> 00:10:37.490
different parts of both systems that you wanna keep in sync at all times so you have the full freedom to go to GPT 5.7

00:10:37.490 --> 00:10:48.735
or OPUS five or whatever new model comes out that everyone will side with for a temporary short of time. And this will keep you nimble so that when the day comes and you have codec six or Opus 5.5,

00:10:48.895 --> 00:11:23.351
you can switch to the model where you feel that your workflow executes the best. And like I said, you'll be able to grab this entire skill in the second link down below, and you'll be able to adapt it for your specific use cases. But if you wanna be able to access my ongoing updates to this skill along with everything else I maintain for my exclusive community, including our living course where I keep adding brand new modules you'll never see on YouTube, then check the first link down below, and maybe I'll see you in my early adopters community. For the rest of you, if you found this helpful, if you found it novel, then please let me know by leaving a like on the video and a comment if you so choose, and I'll see you in the next one.
