Skip to content
Back to skills

Codex Patches

ASecurity

Use this when updating the codex submodule or when patch files in codex-patches/ need to be added, regenerated, or repaired.

  • 666 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 8, 2026
toolsbashgit

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill codex-patches --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Codex Patches?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Codex Patches
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-codex-patches/badge)](https://www.skillsdirectory.com/skills/majiayu000-codex-patches)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: codex-patches
description: Use this when updating the codex submodule or when patch files in codex-patches/ need to be added, regenerated, or repaired.
---

# Codex Patch Workflow

Use this skill whenever you touch the codex submodule (`codex/`) or the patch series in `codex-patches/`.

## Apply Patches After Submodule Update

1. Update the codex submodule to the target commit:

```bash
cd codex
git checkout <commit>
cd ..
```

2. Apply our patches:

```bash
scripts/apply_codex_patches.sh
```

If a patch fails, fix only that patch before moving on.

## Repairing a Broken Patch

General approach:

1. Rehydrate `codex/` to clean upstream before re‑diffing:

```bash
git archive codex-upstream/main | tar -x -C codex
```

2. Re‑apply the remaining patches that still work. Fix conflicts manually if needed.
3. Regenerate the broken patch by diffing the upstream file(s) against our modified version.

### Regenerating a Patch (stable diff style)

Prefer diffs against the upstream tree to reduce context drift. For the full example script, see `references/regen_patch_example.md`.

### Patch Hygiene

- Keep each patch focused on a single feature or concern.
- Avoid bundling unrelated changes into the same patch.
- Do not include upstream-only changes; patches should be fork-only deltas.

## Quick Smoke Test

After applying patches, run:

```bash
turbo lint
turbo typecheck
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.