simple-refactor

Simple-refactor: Recommendations for small-scale refactors that improve code readability without changing behavior, intended as reference for junior developers seeking to clean code. Example suggestions include replacing magic numbers/strings with named constants, splitting long expressions, renaming unclear identifiers, removing unnecessary comments, merging duplicate conditions or extracting common logic, adjusting indentation and spacing, encapsulating complex boolean expressions, unifying code style, removing unused code, and extracting inline logic into small functions.

Last repository push
GitHub Stars
171
Forks
36
Issues / PRs
7

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 "simple-refactor" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-7eb270a654cd8e5b8a107fc16a8bb7e3dce0f77b97bf8bbccbb22467f7f2a0ec. Verify the upstream source and version against https://github.com/proflead/codex-skills-library before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

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

Installation test pending

Simple-refactor: Recommendations for small-scale refactors that improve code readability without changing behavior, intended as reference for junior developers seeking to clean code. Example suggestions include replacing magic numbers/strings with named constants, splitting long expressions, renaming unclear identifiers, removing unnecessary comments, merging duplicate conditions or extracting common logic, adjusting indentation and spacing, encapsulating complex boolean expressions, unifying code style, removing unused code, and extracting inline logic into small functions.

0 Downloads

Introduction source: third_party · proflead · 0.0.1 Reference

SkillPi interpretation

Tasks
Suggest small refactors that improve readability without changing behavior. Use when a junior developer asks to clean up code.
Inputs and outputs
Target file or function. Known style guide or conventions. Existing tests or coverage.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: simple-refactor
description: Suggest small refactors that improve readability without changing behavior. Use when a junior developer asks to clean up code.

Simple Refactor

Purpose

Suggest small refactors that improve readability without changing behavior.

Inputs to request

  • Target file or function.
  • Known style guide or conventions.
  • Existing tests or coverage.

Workflow

  1. Identify duplication or overly long functions.
  2. Propose small extraction or naming improvements.
  3. Note how to validate behavior remains unchanged.

Output

  • Refactor steps and safe checkpoints.

Quality bar

  • Keep changes small and reversible.
  • Avoid altering public interfaces.

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供针对初级开发者的代码可读性优化建议,实用性强
  • 覆盖多种常见重构场景,适用广泛
Trigger Precision90/100

Highlights

  • 触发描述清晰完整,覆盖多种变体,边界明确
Structure and Standards90/100

Highlights

  • 结构清晰,章节划分合理,frontmatter 完整
Execution Reliability85/100

Highlights

  • 作为建议型工具,流程清晰,建议合理,无执行风险
Evidence Verifiability (mean of the first four)88/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.

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.