Skip to content
Back to skills

Codex Pr Lessons

ASecurity

Phases of the codex-pr-lessons playbook (plan, critic, threshold, distill) — learn from closed openai/codex PRs and distill contribution patterns

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 28, 2026
development

Works with

  • cursor

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned November 28, 2026

npx -y skills add kookr-ai/kookr --skill codex-pr-lessons --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Codex Pr Lessons?

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

Security grade badge for Codex Pr Lessons
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kookr-ai-codex-pr-lessons/badge)](https://www.skillsdirectory.com/skills/kookr-ai-codex-pr-lessons)

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-pr-lessons
group: codex-pr-lessons
description: Phases of the codex-pr-lessons playbook (plan, critic, threshold, distill) — learn from closed openai/codex PRs and distill contribution patterns
keywords: codex, pr, lessons, plan, critic, threshold, distill, batch, patterns
related: [pr-contribution-excellence]
---

# Codex PR lessons

The `codex-pr-lessons` playbook studies closed pull requests in `openai/codex`, five at a time, records what each one teaches, and distills the notes into contribution patterns once enough have piled up. This skill holds the instructions for each phase of that loop.

Read only the file for the phase you are running.

| Phase | When it runs | Read |
|---|---|---|
| Plan | At the start of each iteration: load state, pick the next batch of 5 PRs | [references/plan.md](references/plan.md) |
| Critic | For each PR in the batch: read it in full and record its quality signals | [references/critic.md](references/critic.md) |
| Threshold | After the batch is recorded: decide whether to distill (`DISTILL` or `SKIP`) | [references/threshold.md](references/threshold.md) |
| Distill | Only when the threshold phase returns `DISTILL`: compress raw notes into patterns | [references/distill.md](references/distill.md) |

The record phase between critic and threshold (append the observations, update `state.json`) is a separate project skill in the Kookr repository, `kookr-codex-pr-state`.

## Shared state

All phases read and write the same files, which live outside any repository so every worktree sees them:

- `~/.claude/codex-pr-lessons/state.json`: processed and skipped PR numbers, pagination cursor, totals. Read it first, write it last.
- `~/.claude/codex-pr-lessons/learnings-raw.md`: per-PR observations, appended each batch and reset after a distillation.
- `~/.claude/codex-pr-lessons/learnings-distilled.md`: the distillation log.
- `~/.claude/skills/pr-contribution-excellence/`: where distilled patterns land (general rules in `SKILL.md`, codex-specific ones in `repo/openai-codex.md`).

Files in this skill

  • SKILL.md2 KB
  • references/critic.md5.5 KB
  • references/distill.md6.5 KB
  • references/plan.md2.6 KB
  • references/threshold.md2.1 KB

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.

View all in development →

Comments

Loading comments…

Newsletter

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