axiom-swift-simplifier

Analyze Swift source code for behavior-preserving readability refactorings.

34|2|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/DengNaichen/Stet --skill axiom-swift-simplifier
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: axiom-swift-simplifier
Source: https://github.com/DengNaichen/Stet/tree/main/.agents/skills/axiom-swift-simplifier
Command: npx skills add https://github.com/DengNaichen/Stet --skill axiom-swift-simplifier

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the accumulation of verbose, outdated, or non-idiomatic Swift code that hinders readability and maintainability without requiring functional changes.

Core Features & Use Cases

  • Idiomatic Refactoring: Automatically identifies opportunities to use modern Swift features like shorthand optional binding, if-let expressions, and trailing closures.
  • Boilerplate Reduction: Detects redundant code patterns such as unnecessary returns, explicit type annotations, and verbose computed properties.
  • Use Case: Use this skill during a code review or refactoring sprint to clean up a legacy codebase, ensuring the project adheres to current Swift best practices while preserving existing logic.

Quick Start

Run the axiom-swift-simplifier skill on the current directory to identify and report all readability improvements.

Frequently Asked Questions about axiom-swift-simplifier

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

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

You can reduce Swift boilerplate by detecting redundant code patterns such as unnecessary returns, explicit type annotations, and verbose computed properties. The skill scans local file systems to report these readability improvements automatically.

What is idiomatic Swift refactoring and when do I need it?

Yes, this Swift refactoring approach is safe for existing logic because it operates non-destructively. It enforces safety gates and precondition verification for every suggested change, ensuring the suggested cleanup preserves the original functionality.

Does this Swift code cleanup tool work on local file systems without dependencies?

Yes, this Swift code cleanup tool operates directly on local file systems without requiring external dependencies. It scans your local directories to identify specific patterns in control flow, collections, and closure syntax for non-destructive code cleanup.

What are the limitations of automated Swift refactoring for legacy codebases?

The main limitation of automated Swift refactoring is that it strictly enforces safety gates and precondition verification for every suggested change. It focuses solely on non-destructive code cleanup and readability, meaning it will not introduce new functional changes.