plugins/hypercore/skills/codex/SKILL.md
[Hyper] Use when the user explicitly wants OpenAI Codex CLI (`codex`) for an isolated session, non-interactive run, code review, or session resume. Trigger phrases: 'use codex', 'ask codex', 'run codex', 'codex exec', 'codex review', 'continue the last codex session', or 'use OpenAI CLI to inspect or fix this repo'.
npx skillsauth add alpoxdev/hypercore codexInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
@rules/routing.md
<output_language>
Default all user-facing deliverables, saved artifacts, reports, plans, generated docs, summaries, handoff notes, commit/message drafts, and validation notes to Korean, even when this canonical skill file is written in English.
Preserve source code identifiers, CLI commands, file paths, schema keys, JSON/YAML field names, API names, package names, proper nouns, and quoted source excerpts in their required or original language.
Use a different language only when the user explicitly requests it, an existing target artifact must stay in another language for consistency, or a machine-readable contract requires exact English tokens. If a localized template or reference exists (for example *.ko.md or *.ko.json), prefer it for user-facing artifacts.
</output_language>
| Parameter | Default |
|-----------|---------|
| Model selection | Use Codex CLI default unless the user explicitly asks for -m / --model |
| Profile | Use CLI default unless the user explicitly asks for -p / --profile |
| Sandbox | --sandbox read-only for analysis, --sandbox workspace-write only when the user asks Codex to edit |
| Approval policy | Interactive mode only — use CLI default unless the user explicitly asks for -a / --ask-for-approval |
| Headless mode | codex exec |
| Resume target | codex exec resume --last for the latest non-interactive run, codex resume --last for the latest interactive session |
Do NOT ask the user for model, profile, or approval policy unless explicitly requested.
Use this skill when the request actually needs Codex CLI or a separate Codex session.
codex CLI itself.Positive triggers:
codex exec and analyze this architecture."codex review against the base branch and list the blocking issues."Negative triggers:
Boundary trigger:
codex CLI involved; otherwise route to research or direct documentation work.Always use the codex exec subcommand for non-interactive Codex runs.
Calling codex "prompt" without a subcommand starts the interactive TUI.
# Non-interactive
codex exec --sandbox read-only "your prompt here"
# Interactive TUI
codex "your prompt here"
codex exec reads the prompt from the argument or stdin and prints the result to stdout when finished.
Read references/recipes.md for concrete command recipes before changing sandbox mode, resuming a session, or adding extra directories.
| Flag | When to use |
|------|-------------|
| --sandbox read-only | General analysis, review, planning, or structured output with no file writes |
| --sandbox workspace-write | Only when the user explicitly wants Codex to modify files in the workspace |
| --sandbox danger-full-access | Only after explicit approval, and only in isolated environments |
| --dangerously-bypass-approvals-and-sandbox | Only after explicit approval, and only in environments that are externally sandboxed |
-a / --ask-for-approval is only available on the top-level interactive codex command, not on codex exec. For non-interactive runs, control safety through --sandbox instead.
| Flag | When to use |
|------|-------------|
| -a untrusted | Interactive only — Codex must escalate to the user for any non-trusted command |
| -a on-request | Interactive only — Codex asks for approval when it decides it needs to |
| -a never | Interactive only — Codex never asks; pair only with a restrictive --sandbox |
When the user does not specify, omit -a and let the CLI default apply.
codex exec --sandbox read-only "your prompt here".-m <model> or -p <profile> only when the user explicitly asks.--json only when the user wants machine-readable JSONL output.--output-schema <FILE> when the user wants the final response to follow a JSON schema.--add-dir <path> when the task needs files outside the launch directory; pair with a writable sandbox only when edits are explicitly requested.-C <dir> / --cd <dir> to set the working root when the user names a different directory.--dangerously-bypass-approvals-and-sandbox.--sandbox workspace-write over bypassing approvals for normal file edits.codex exec resume --last "continue the previous task"
codex exec resume <session-id> "continue with this follow-up"
codex resume --last # interactive picker for the latest TUI session
Use codex exec resume --last for the latest non-interactive run.
Use codex exec resume <session-id> when the user wants a specific session or the latest run is not the right one.
When resuming, keep the existing session behavior unless the user explicitly asks to change the model, profile, sandbox, or approval policy.
Use codex fork --last only when the user wants to branch from the existing session instead of reusing it.
codex review --uncommitted "review the local changes and list blocking issues"
codex review --base main "review this branch against main and summarize risks"
codex review --commit <sha> "review only the changes in this commit"
codex review is read-only by design; do not pair it with --sandbox workspace-write or --dangerously-bypass-approvals-and-sandbox.
codex exec resume --last or codex exec resume <session-id>.Treat Codex as a colleague, not an authority.
command not found: codex: tell the user OpenAI Codex CLI is not installed.codex login or check the configured OpenAI credential path.--sandbox only when the user wants that behavior.codex only): retry with a less restrictive -a only when the user wants that behavior.codex exec resume (without --last) to use the picker, or switch to codex resume --last for the latest interactive session.codex --help or codex exec --help and retry with supported options.--skip-git-repo-check only when the user has accepted that the run will operate without repo guardrails.testing
Use this skill when the user asks to create a GitHub issue and move the current AI session onto its matching branch, or when the user provides an existing GitHub issue number/URL and wants the matching branch checked out without extra confirmation. If invoked with no issue/topic, ask what issue to create. Do not use for commit-only, push-only, PR review, or detached worktree management.
development
Use this skill when the user asks to create or update a project-specific DESIGN.md design system document for AI agents, including visual direction, tokens, components, layout, interaction, motion, and light/dark mode variants from user requests, project UI evidence, or design references. Do not use for README/docs authoring, product requirements, architecture rules, or implementing UI code.
testing
Use this skill when the user asks to create a GitHub issue and move the current AI session onto its matching branch, or when the user provides an existing GitHub issue number/URL and wants the matching branch checked out without extra confirmation. If invoked with no issue/topic, ask what issue to create. Do not use for commit-only, push-only, PR review, or detached worktree management.
development
Use this skill when the user asks to create or update a project-specific DESIGN.md design system document for AI agents, including visual direction, tokens, components, layout, interaction, motion, and light/dark mode variants from user requests, project UI evidence, or design references. Do not use for README/docs authoring, product requirements, architecture rules, or implementing UI code.