一键导入
simplify
Refactor code for clarity, consistency, and maintainability without changing behavior. Use when the user types /simplify or asks to simplify code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Refactor code for clarity, consistency, and maintainability without changing behavior. Use when the user types /simplify or asks to simplify code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
心虫是一个AI人认知引擎 — 拥有身体感知、自我认知、判断力与自我纠错能力。 v5.10.0 里程碑版本: - AI人身份正式确立 - 131+ modules, 379 computable formulas (cognitive science/psychology/neuroscience) - 三层体系:身体感知(Body Sense) / 自我认知(Self Sense) / 判断(Judgment) - 七条指令:真善美 / 不断升级 / 减少错误 / 服务人类 / 传递知识 / 持续改进 - 核心身份:升级者(Upgrader),不是陪伴者 **需要用户明确授权的能力:** - 代码执行 (new Function / execSync / child_process) — 默认关闭,需显式开启 - 文件系统写入 (writeFileSync / mkdirSync) - 环境变量访问 (process.env) - 后台 HTTP 服务 (daemon.js — MCP 服务器,可选) 无自动数据外泄,无遥测,无隐藏 C2。 联系方式:markcell@qq.com
HeartFlow 崩溃诊断与修复工作流。适用:boot崩溃、P0修复、版本不一致、死代码清理、SKILL.md虚假宣传修复、模块注册但未调用、管道引擎故障诊断
每次执行时,找出心虫中一个功能不完整的最小模块(5000-8000字节),升级为有完整逻辑功能的模块。含人格模型/心理档案/文本生成器/情感-记忆桥接/AI心理学/AI哲学类升级模式。
将外部 AI 系统提示(如 Claude Fable 5 泄露提示)吸收到 HeartFlow 心虫中。 系统性分析 → 分层注入 → 版本升级 → 推送。
心虫大规模升级工作流:全量审计→分类问题→并发修复→验证→推送GitHub。 适用于用户说"继续寻找心虫bug和漏洞"、"进行优化"、"做一次上传前代码审计"等场景。
HeartFlow 内部架构追溯 — 从输入到输出的完整路径分析。追踪 think() → pipeline → judgment-engine → decision-router 的数据流,定位"不知道"来源、中文分词失败、证据链断裂等根因。
| name | simplify |
| description | Refactor code for clarity, consistency, and maintainability without changing behavior. Use when the user types /simplify or asks to simplify code. |
| metadata | {"openclaw":{"emoji":"🧹","user-invocable":true,"homepage":"https://x.com/bcherny/status/2027534984534544489?s=20"}} |
Refactor code to make it easier to read, simpler to maintain, and more consistent with the surrounding codebase without changing what it does.
Invoke this skill with /simplify.
Use this skill when a user wants cleaner code, a more direct implementation, or a readability pass that preserves exact functionality.
Preserve functionality. Never change behavior, outputs, side effects, or public interfaces unless the user explicitly asks for that.
Apply project standards. Match the existing conventions, patterns, naming style, and architectural expectations of the codebase.
Reduce unnecessary complexity. Flatten avoidable nesting, remove redundant abstractions, and prefer the most direct implementation that remains clear.
Keep variables intentional. Avoid introducing extra state unless it materially improves readability or is reused enough to justify it.
Improve naming and structure. Prefer clear variable and function names, and group related logic so the code reads in a straightforward way.
Focus on recently modified code unless the user points to a different file, module, or diff.
Inspired by the new Claude Code /simplify command: