Agent skill

Code Simplifier

by tisfeng in tisfeng/Easydict

在不改变行为的前提下简化或重构已有代码。用于明确要求清理、去重或提高可读性;查找缺陷使用 review. An agent skill from tisfeng/Easydict.

GPL-3.0Auto-check passedMobile

Install Code Simplifier

skills CLI
$ npx skills add tisfeng/Easydict --skill code-simplifier -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install tisfeng/Easydict code-simplifier --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/tisfeng/Easydict.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/code-simplifier .claude/skills/code-simplifier && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
code-simplifier
GitHub stars
15k
Token cost
~289 tokens
SKILL.md length
36 words
Files
4 (incl. references)
Skills in repo
8
Repo updated
First seen
Licence
GPL-3.0

At a glance

在不改变行为的前提下简化或重构已有代码。用于明确要求清理、去重或提高可读性;查找缺陷使用 review. An agent skill from tisfeng/Easydict.

  • Tasks that involve Code simplification
  • SKILL.md covers 范围与授权, 简化要求, 工作方式 and 语言和平台专项规则
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Tasks that involve iOS development

What it does

Code Simplifier is an agent skill from tisfeng/Easydict. 在不改变行为的前提下简化或重构已有代码。用于明确要求清理、去重或提高可读性;查找缺陷使用 review。

Its SKILL.md is about 290 tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `agents/openai.yaml`, `references/electron-typescript.md` and `references/swift-xcode.md`).

It sits in Mobile, covering Code simplification and iOS development. It works with Xcode and TypeScript. The repository describes itself as: 一个简洁优雅的词典翻译 macOS App。开箱即用,支持离线 OCR 识别,支持有道词典,🍎 苹果系统词典,🍎 苹果系统翻译,OpenAI,Gemini,DeepL,Google,Bing,腾讯,百度,阿里,小牛,彩云和火山翻译。A concise and elegant Dictionary and Translator macOS App… The licence is GPL-3.0.

When your agent uses it

  • Tasks that involve Code simplification
  • Tasks that involve iOS development

Example prompts

  • “/code-simplifier”

What it can do on your machine

Read from SKILL.md and the folder at commit cfda6e2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Code Simplifier loads about 289 tokens when it runs, and up to ~1.6k if it reads all its reference files. Until then it costs about 17 tokens; SKILL.md has 36 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~17
When it runs · the whole SKILL.md, loaded when a task matches
~289
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from tisfeng/Easydict at commit cfda6e2, republished under its GPL-3.0 licence (© tisfeng). 36 words, ~289 tokens.

Download SKILL.mdSave it as .claude/skills/code-simplifier/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
code-simplifier
description
在不改变行为的前提下简化或重构已有代码。用于明确要求清理、去重或提高可读性;查找缺陷使用 review。
<!--
https://github.com/getsentry/skills/blob/main/plugins/sentry-skills/skills/code-simplifier/SKILL.md
-->
<!--
Based on Anthropic's code-simplifier agent:
https://github.com/anthropics/claude-plugins-official/blob/main/plugins/code-simplifier/agents/code-simplifier.md
-->

代码简化

保持功能不变,简化代码并提高可读性。优先处理真实的重复、嵌套和间接层,不为减少行数牺牲 清晰度或有意义的抽象。

范围与授权

  • 默认只处理用户指定的范围或近期改动;扩大范围需要用户授权。
  • 本 Skill 不做缺陷审查。用户要求查找 bug、回归或风险时使用 review;简化中发现疑似缺陷时不顺手改变行为。
  • 实际修改、验证和交付遵循当前请求与仓库规则;调用本 Skill 不自动授权写入或外部操作。

简化要求

  • 先理解调用方、测试、配置和数据格式;保持功能、输出、公开 API、命名、兼容性、序列化、 错误语义和用户可见文本不变。
  • 保留必要的错误处理、边界行为、状态转换,以及隔离副作用和表达领域概念的抽象。
  • 遵循目标项目、语言、框架和运行时的现有约定,不把某个平台的规则套用到其他项目。
  • 合并重复逻辑,减少无用嵌套;使用明确命名和控制流,避免嵌套三元或隐藏副作用的密集单行。
  • 职责相关的逻辑放在一起,不强行合并无关职责。注释解释意图、约束和非显然原因,不复述代码。

工作方式

识别近期改动及必要上下文,选择保持行为不变的最小改法。在已有授权内应用修改并执行相称验证, 报告重要变化与未验证部分。没有明确收益时保留现有实现。

语言和平台专项规则

只加载目标代码对应的 reference:

© tisfeng, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (references) in .agents/skills/code-simplifier of tisfeng/Easydict.

  • SKILL.md
  • agents/openai.yaml
  • references/electron-typescript.md
  • references/swift-xcode.md

Open the folder on GitHubat commit cfda6e2

Compare with similar skills

Code Simplifier next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Code Simplifier compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Code Simplifier this skilltisfeng/Easydict15k—~289Automated safety check: PassGPL-3.0
Apple Crash Log .NET Symbolicationdotnet/skills5.6k1 repos~2.4kAutomated safety check: PassMIT
iOS Memgraph Analysisdpearson2699/swift-ios-skills1.2k—~2.4kAutomated safety check: PassCustom licence
XcdocsBitrigApp/XCDocs183—~400Automated safety check: PassMIT
Anishelf Releasesamuelhe52/AniShelf140—~2kAutomated safety check: PassApache-2.0
Coding Assistantwpsnote/wpsnote-skills179—~1.1kAutomated safety check: PassNone

Similar skills

  • Official

    Resolves .NET runtime frames in Apple .ips crash logs to function names, source files and line numbers using dSYM symbols, atos and the Microsoft symbol server.

    5.6k GitHub starsUsed in 1 repo~2.4k tokens
    MobileAuto-check passed
  • iOS Memgraph Analysis

    dpearson2699/swift-ios-skills

    A skill your agent uses when capturing or analyzing an iOS .memgraph, especially when the task mentions a memory leak, heap growth, persistent memory increase, ownership path, or matched-capture…

    1.2k GitHub stars~2.4k tokensUpdated 2 mo ago
    MobileAuto-check passed
  • Xcdocs

    BitrigApp/XCDocs

    A skill your agent uses when an agent is writing, debugging, or updating code against Apple frameworks and needs local Xcode documentation to resolve compile errors, discover the right symbols…

    183 GitHub stars~400 tokensUpdated 4 mo ago
    MobileAuto-check passed
  • Anishelf Release

    samuelhe52/AniShelf

    Prepare and publish AniShelf source-control releases through validation, release commits, annotated tags, and the main-to-release pull request.

    140 GitHub stars~2k tokensUpdated today
    MobileAuto-check passed
  • Coding Assistant

    wpsnote/wpsnote-skills

    多平台编码助手。遵循各平台官方文档做编码规范、单测与编译/lint;协助将核心技术梳理为完整 WPS 笔记技术文档。生成的笔记必须包含 7 个二级标题(核心技术、核心代码、关键技术点、核心类和职责、调用链、架构概览、注意事项);其中架构、核心技术、调用链的图示优先用 WPS 笔记的 generateimage 根据描述生成图片再用 insertimage…

    179 GitHub stars~1.1k tokensUpdated 4 mo ago
    MobileAuto-check passed
  • Mobile App Debugging

    secondsky/claude-skills

    Mobile app debugging for iOS, Android, cross-platform frameworks.

    227 GitHub stars~513 tokensUpdated 9 days ago
    MobileAuto-check passed

More from tisfeng/Easydict

All 8 skills in this repo
  • Fireworks Tech Graph

    tisfeng/Easydict

    Create precise SVG technical diagrams, export PNG or offline HTML, and animate supported semantic SVGs to GIF.

    15k GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Release Easydict

    tisfeng/Easydict

    编排 Easydict macOS 的 draft、publish、release 和 resume,整理英文 GitHub Release 内容,并处理发布后的 Issue 跟进及本地清理。不用于一般的发布流程设计讨论。

    15k GitHub stars~810 tokensUpdated yesterday
    Auto-check passed
  • Submit PR

    tisfeng/Easydict

    创建或复用当前 checkout 已提交变更的 GitHub PR,必要时推送任务分支。PR 审查使用 review-pr;仅本地提交使用 git-commit。

    15k GitHub stars~595 tokensUpdated yesterday
    Auto-check passed
  • Git Commit

    tisfeng/Easydict

    起草、创建或汇报 Angular-style 本地 Git 提交。用于明确的提交交付;分支集成使用 worktree-rebase-merge,不 push。

    15k GitHub stars~535 tokensUpdated yesterday
    Auto-check passed
  • Review

    tisfeng/Easydict

    审查本地工作树、提交、range、文件或模块,找出有证据的缺陷。GitHub PR 审查使用 review-pr;代码清理使用 code-simplifier。

    15k GitHub stars~659 tokensUpdated yesterday
    Auto-check passed
  • Review PR

    tisfeng/Easydict

    审查 GitHub PR 的准确 head/base diff、关联 issue、CI 和 review threads,交付前刷新。创建 PR 使用 submit-pr;本地审查使用 review。

    15k GitHub stars~723 tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Code Simplifier

What does Code Simplifier do?

在不改变行为的前提下简化或重构已有代码。用于明确要求清理、去重或提高可读性;查找缺陷使用 review. An agent skill from tisfeng/Easydict. Code Simplifier is an agent skill from tisfeng/Easydict.

When should I use Code Simplifier?

Code Simplifier fits situations like: tasks that involve Code simplification; tasks that involve iOS development.

How do I install Code Simplifier in Claude Code?

Run `npx skills add tisfeng/Easydict --skill code-simplifier -a claude-code`. Or copy the skill folder (.agents/skills/code-simplifier in tisfeng/Easydict) into .claude/skills/code-simplifier in your project. Claude Code loads it when a task matches its description.

How do I install Code Simplifier in Codex?

Run `npx skills add tisfeng/Easydict --skill code-simplifier -a codex`. Or copy the skill folder (.agents/skills/code-simplifier in tisfeng/Easydict) into .agents/skills/code-simplifier in your project. Codex loads it when a task matches its description.

Can I use Code Simplifier in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add tisfeng/Easydict --skill code-simplifier -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/code-simplifier, .gemini/skills/code-simplifier, .github/skills/code-simplifier and .opencode/skills/code-simplifier in your project.

What does Code Simplifier need to run?

SKILL.md names no scripts, command-line tools or credentials: Code Simplifier is instructions for the agent only.

Does Code Simplifier access the network?

SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.

Is Code Simplifier safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Code Simplifier use?

Code Simplifier is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Code Simplifier use?

About 289 tokens (SKILL.md is roughly 1.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.3k tokens, read only when the agent opens those files.

What are the alternatives to Code Simplifier?

Skills that share tags, products or a category with Code Simplifier: Apple Crash Log .NET Symbolication (dotnet/skills, 5.6k stars), iOS Memgraph Analysis (dpearson2699/swift-ios-skills, 1.2k stars), Xcdocs (BitrigApp/XCDocs, 183 stars) and Anishelf Release (samuelhe52/AniShelf, 140 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Code Simplifier?

tisfeng (a GitHub user) maintains it in tisfeng/Easydict, which has 14,866 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 6, 2026.

Source: tisfeng/Easydict on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.