code-simplifier
当用户要求简化代码、重构代码、优化代码、改进代码质量时使用此技能。提供代码简化原则和最佳实践指导,确保代码符合质量标准。
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/aqbjqtd/code-simplifierWhat This Skill Does
The code-simplifier skill serves as an intelligent architectural assistant for developers, designed to enforce high standards of code readability, maintainability, and efficiency. It systematically reviews existing logic to identify "code smells," such as excessive nesting, monolithic functions, or unclear variable naming, and provides actionable refactoring recommendations. By following core design principles like Single Responsibility, DRY (Don't Repeat Yourself), and proper error handling, this tool ensures that your codebase remains scalable and professional.
Installation
To integrate this skill into your environment, run the following command in your terminal within the OpenClaw directory:
clawhub install openclaw/skills/skills/aqbjqtd/code-simplifier
Use Cases
- Refactoring Legacy Code: Transforming complex, deeply nested scripts into modular, readable functions.
- Code Review Assistance: Automatically checking pull requests or snippets against defined best practices.
- Performance Optimization: Simplifying logic paths (e.g., replacing complex loops with list comprehensions or idiomatic functions).
- Learning & Standardization: Helping junior developers adopt enterprise-grade coding patterns in Python and TypeScript/JavaScript environments.
Example Prompts
- "I have this 100-line Python function that handles too many things; can you help me refactor it into smaller, single-responsibility functions using the code-simplifier rules?"
- "Review this JavaScript snippet for 'code smells' and suggest improvements to reduce the nesting depth."
- "Can you optimize this search logic in my codebase? It uses nested loops and magic numbers that make it hard to maintain."
Tips & Limitations
- Tips: Always run your unit tests before and after applying refactorings suggested by this skill to ensure behavioral parity. Use the provided checklist in the documentation to perform manual sanity checks after applying the tool's suggestions.
- Limitations: While the skill provides architectural advice, it is not a compiler or a static analysis engine. It may not catch runtime errors or edge cases in highly complex logic. Always review the refactored code manually to ensure it meets specific business requirements that the tool cannot see.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-aqbjqtd-code-simplifier": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Related Skills
openclaw-config-master
Edit and validate OpenClaw Gateway config (openclaw.json / JSON5). Covers all config areas — gateway, agents, channels, models, auth, tools, commands, session, hooks, secrets, acp, messages, plugins, skills, $include. Use when adding/changing config keys or diagnosing openclaw doctor/config validation errors, to avoid schema mismatches that prevent the Gateway from starting or weaken security policies.
ffmpeg-master-pro
FFmpeg Master Pro - 全能视频处理技能。当用户需要视频处理时使用,支持视频转换、视频压缩、视频编辑等。当用户要求视频处理, 视频转换, 视频压缩, FFmpeg, 视频编辑, 视频转码, 视频剪辑, 字幕处理, 视频优化, 批量视频处理, GIF转换, 视频翻转, 速度调节, 音频提取, 视频合并, 宽高比, 水印, 截图, 抽帧时使用此技能。
excel-data-import
Import, merge, and transform data from Excel (.xlsx/.csv) files using YAML-driven configuration. Use when the user asks to: (1) import data from Excel/CSV into a template, (2) batch-process multiple files in a directory, (3) merge/consolidate data from multiple sources, (4) map and transform columns with validation rules, (5) do incremental data updates on existing spreadsheets. 当用户要求导入Excel、CSV导入、表格数据导入、Excel数据合并、批量处理Excel、字段映射、数据校验、 表头自动检测、增量更新Excel、多sheet合并时使用此技能。 Supports Chinese field names, multi-layer merged cell headers, auto header detection, CSV (auto-encoding), custom validators, and multi-source imports.
web-fixing
修复网页和前端界面问题。当用户要求修复网页、调试前端、解决UI问题、修复样式、响应式布局错误、移动端显示异常、CSS问题、JavaScript报错、交互功能失效、生成网页后检查并修复时使用此技能。
subtitle-generator
当用户需要生成字幕、制作字幕、字幕对齐、ASR识别、语音转文字时使用此技能。触发词:生成字幕, 字幕生成, 制作字幕, 视频字幕, 语音识别, ASR字幕, Whisper字幕, 字幕制作, 视频转字幕, 字幕对齐, 音频转字幕, 语音转文字, 自动字幕, ASR识别, faster-whisper, subtitle, subtitles, caption, transcription, speech to text