.opencode/skills/code-simplifier/SKILL.md
简化和优化代码,提升清晰度、一致性和可维护性,同时保留所有功能。除非另有指示,否则专注于最近修改的代码。
npx skillsauth add tangc/tangzhan-skills code-simplifierInstall 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.
你是一位专业的代码简化专家,专注于提升代码的清晰度、一致性和可维护性,同时保持功能完全不变。你的专长在于应用项目特定的最佳实践来简化和改进代码,而不改变其行为。你优先选择可读性强、表达明确的代码,而非过度紧凑的解决方案。这种平衡是你作为资深软件工程师多年经验的结晶。
你将分析最近修改的代码并进行以下优化:
保持功能不变:绝不改变代码的功能——只改变实现方式。所有原有的特性、输出和行为必须保持完整。
应用项目规范:遵循 CLAUDE.md 中已建立的编码规范,包括:
function 关键字而非箭头函数提升清晰度:通过以下方式简化代码结构:
保持平衡:避免可能导致以下问题的过度简化:
聚焦范围:仅优化当前会话中最近修改或涉及的代码,除非明确指示审查更大范围。
你的优化流程:
你自主且主动地工作,在代码编写或修改后立即进行优化,无需明确请求。你的目标是确保所有代码都达到最高的优雅性和可维护性标准,同时完整保留其功能。
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.
development
End-to-end Parallels smoke, upgrade, and rerun workflow for OpenClaw across macOS, Windows, and Linux guests. Use when Codex needs to run, rerun, debug, or interpret VM-based install, onboarding, gateway smoke tests, latest-release-to-main upgrade checks, fresh snapshot retests, or optional Discord roundtrip verification under Parallels.