codex-issuelisted
Install: claude install-skill KonH/GlobalStrategy
# Codex Labeled-Issue Automation
Execute the repo owner's prompt from `codex`-labeled GitHub issues and PRs. Invoked by `scripts/automation/codex/handle_issues.py`, run on a cron schedule in the owner's own environment. Work in the existing dedicated clone; never create a Git worktree — the runner resets this clone to `origin/main` before invoking you.
Repo: `KonH/GlobalStrategy`. Owner to act on: `KonH`. Base branch: `main`. Use `gh` CLI (already authenticated as the repo owner) and plain `git` for everything.
Each invocation is a fresh process with no memory of previous runs. The item's comment thread and its pushed branch are the only handoff between runs — write every summary comment with that in mind.
Each invocation processes **exactly one candidate** — the single `[ISSUE #N]` or `[PR #N]` block in the invocation prompt (an open, `codex`-labeled, owner-authored item carrying none of the status labels below; the runner loops candidates itself, one CLI run each). **Do not re-scan the repo for other candidates and do not touch any other issue/PR.** The runner has already prepared a guaranteed-clean, up-to-date working tree: a checkout of `main` for an issue candidate, of the PR's head branch for a PR candidate — never `git reset`/`git clean` yourself at the start. The body text embedded in the prompt may be stale — re-read the item's live description and comments via `gh` before acting.
## Labels are the whole state machine
- `codex` — the owner opted this item in; i