bedrock: Skill for Codex

.agents/skills/codex-simplify/SKILL.md

codex-simplify is a skill for Codex from christopher-buss/bedrock. It costs 41 tokens per session (997 once invoked), scanned A, original, MIT.

A code-review and cleanup workflow that examines recent changes for duplicated code, quality problems, and inefficiency, then fixes actionable findings.

In plain words
What is it for?
Use it to simplify or polish a feature diff, including staged, unstaged, or committed changes, with several review agents working in parallel.
Why use it?
It helps catch reusable existing helpers and other cleanup opportunities after implementation. It records the reviewed change scope so later checks do not accidentally reopen completed work.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions CLAUDE.md; installed under .agents/ (shared by several agents); mentions Codex.

This is christopher-buss/bedrock's own configuration. It tells Codex how to work on bedrock itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything bedrock configures →

Reuse

Borrowing it

Nothing to install: this file belongs to christopher-buss/bedrock. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/christopher-buss/bedrock/main/.agents/skills/codex-simplify/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/christopher-buss/bedrock

Made for: Codex.

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-simplify

README.md
[![agentmods](https://agentmods.dev/badge/skills/christopher-buss/bedrock/codex-simplify/github.svg)](https://agentmods.dev/skills/christopher-buss/bedrock/codex-simplify)
Your own site
<a href="https://agentmods.dev/skills/christopher-buss/bedrock/codex-simplify"><img src="https://agentmods.dev/badge/skills/christopher-buss/bedrock/codex-simplify/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-simplify

Your own site · 80×15
<a href="https://agentmods.dev/skills/christopher-buss/bedrock/codex-simplify"><img src="https://agentmods.dev/badge/skills/christopher-buss/bedrock/codex-simplify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 997 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 original 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.00041 $0.00997
Opus 5.5 $0.00016 $0.00399
Sonnet 5.5 $0.00008 $0.00199
Haiku 4.5 $0.00004 $0.00100

Measured 5d ago against content hash 5411b1136dbe, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

codex-simplify 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 5d ago.

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.

.agents/skills/codex-simplify/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.

Simplify: Code Review and Cleanup

Review the requested scope for reuse, quality, and efficiency. Fix actionable issues using the rules in CLAUDE.md.

Phase 1: Identify Changes

For an implementation cleanup, use the ticket or feature diff, including its committed changes. For a follow-up, use the delta since the reviewed revision plus unresolved findings. Include staged and unstaged changes when present. Record the scope and revision so a clean working tree or compaction does not reopen completed work.

The three-agent pass below is the initial cleanup of that scope. After fixes, check the findings and subsequent changes directly; repeat the full pass only for substantial new scope or risk, or an explicit user request.

Phase 2: Launch Three Review Agents in Parallel

Use the Agent tool (for Codex: spawn_agent; for OpenCode: Task) to launch all three agents concurrently in a single message. Pass each agent the full diff so it has the complete context.

Agent 1: Code Reuse Review

For each change:

  1. Search for existing utilities and helpers that could replace newly written code. Look for similar patterns elsewhere in the codebase: packages/*/src/core/, packages/*/src/ports/, packages/open-cloud/src/internal/, packages/testing/src/, and files adjacent to the changed ones.
  2. Flag any new function that duplicates existing functionality. Suggest the existing function to use instead.
  3. Flag any inline logic that could use an existing utility: environment access outside packages/bedrock/src/core/get-environment.ts and packages/bedrock/src/cli/, hand-rolled Open Cloud requests that bypass packages/open-cloud/src/internal/resource-client.ts, ad-hoc type guards, and similar patterns.

Agent 2: Code Quality Review

Review the same changes for hacky patterns:

  1. Redundant state: state that duplicates existing state, cached values that could be derived, observers that could be direct calls
  2. Parameter sprawl: adding new parameters to a function instead of generalizing or restructuring existing ones
  3. Copy-paste with slight variation: near-duplicate code blocks that should be unified with a shared abstraction
  4. Leaky abstractions: exposing internal details that should be encapsulated, or breaking existing abstraction boundaries; I/O inside core/, adapters reached without a port, or process access (process.exit, process.argv, process.env) outside packages/bedrock/src/cli/
  5. Stringly-typed code: using raw strings where constants, string unions, or branded types already exist in the codebase; errors that bypass the classes in packages/open-cloud/src/errors/
  6. Type escapes: as casts, null where the codebase uses undefined, and : unknown annotations on values that are already typed (CLAUDE.md, "Type Conventions")
  7. Unnecessary comments: comments explaining WHAT the code does, narrating the change, defending the choice, or referencing the task, caller, or an ADR: delete. A comment states an invariant in a line or two; the argument for an edit goes in the commit

Read the full file on GitHub · 57 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 57 lines · 41 tokens per session scan A 5411b1136dbe

Subscribe to this mod's changes

codex-simplify is a skill published in the GitHub repository christopher-buss/bedrock (19 stars, last pushed today), licensed MIT. It adds 41 tokens to every session and 997 once invoked, about $0.0002 per session on Opus 5.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-10-20.