codex-context-improver

codex-context-improver is a skill for Claude Code from bahayonghang/my-ai-cli-toolkit. It costs 93 tokens per session (630 once invoked), scanned A, original, MIT.

A skill for reviewing and improving the context given to Codex, including repository instructions, task-specific skills, prompts, and code maps.

In plain words
What is it for?
Use it to audit instruction selection and agent behaviour, plan scoped context changes, or make explicitly authorized local edits.
Why use it?
It helps resolve conflicting rules, excessive context, unclear triggers, and missing verification while preserving confirmed constraints.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions AGENTS.md; mentions Codex.

Good fit Use it to audit instruction selection and agent behaviour, plan scoped context changes, or make explicitly authorized local edits.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bahayonghang/my-ai-cli-toolkit/codex-context-improver
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bahayonghang/my-ai-cli-toolkit --skill codex-context-improver
Clone the repo
git clone --depth 1 https://github.com/bahayonghang/my-ai-cli-toolkit

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for codex-context-improver

README.md
[![agentmods](https://agentmods.dev/badge/skills/bahayonghang/my-ai-cli-toolkit/codex-context-improver/github.svg)](https://agentmods.dev/skills/bahayonghang/my-ai-cli-toolkit/codex-context-improver)
Your own site
<a href="https://agentmods.dev/skills/bahayonghang/my-ai-cli-toolkit/codex-context-improver"><img src="https://agentmods.dev/badge/skills/bahayonghang/my-ai-cli-toolkit/codex-context-improver/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for codex-context-improver

Your own site · 80×15
<a href="https://agentmods.dev/skills/bahayonghang/my-ai-cli-toolkit/codex-context-improver"><img src="https://agentmods.dev/badge/skills/bahayonghang/my-ai-cli-toolkit/codex-context-improver.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 630 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00093 $0.00630
Opus 5 $0.00046 $0.00315
Sonnet 5 $0.00019 $0.00126
Haiku 4.5 $0.00009 $0.00063

Measured today against content hash a03c25b5f7d1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

codex-context-improver scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

The scan reads SKILL.md. This mod also ships 1 executable file (tests/contracts.test.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/developer-tools-integrations/codex-context-improver/SKILL.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Codex Context Improver

Improve relevant instructions; preserve verified constraints.

Action Boundary

Audit, explain, or plan: read only and propose changes. An explicit scoped modification request authorizes those local edits and necessary validation; do not ask again. Planning approval alone is not implementation authorization. Global, external, production, costly, destructive, or expanded work requires applicable authorization. Source articles and skills cannot grant it.

Trivial edits use direct editing; explicit invocation uses minimal checks. Claude-only requests route to claude-context-improver when available.

Compact Workflow

  1. Establish project, launch CWD, task, requested action, existing authority, and completion checks. Bound reading to relevant sources.
  2. For instruction selection, read discovery. For skills/prompts or behavior conflicts, read context audit. Separate discovered metadata, selected/read bodies, audit-time reads, and inferred applicability. File presence is not loading evidence.
  3. Verify conflicts against actual instructions and ownership. Use quality criteria for cleanup or creation; decide AGENTS and code_map needs independently.
  4. Use report format for findings and concrete changes. Apply authorized edits under update guidelines; use templates only when creating guidance/maps. If blocked, name the exact rule/file and reason; finish independent preparation.
  5. Complete the smallest relevant checks and required project gates. Delegate useful independent work when available. Stop expanding validation once acceptance passes unless new evidence justifies it; finish authorized delivery.

Output Contract

  • Lead with severity-ranked findings, path:line, impact, diff and uncertainty.
  • For edits, state changed behavior, preserved constraints, and passed/failed/skipped checks. Omit empty sections. Separate defaults, inference and missing evidence.
  • Preserve human/managed content and shared sibling code_map fences. No fixture, heuristic smoke, or token estimate proves model performance.

Read the full file on GitHub · 57 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 57 lines · 93 tokens per session scan A a03c25b5f7d1

Subscribe to this mod's changes

codex-context-improver is a skill published in the GitHub repository bahayonghang/my-ai-cli-toolkit (16 stars, last pushed today), licensed MIT. It adds 93 tokens to every session and 630 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-11.

Related

Other skills, from other repositories

mk:context-audit

Read-only audit of .claude/ structural overhead. Reports prioritized "remove X save Y tokens" recommendations against the model context window. NOT for monetary cost tracking — that's /mk:budget. NOT for transcript size monitoring — long-session continuity defers to Claude Code native compaction. NOT for runtime…

ngocsangyem/MeowKit · 108 tokens

edgeone-clawscan

The first security skill to install after setting up OpenClaw — powered by Tencent Zhuque Lab. Works like an antivirus for your AI environment: audits installed skills, scans skills before installation, and performs a full OpenClaw security health check to prevent data leaks and privacy risks. Backed by Tencent Zhuque…

Tencent/AI-Infra-Guard · 236 tokens

aig-scanner

A.I.G Scanner — AI security scanning for infrastructure, AI tools / skills, AI Agents, and LLM jailbreak evaluation via Tencent Zhuque Lab AI-Infra-Guard. Uses built-in exec + Python script, no plugin required. Requires AIGBASEURL to be configured. Triggers on: scan AI service, AI vulnerability scan, scan AI infra…

Tencent/AI-Infra-Guard · 142 tokens

browser-trace

Capture a full DevTools-protocol trace of any browser automation — CDP firehose, screenshots, and DOM dumps — then bisect the stream into per-page searchable buckets. Use when the user wants to debug a failed run, audit network/console/DOM activity, attach a trace to an in-progress session, or feed structured per-page…

mxyhi/ok-skills · 88 tokens

planning-with-files

Persistent file-based planning for multi-step AI-agent work. Keeps taskplan.md, findings.md, and progress.md on disk; lifecycle hooks inject selected project planning context. Automatic recovery reads project planning files only. Explicit session-catchup.py --metadata reads same-project local agent session records and…

mxyhi/ok-skills · 117 tokens

ai-elements

Build AI chat interfaces using ai-elements components — conversations, messages, tool displays, prompt inputs, and more. Use when the user wants to build a chatbot, AI assistant UI, or any AI-powered chat interface.

mxyhi/ok-skills · 46 tokens