.agent/skills/code-logic-cleaner/SKILL.md
专门用于代码重构与逻辑优化,在保持 UI 和交互逻辑不变的前提下,清理冗余代码并提升函数优雅度。
npx skillsauth add olcchi/olcchi.me code-logic-cleanerInstall 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.
当你要求进行“项目优化”或“代码重构”时,如果涉及到此技能,请严格遵守以下指令。
本技能的目标是在不改变用户感知的前提下,提升代码的可读性、可维护性和执行效率。
if-else 或 switch 结构重构为卫语句(Guard Clauses)或映射表。any 类型。输入: "帮我优化一下这个登录组件的逻辑。" 本技能响应: "我会分析该组件,重点查找冗余的状态变量并简化 API 调用后的处理函数,但我会确保登录界面的样式和用户点击登录后的视觉反馈保持完全一致。"
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.