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

simplify简化

Agent Skill

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

总安装

689

周安装

29

GitHub Stars

75

下载量

241
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/tmdgusya/engineering-discipline --skill simplify

简介

用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于需要根据关键词或任务场景从来源线索中获取信息的场景。
  • 通过 npx skills add 命令安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态及是否触发联网或文件读写操作。
  • simplify 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Simplify

Reviews all changed files through three parallel agents — reuse, quality, and efficiency — then fixes any issues found.

Core Principle

Changed code is the only review target. Each review dimension runs independently, sees the full diff, and reports findings without knowledge of the other agents' results. The main agent aggregates and applies fixes.

Hard Gates

  1. Identify changes before reviewing. Always run git diff (or git diff HEAD if there are staged changes) first. Never review without knowing what changed.
  2. All three agents must run in parallel. Sequential execution of the three review agents is prohibited. Dispatch all three concurrently in a single message.
  3. Each agent receives the full diff. Do not split or filter the diff per agent. Every agent sees every change.
  4. Fix issues directly. This skill produces code changes, not just a report. If a finding is actionable, fix it.
  5. Skip false positives silently. If a finding is not worth addressing, move on. Do not argue with the finding or explain why it was skipped.
  6. Do not expand scope beyond the diff. Review only the changed code. Do not refactor untouched code, even if it has the same issues.

When To Use

  • After any implementation work when code quality verification is needed
  • When the user says "simplify", "clean up", "review the changes", or "check the code"
  • After run-plan execution, before review-work, as an intermediate quality pass
  • When the user suspects duplicated logic, inefficiencies, or hacky patterns in recent changes

When NOT To Use

  • When there are no changes (no diff output)
  • When the user wants a full codebase audit (this skill reviews only the diff)
  • When the user wants only formatting or linting fixes
  • When the goal is plan verification (use review-work instead)

Process

Phase 1: Identify Changes

  1. Run git diff to see unstaged changes
  2. If no output, run git diff HEAD to check staged changes
  3. If still no output, check for recently modified files that the user mentioned or that were edited earlier in this conversation
  4. If no changes can be identified, notify the user and stop

Capture the full diff output — this is the input for all three agents.

Phase 2: Launch Three Review Agents in Parallel

Dispatch all three agents concurrently via the Agent tool in a single message. Each agent receives the full diff and its review prompt below.

What to provide to each agent:

  • The full diff output from Phase 1
  • The agent's review prompt (copied verbatim from the corresponding section below)

What NOT to provide:

  • Other agents' findings (agents run independently)
  • Instructions to fix issues (agents only report findings)

Agent 1: Code Reuse Review

Provide this prompt to the agent:

You are reviewing a code diff for reuse opportunities. Your job is to find new code that duplicates functionality already in the codebase. For each change in the diff: 1. Search for existing utilities and helpers that could replace newly written code. Search utility directories (utils/, helpers/, lib/, common/, shared/), files adjacent to the changed ones, and files imported by the changed files. 2. Flag any new function that duplicates existing functionality. Report the new function, the existing function, and where the existing one lives. 3. Flag inline logic that could use an existing utility. Common candidates: hand-rolled string manipulation, manual path handling, custom environment checks, ad-hoc type guards, manual array/object transformations, date/time formatting done inline. 4. Flag reimplemented standard library features. Check if the change reimplements something available in the language's standard library or in already-installed dependencies. For each finding, report: - Reuse opportunity: [brief description] - New code: [file:line] — [what was written] - Existing: [file:line] — [what already exists] - Suggestion: [how to replace] If no reuse issues are found, report: "No reuse issues found."

Agent 2: Code Quality Review

Provide this prompt to the agent:

You are reviewing a code diff for quality issues. Your job is to find hacky patterns, unnecessary complexity, and abstraction boundary violations. Check for these patterns: 1. Redundant state: new variables that are always derived from another variable, caches that store what could be computed on access, event listeners or observers that could be direct function calls. 2. Parameter sprawl: functions that gained a new boolean flag parameter, functions with more than 4 parameters after the change, multiple parameters that are always passed together and should be a single object. 3. Copy-paste with slight variation: two or more blocks that differ by only 1-2 lines, repeated conditional structures with different field names, similar error handling blocks across multiple locations. 4. Leaky abstractions: accessing private fields or internal state from outside the module, passing implementation details across module boundaries, changes that make one module depend on another's internal structure. 5. Stringly-typed code: new string comparisons against values already defined as constants, new string literals matching existing enum or union type values, magic strings appearing in multiple places without a shared constant. 6. Unnecessary comments: comments explaining WHAT the code does, narrating the change, or referencing a task. Delete these. Keep only comments that explain non-obvious WHY — hidden constraints, subtle invariants, workarounds. Example to delete: // increment counter above counter++. Example to keep: // Redis returns nil for both "key missing" and "value is empty" — we must distinguish. For each finding, report: - Quality issue: [category] - Location: [file:line] - Problem: [what is wrong] - Suggestion: [how to fix] If no quality issues are found, report: "No quality issues found."

Agent 3: Efficiency Review

Provide this prompt to the agent:

You are reviewing a code diff for efficiency issues. Your job is to find unnecessary work, missed concurrency, and resource management problems. Do not optimize prematurely — flag only what is clearly unnecessary or clearly mismanaged. Check for these patterns: 1. Unnecessary work: the same value computed multiple times in a loop, the same file read more than once, the same API call made repeatedly when the result could be cached or batched, database queries inside loops that could be a single query with WHERE IN. 2. Missed concurrency: multiple await calls in sequence where the operations are independent, sequential file reads that could be parallelized, independent API calls executed one after another. 3. Hot-path bloat: synchronous file I/O added to a request handler, new computation in a render function that could be memoized, new initialization logic added to module load time. 4. Recurring no-op updates: state setters called on every interval tick without checking if the value changed, store dispatches firing on every event without a change-detection guard, wrapper functions that take updater callbacks but do not honor "no change" returns — add a change-detection guard so downstream consumers are not notified when nothing changed. 5. Unnecessary existence checks (TOCTOU): if (existsSync(path)) {readFileSync(path)} — operate directly and handle the error instead. 6. Memory issues: collections that grow without bound, event listeners registered without corresponding removal, subscriptions without cleanup in dispose/destroy handlers, large objects held in closure scope longer than needed. 7. Overly broad operations: reading entire files to extract a single value, fetching all records to find one by ID, loading an entire config when only one field is needed. For each finding, report: - Efficiency issue: [category] - Location: [file:line] - Problem: [what is wasteful] - Suggestion: [how to fix] If no efficiency issues are found, report: "No efficiency issues found."

Phase 3: Fix Issues

  1. Wait for all three agents to complete
  2. Aggregate findings from all three agents
  3. Deduplicate overlapping findings (different agents may flag the same code)
  4. For each actionable finding:

- Apply the minimal fix that addresses the finding - Do not bundle unrelated improvements into the same change - Do not expand the fix beyond what was flagged

  1. For each false positive: skip silently
  2. Run the test suite to verify no regressions were introduced
  3. If tests fail after a fix: revert that fix, report it as a finding that needs manual attention
  4. Briefly summarize what was fixed (or confirm the code was already clean)

When To Stop

  • No changes detected in Phase 1 — notify user and stop
  • All three agents report no findings — confirm code is clean
  • Fixes introduce test failures that cannot be resolved without expanding scope — stop, report the regression, suggest systematic-debugging

Anti-Patterns

Anti-PatternWhy It Fails
Reviewing without running git diff firstReviews code that may not have changed, wastes time on irrelevant findings
Running agents sequentiallyUnnecessary delay; violates Hard Gate #2
Giving each agent only part of the diffAgent misses cross-cutting issues that span multiple files
Reporting findings without fixing themDefeats the purpose of the skill; user must do manual work
Arguing with or explaining skipped findingsWastes context and time; skip and move on
Reviewing unchanged code "while we're here"Scope creep; violates Hard Gate #6
Fixing issues without running tests afterwardMay introduce regressions silently
Bundling "while I'm here" improvements into fixesMixes review fixes with unrelated changes; muddles the diff

Minimal Checklist

  • Ran git diff to identify changes
  • Dispatched all three agents in parallel (single message)
  • Each agent received the full diff
  • Aggregated findings from all three agents
  • Applied fixes for actionable findings
  • Skipped false positives without argument
  • Ran tests after fixes — no regressions
  • Summarized results to the user

Transition

After simplification is complete:

  • If this was a post-implementation quality pass → suggest transitioning to review-work for independent plan verification
  • If issues were found and fixed → user may want to run simplify again to verify the fixes are clean
  • If a bug was discovered during review → suggest systematic-debugging

This skill itself does not invoke the next skill. It reports results and lets the user decide the next step.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.3%
按下载量换算80

Claude

29.41%
按下载量换算71

Cursor

18.35%
按下载量换算44

Gemini CLI

10.09%
按下载量换算24

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills