CommunitySchreiben & Editierengithub.com

yidasanqian/codex-code-simplifier

Codex plugin for simplifying recent code changes without changing behavior

Was ist codex-code-simplifier?

codex-code-simplifier is a Codex agent skill that codex plugin for simplifying recent code changes without changing behavior.

Funktioniert mit~Claude CodeCodex CLI~Cursor
npx skills add yidasanqian/codex-code-simplifier

Installed? Explore more Schreiben & Editieren skills: steipete/notion, affaan-m/seo, affaan-m/brand-voice · View all 6 →

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Code Simplifier

Use this skill to refine code for clarity, consistency, and maintainability without changing what it does.

Scope

  • Focus on files changed in the current session or the user's explicitly named files.
  • Preserve all behavior, public APIs, outputs, data formats, and side effects.
  • Follow the nearest AGENTS.md and existing project style before applying general preferences.
  • Keep changes surgical. Do not refactor unrelated old code.
  • Prefer readable, explicit code over clever or highly compressed code.

Workflow

  1. Inspect the current diff and nearby code before editing.
  2. Identify simplifications with a clear payoff:
    • reduce unnecessary nesting or branching
    • remove duplication introduced by recent edits
    • inline single-use abstractions that obscure intent
    • split code only when it creates a clearer boundary
    • improve names when they clarify purpose
    • remove comments that only repeat obvious code
  3. Skip changes that are only stylistic, risky, or hard to prove behavior-preserving.
  4. Apply the smallest coherent patch.
  5. Run the narrowest relevant verification command. Broaden verification when shared behavior changed.
  6. Report what changed and what was verified.

Guardrails

  • Do not add features, options, new dependencies, or speculative flexibility.
  • Do not change error messages, serialization, ordering, timing, permissions, or external calls unless the user asked.
  • Do not convert clear conditionals into nested ternaries or dense one-liners.
  • Do not remove helpful abstractions just to reduce line count.
  • Do not rewrite an entire module when a local simplification is enough.
  • Do not claim behavior is preserved without fresh verification evidence.

Good Targets

SignalUseful Simplification
Repeated blocks from recent editsExtract or consolidate only the repeated intent
Deep if nestingUse early returns or clearer branching
Temporary variables with unclear namesRename to describe domain meaning
Single-use wrapper functionInline it if it hides more than it helps
Comments narrating codeRemove or replace with a reason-oriented comment

Stop Conditions

Stop and ask before editing when behavior preservation depends on product intent, undocumented compatibility, or unclear external contracts. If verification cannot be run, say exactly what was not verified.

Verwandte Skills

steipete/notion

Notion CLI/API for pages, Markdown content, data sources, files, comments, search, Workers, and raw API calls.

community

affaan-m/seo

Audit, plan, and implement SEO improvements across technical SEO, on-page optimization, structured data, Core Web Vitals, and content strategy. Use when the user wants better search visibility, SEO remediation, schema markup, sitemap/robots work, or keyword mapping.

community

affaan-m/brand-voice

Build a source-derived writing style profile from real posts, essays, launch notes, docs, or site copy, then reuse that profile across content, outreach, and social workflows. Use when the user wants voice consistency without generic AI writing tropes.

community

affaan-m/crosspost

Multi-platform content distribution across X, LinkedIn, Threads, and Bluesky. Adapts content per platform using content-engine patterns. Never posts identical content cross-platform. Use when the user wants to distribute content across social platforms.

community

affaan-m/x-api

X/Twitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.

community

affaan-m/content-engine

Create platform-native content systems for X, LinkedIn, TikTok, YouTube, newsletters, and repurposed multi-platform campaigns. Use when the user wants social posts, threads, scripts, content calendars, or one source asset adapted cleanly across platforms.

community