Skip to content
Back to skills

Codex Fix Pr

ASecurity

Diagnose failing pull request checks, reproduce them locally, make focused fixes, commit them through codex-commit, and refresh the published description when needed. Use whenever a pull request is red, the user asks Codex to fix CI, or codex-watch-pr reports failures.

  • 121 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 13, 2026
ai-agentsbash

Security analysis

A100/100

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

Scanned November 9, 2026

npx -y skills add tbhb/vale-ai-tells --skill codex-fix-pr --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Codex Fix Pr?

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

Security grade badge for Codex Fix Pr
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tbhb-codex-fix-pr/badge)](https://www.skillsdirectory.com/skills/tbhb-codex-fix-pr)

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-fix-pr
description: >-
  Diagnose failing pull request checks, reproduce them locally, make focused fixes, commit them through codex-commit, and refresh the published description when needed. Use whenever a pull request is red, the user asks Codex to fix CI, or codex-watch-pr reports failures.
---

# Fix a failing pull request

Use `update_plan` for diagnosis, reproduction, fix, commit, description refresh, and push. The argument may specify a pull request and the chosen commit strategy.

## Diagnose and reproduce

Run once:

```bash
bash .agents/skills/codex-fix-pr/scripts/diagnose.sh <number>
```

Stop if the checkout differs from the commit CI tested. For each failure, run the mapped local task before editing. If it passes, inspect the workflow for an environment mismatch, flake, incomplete task mapping, or stale base. Use `codex-rebase` when the failing combined tree doesn't exist locally.

Fix only the cause. Don't weaken a rule, exclusion, or threshold without user approval. Re-run the reproducer until it passes.

## Choose and commit the fix

Honor a strategy supplied by `codex-pr`. Otherwise, in Default mode ask in the final response whether to create a separate commit or amend and force-push. Don't commit in that turn. After confirmation, invoke `codex-commit`. For an amendment, ensure its independent message review sees the complete amended commit.

## Refresh the description when material

Rebuild the local draft:

```bash
bash .agents/skills/codex-fix-pr/scripts/populate-description.sh <number>
```

If the fix changes what readers need to know, delegate revision to `codex-write-pr-description`, then delegate a fresh review to `codex-review-pr-description`. Bound findings at three rounds. The reviewer records the digest after a successful review. Update the pull request only through:

```bash
bash .agents/skills/codex-pr/scripts/create-pr.sh
```

Skip redrafting when the existing description remains accurate, and state that judgment.

## Push and continue

Push a separate commit normally. Push an amendment with `--force-with-lease`, never bare `--force`. Report the failed check, cause, fix, and new run. If asked to see CI through, use `codex-watch-pr` and repeat. Stop after three failed rounds on the same check and report each attempt.

Files in this skill

  • SKILL.md2.2 KB
  • scripts/diagnose.sh6.3 KB
  • scripts/populate-description.sh3.7 KB
  • tokens.json548 B

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 ai-agents →

Comments

Loading comments…

Newsletter

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