use-cases/reusable-codex-skills.md +100 −0 added
1---
2name: Save workflows as skills
3tagline: Create a skill Codex can keep on hand for work you repeat.
4summary: Turn a working Codex thread, review rules, test commands, release
5 checklists, design conventions, writing examples, or repo-specific scripts
6 into a skill Codex can use in future threads.
7skills:
8 - token: $skill-creator
9 url: https://github.com/openai/skills/tree/main/skills/.system/skill-creator
10 description: Gather information about the workflow, scaffold a skill, keep the
11 main instructions short, and validate the result.
12bestFor:
13 - Codified workflows you want Codex to use again.
14 - Teams that want a reusable skill instead of a long prompt pasted into every
15 thread.
16starterPrompt:
17 title: Create a Skill From My Context
18 body: >-
19 Use $skill-creator to create a Codex skill that [fixes failing Buildkite
20 checks on a GitHub PR / turns PR notes into inline review comments / writes
21 our release notes from merged PRs]
22
23
24 Use these sources when creating the skill:
25
26 - Working example: [say "use this thread," link a merged PR, or paste a good
27 Codex answer]
28
29 - Source: [paste a Slack thread, PR review link, runbook URL, docs URL, or
30 ticket]
31
32 - Repo: [repo path, if this skill depends on one repo]
33
34 - Scripts or commands to reuse: [test command], [preview command],
35 [log-fetch script], [release command]
36
37 - Good output: [paste the Slack update, changelog entry, review comment,
38 ticket, or final answer you want future threads to match]
39relatedLinks:
40 - label: Agent skills
41 url: /codex/skills
42---
43
44## Create a skill Codex can keep on hand
45
46Use skills to give Codex reusable instructions, resources, and scripts for work you repeat. A [skill](https://developers.openai.com/codex/skills) can preserve the thread, doc, command, or example that made Codex useful the first time.
47
48Start with one working example: a Codex thread that cherry-picked a PR, a release checklist from Notion, a set of useful PR comments, or a Slack thread explaining a launch process.
49
50## How to use
51
52
53
541. Add the context you want Codex to use.
55
56 Stay in the Codex thread you want to preserve, paste the Slack thread or docs link, and add the rule, command, or example Codex should remember.
57
582. Run the starter prompt.
59
60 The prompt names the skill you want, then gives `$skill-creator` the thread, doc, PR, command, or output to preserve.
61
623. Let Codex create and validate the skill.
63
64 The result should define the `$skill-name`, describe when it should trigger, and keep reusable instructions in the right place.
65
66 Skills in `~/.codex/skills` are available from any repo. Skills in the current repo can be committed so teammates can use them too.
67
684. Use the skill, then update it from the thread.
69
70 Invoke the new `$skill-name` on the next PR, alert, review, release note, or design task. If it uses the wrong test command, misses a review rule, skips a runbook step, or writes a draft you would not send, ask Codex to add that correction to the skill.
71
72
73
74## Provide source material
75
76Give `$skill-creator` the material that explains how the skill should work.
77
78| What you have | What to add |
79| ------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
80| **A workflow from a Codex thread that you want to preserve** | Stay in that thread and say `use this thread`. Codex can use the conversation, commands, edits, and feedback from that thread as the starting point. |
81| **Docs or a runbook** | Paste the release checklist, link the incident-response runbook, attach the API PDF, or point Codex at the markdown guide in your repo. |
82| **Team conversation** | Paste the Slack thread where someone explained an alert, link the PR review with frontend rules, or attach the support conversation that explains the customer problem. |
83| **Scripts or commands the skill should reuse** | Add the test command, preview command, release script, log-fetch script, or local helper command you want future Codex threads to run. |
84| **A good result** | Add the merged PR, final changelog entry, accepted launch note, resolved ticket, before/after screenshot, or final Codex answer you want future threads to match. |
85
86If the source is in Slack, Linear, GitHub, Notion, or Sentry, connect that tool in Codex with a [plugin](https://developers.openai.com/codex/plugins), mention it in the starter prompt, or paste the relevant part into the thread.
87
88## What Codex creates
89
90Most skills start as a `SKILL.md` file. `$skill-creator` can add longer references, scripts, or assets when the workflow needs them.
91
92## Skills you could create
93
94Use the same pattern when future threads should read the same runbook, run the same CLI, follow the same review rubric, write the same team update, or QA the same browser flow. For example:
95
96- **`$buildkite-fix-ci`** downloads failed job logs, diagnoses the error, and proposes the smallest code fix.
97- **`$fix-merge-conflicts`** checks out a GitHub PR, updates it against the base branch, resolves conflicts, and returns the exact push command.
98- **`$frontend-skill`** keeps Codex close to your UI taste, existing components, screenshot QA loop, asset choices, and browser polish pass.
99- **`$pr-review-comments`** turns review notes into concise inline comments with the right tone and GitHub links.
100- **`$web-game-prototyper`** scopes the first playable loop, chooses assets, tunes game feel, captures screenshots, and polishes in the browser.