code-simplifier

Refactor recently modified Swift and SwiftUI code for readability without changing behavior.

14.2k|717|Updated Nov 15, 2022
One-click install
npx skills add https://github.com/tisfeng/Easydict --skill code-simplifier-tisfeng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-simplifier
Source: https://github.com/tisfeng/Easydict/tree/main/.agents/skills/code-simplifier
Command: npx skills add https://github.com/tisfeng/Easydict --skill code-simplifier-tisfeng

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps teams refine recently modified code to improve readability, consistency, and maintainability without changing its functionality.

Core Features & Use Cases

  • Code simplification: Refactor for readability, naming clarity, and structural improvements while preserving behavior.
  • Apply project standards: Enforce English documentation comments, explicit naming, modern APIs, and minimal nesting per AGENTS.md.
  • Use Case: When reviewing recently touched code to prepare for release or code reviews.

Quick Start

Refactor the most recently modified code to improve readability and maintainability without altering its behavior.

Frequently Asked Questions about code-simplifier

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I refactor Swift code for readability without changing its behavior?

Refactoring Swift code for readability without altering behavior involves improving naming clarity, applying modern async/await APIs, and reducing nesting. This process targets recently touched files to ensure structural improvements align with project standards while preserving functionality.

How do I enforce English documentation comments and project standards in SwiftUI files?

Enforcing English documentation comments in SwiftUI files requires applying project standards like AGENTS.md to recently modified code. This ensures explicit naming, modular design, and modern API usage are consistently applied across cross-module implementations.

Can I simplify recently modified code to prepare for a code review?

Simplifying recently modified code for a review involves refining the touched files for maintainability and structural clarity. This ensures the codebase meets explicit naming requirements and avoids nested ternaries before submitting changes.

Does refactoring for code maintainability work with async/await patterns in Swift?

Refactoring for code maintainability supports async/await patterns in Swift by applying them during the simplification process. This modernizes recently modified code while ensuring minimal nesting and cross-module consistency.

What are the limitations of refactoring code for clarity using AGENTS.md standards?

Refactoring code for clarity using AGENTS.md standards is limited to codebases that adhere to these specific guidelines. It focuses on recently modified files and does not alter the underlying behavior of the existing functionality.