code-simplification-sh-5he7aj

A dedicated CodeSimplification skill intended to help AI agents efficiently perform code simplification and related tasks.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "code-simplification-sh-5he7aj" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-bda558fb867cc4910f53639bb7bbeaa15671edcf17dac092e73d31b05bb97870. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/code-simplification-sh-5he7aj before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

A dedicated CodeSimplification skill intended to help AI agents efficiently perform code simplification and related tasks.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Inspired by the Claude Code Simplifier plugin. Adapted here as a model-agnostic, process-driven skill for any AI coding agent.
Audience
After a feature is working and tests pass, but the implementation feels heavier than it needs to be During code review when readability or complexity issues are flagged When you encounter deeply nested logic, long functions, or unclear names When refactoring code written under time pressure When consolidating related logic scattered across files After merging changes that introduced duplication or inconsistency When NOT to use:** Code is already clean and readable — don't simplify for the sake of it You don't understand what the code does yet — comprehend before you simplify The code is performance-critical and the "simpler" version would be measurably slower You're about to rewrite the modu
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter

name: CodeSimplification
slug: code-simplification
version: 1.0.0
displayName: CodeSimplification
description: >
  CodeSimplification专用技能,帮助AI Agent高效完成相关任务。
  CodeSimplification专用技能,帮助AI Agent高效完成相关任务。
summary: "CodeSimplification专用技能,帮助AI Agent高效完成相关任务。"
license: MIT
category: 开发者工具
framework:
  - Claude Code
  - Codex
  - Hermes Agent
  - OpenClaw
  - QClaw
  - WorkBuddy
platform: multi-platform
homepage: "https://github.com/1991513ccie-png"
repository: "https://github.com/1991513ccie-png"

Code Simplification

Inspired by the Claude Code Simplifier plugin. Adapted here as a model-agnostic, process-driven skill for any AI coding agent.

Overview

Simplify code by reducing complexity while preserving exact behavior. The goal is not fewer lines — it's code that is easier to read, understand, modify, and debug. Every simplification must pass a simple test: "Would a new team member understand this faster than the original?"

When to Use

  • After a feature is working and tests pass, but the implementation feels heavier than it needs to be
  • During code review when readability or complexity issues are flagged
  • When you encounter deeply nested logic, long functions, or unclear names
  • When refactoring code written under time pressure
  • When consolidating related logic scattered across files
  • After merging changes that introduced duplication or inconsistency

When NOT to use:

  • Code is already clean and readable — don't simplify for the sake of it
  • You don't understand what the code does yet — comprehend before you simplify
  • The code is performance-critical and the "simpler" version would be measurably slower
  • You're about to rewrite the module entirely — simplifying throwaway code wastes effort

The Five Principles

1. Preserve Behavior Exactly

Don't change what the code does — only how it expresses it. All inputs, outputs, side effects, error behavior, and edge cases must remain identical. If you're not sure a simplification preserves behavior, don't make it.

ASK BEFORE EVERY CHANGE:
→ Does this produce the same output for every input?
→ Does this maintain the same error behavior?
→ Does this preserve the same side effects and ordering?
→ Do all existing tests still pass without modification?

2. Follow Project Conventions

Simplification means making code more consistent with the codebase, not imposing external preferences. Before simplifying:

1. Read CLAUDE.md / project conventions
2. Study how neighboring code handles similar patterns
3. Match the project's style for:
   - Import ordering and module system
   - Function declaration style
   - Naming conventions
   - Error handling patterns
   - Type annotation depth

Simplification that breaks project consistency is not simplification — it's churn.

3. Prefer Clarity Over Cleverness

Explicit code is better than compact code when the compact version requires a mental pause to parse.


// U

(为兼容发布已截断)

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 面向开发者提供代码简化指导,解决可读性与维护性痛点
  • 覆盖多种常见重构场景,实用价值明确
Trigger Precision45/100

Areas to improve

  • description内容截断 Reported severity: Major

    顶层 description 字段内容中途被截断,无法完整表达触发条件

    Recommendation: 补全 description 内容,明确说明 Skill 的触发场景和边界

Structure and Standards65/100

Areas to improve

  • 文档过长 Reported severity: Minor

    skill_body 内容在截断前已超过500行,影响阅读体验

    Recommendation: 精简文档内容,将详细说明移至外部文档或拆分章节

Highlights

  • 结构清晰,包含完整的使用场景和原则指导
  • 提供了具体的代码示例和行为验证标准
Execution Reliability60/100

Areas to improve

  • 内容截断影响执行完整性 Reported severity: Minor

    skill_body 中途截断,用户无法获取完整的执行流程和示例

    Recommendation: 补全被截断的文档内容,确保执行逻辑完整

Highlights

  • 强调行为保持和项目一致性,降低误操作风险
  • 提供了明确的前置检查清单
Evidence Verifiability (mean of the first four)61/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.