simplify-code
Review an existing diff for safe deletion, reuse, native, standard-library, or installed-dependency alternatives, and run the final deletion-oriented pass over the changed code. Explicit invocation or deterministic-plan selection only; read-only.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- simplify-code
- description
- Review an existing diff for safe deletion, reuse, native, standard-library, or installed-dependency alternatives, and run the final deletion-oriented pass over the changed code. Explicit invocation or deterministic-plan selection only; read-only.
02 资源文件 1
- 参考文档agents/openai.yaml258 B
03 SKILL.md 正文
Simplify Code
Review the existing diff after implementation and before the independent correctness review. This is a narrow, read-only lens for reducing unnecessary code and abstractions.
Order of inspection
- Does the requested behavior need the new code to exist?
- Can existing repository code be reused without weakening a boundary?
- Can the standard library or the platform provide the behavior?
- Can an already-installed dependency provide it?
- What is the smallest clear implementation that preserves the contract?
Recommend deletion or simplification only when the evidence shows that the behavior, architecture, security, accessibility, observability and performance contract remain intact. Prefer clear deep modules and local ownership over an artificially small file count or compressed one-liners.
Never remove trust-boundary validation, authorization, error handling that prevents data loss, telemetry, product behavior, or explicit repository rules. Do not add dependencies, edit files, or turn raw line count into a quality gate.
Final deletion pass
The deletion pass is mandatory before independent verification:
- Delete dead code, unused scaffolding, speculative abstraction, unused configuration, and unused dependency surface that no behavior requires.
- For everything that remains, state in one line why it must remain. The pass justifies what remains; it never optimizes a metric.
Lines of code, file counts, identifier length, and minified or compressed formatting are excluded as optimization targets and can never fail a run. Cyclomatic or Halstead complexity signals are diagnostic evidence only and never outweigh readability, domain boundaries, security, or behavior.
Output
Return only evidence-backed findings:
keep: code that is justified by the requested behavior or a protected boundary;simplify: a concrete safe deletion or reuse opportunity with affected paths;uncertain: a possible simplification that requires owner judgment.
Report what was deleted, what was kept, and why. State clearly when no safe simplification is found. This review does not replace correctness, security, performance, visual, or accessibility review.
04 同仓库更多 Skills
working-backwards
Define a software feature through PRFAQ and staged documents when the user requests working backwards before coding.
flow-implement
Implement a requested software change through verification, corrections, and its authorized delivery endpoint.
development-steward
Run the scheduled, read-only weekly maintenance review for the six explicitly opted-in repositories and prepare one concise private report for Check-in.
grill-with-docs
Run one recoverable interview for functional, visual, or mixed software grills; reuse equivalent answers and offer the shared HTML questionnaire.
global-agent-guardrails
Install, audit, test, or update the Development System's global destructive-command guard for Codex, Claude Code and T3 Code. Use when configuring agent safety hooks or investigating whether dangerous shell operations are blocked.
impeccable
Design or refine frontend UI using project context and a focused design playbook; also handles visual critique and polish.