From the course: OpenAI Codex 101: From Idea to Deployed App
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Teach Codex reusable skills - OpenAI Codex Tutorial
From the course: OpenAI Codex 101: From Idea to Deployed App
Teach Codex reusable skills
Throughout this course, you've been giving Codex instructions one prompt at a time. Your agents.md handles project-level contexts, each prompt handles a specific task. But some tasks should happen every time you make a change. Updating your project's README is a good example. Right now, your README is the default file GitHub generated when you created the repo. Every feature you've added so far is undocumented. Instead of remembering to ask Codex to update the README after every change, you can package that instruction into a skill. A skill is a set of reusable instructions that Codex loads automatically when a task matches its description. A skill is just a folder with a skill.nd markdown file. It lives inside your repo in a folder called codecs slash skills. The skill md file has two parts, metadata at the top that tells Codecs when to use the skill and instructions below that tell Codecs what to do. You can also add an optional OpenAI.yaml file for display settings. Let's have…