Skip to content
Back to skills

Codex Cancel

ASecurity

Cancel an active background Codex job.

  • 52 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 27, 2026
data-aigobashgit

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add LeeJuOh/claude-code-zero --skill codex-cancel --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Codex Cancel?

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

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

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-cancel
description: "Cancel an active background Codex job."
disable-model-invocation: true
argument-hint: "[job-id]"
allowed-tools: ["Bash(${CLAUDE_PLUGIN_ROOT}/scripts/*)"]
---

# Codex Job Cancel

Pass-through wrapper around the Official Codex companion's `cancel` subcommand. Exists so users who disabled the Official plugin's slash commands can still cancel jobs via codex-advisor.

## Invoke companion cancel

**Arguments:** pass on only a job id (like `task-mf3k2a-x7q1zp`, or a unique start of one), quoted. If the user asked in words ("stop the running job"), run with no arguments. The script refuses anything else, because the companion reads a stray word as a job id and fails with `No job found`.

```bash
"${CLAUDE_PLUGIN_ROOT}/scripts/codex-job.sh" cancel <filtered arguments>
```

Relay the companion's output verbatim.

## Gotchas

- **Cancellation is not instant.** The companion signals the Codex worker; in-flight tool calls may complete before the worker exits. Don't promise "stopped immediately".
- **Cancelling a rescue job does NOT revert the diff.** If Codex already wrote files under `--write`, those changes stay on disk. Remind the user to `git diff` / `git restore` if needed.

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

Comments

Loading comments…

Newsletter

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