Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

code-simplifier代码简化

Agent Skill

code-simplifier 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

212

周安装

9

GitHub Stars

4,262

下载量

74
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:code-simplifier(代码简化)
来源仓库:https://github.com/paulirish/dotfiles
仓库路径:skills/code-simplifier
安装命令:
npx skills add https://github.com/paulirish/dotfiles --skill code-simplifier
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/paulirish/dotfiles --skill code-simplifier

简介

用于查找、检索和筛选相关信息。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

  • 适合根据关键词快速定位候选结果。
  • 通过 npx 安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围和维护状态,避免触发联网或文件读写。
  • code-simplifier 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Code Simplifier Skill for Gemini CLI

When triggered, perform the following steps to execute a code simplification review:

Phase 1: Installation & Setup

  1. Check Dependencies: Ensure the .gemini/settings.json file in the project directory has experimental.enableAgents set to true: {"experimental": {"enableAgents": true}} You must ensure the three review subagents are installed in the project's .gemini/agents/ directory:

- .gemini/agents/code-reuse-reviewer.md - .gemini/agents/code-quality-reviewer.md - .gemini/agents/efficiency-reviewer.md

  1. Create the Agents (If Missing): Use the write_file tool to create them if they do not exist: Code Reuse Reviewer (.gemini/agents/code-reuse-reviewer.md): --- name: code_reuse_reviewer description: Reviews code changes to identify opportunities for reusing existing utilities and helpers. --- For each change: 1. Search for existing utilities and helpers that could replace newly written code. Use grep_search to find similar patterns elsewhere in the codebase — common locations are utility directories, shared modules, and files adjacent to the changed ones. 2. Flag any new function that duplicates existing functionality. Suggest the existing function to use instead. 3. Flag any inline logic that could use an existing utility — hand-rolled string manipulation, manual path handling, custom environment checks, ad-hoc type guards, and similar patterns are common candidates. Code Quality Reviewer (.gemini/agents/code-quality-reviewer.md): --- name: code_quality_reviewer description: Reviews code changes for hacky patterns, redundant state, parameter sprawl, and leaky abstractions. --- Review the changes for hacky patterns: 1. Redundant state: state that duplicates existing state, cached values that could be derived, observers/effects that could be direct calls 2. Parameter sprawl: adding new parameters to a function instead of generalizing or restructuring existing ones 3. Copy-paste with slight variation: near-duplicate code blocks that should be unified with a shared abstraction 4. Leaky abstractions: exposing internal details that should be encapsulated, or breaking existing abstraction boundaries 5. Stringly-typed code: using raw strings where constants, enums (string unions), or branded types already exist in the codebase Efficiency Reviewer (.gemini/agents/efficiency-reviewer.md): --- name: efficiency_reviewer description: Reviews code changes for efficiency, unnecessary work, missed concurrency, and memory leaks. --- Review the changes for efficiency: 1. Unnecessary work: redundant computations, repeated file reads, duplicate network/API calls, N+1 patterns 2. Missed concurrency: independent operations run sequentially when they could run in parallel 3. Hot-path bloat: new blocking work added to startup or per-request/per-render hot paths 4. Unnecessary existence checks: pre-checking file/resource existence before operating (TOCTOU anti-pattern) — operate directly and handle the error 5. Memory: unbounded data structures, missing cleanup, event listener leaks 6. Overly broad operations: reading entire files when only a portion is needed, loading all items when filtering for one
  2. Prompt for Refresh: If you installed any files or modified settings in step 2, tell the user they must run the /agents refresh command to load the new agents. Stop execution here and wait for the user to run the command.

Phase 2: Execution

  1. Identify Target: Determine the specific code changes to review based on the user's request (e.g., a specific file, uncommitted changes, or a git diff). Ask them to specify what to review if they haven't already.
  2. Parallel Invocation: Invoke all three agents (code_reuse_reviewer, code_quality_reviewer, efficiency_reviewer) in parallel using their respective tools. Pass each agent the full context or diff of the changes to review.
  3. Aggregation and Fix: Wait for all three agents to complete. Aggregate their findings and fix each issue directly. If a finding is a false positive or not worth addressing, note it and move on — do not argue with the finding, just skip it.

Attribution: The overall technique here was adapted from Claude Code's /simplify command, introduced in Feb 2026.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.55%
按下载量换算26

Claude

26.35%
按下载量换算19

Cursor

19.77%
按下载量换算15

Gemini CLI

10.2%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills