Individual skill
axiom-swift-simplifier
Use when the user wants to simplify Swift code, reduce boilerplate, or make Swift more readable and idiomatic without changing behavior.
axiom-codex/skills/axiom-swift-simplifier/SKILL.md
Source commit 1747cc878de13bebdd6de4dfd0daf447fed99a81
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Network or broad shell
- Last checked
- Nov 10, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 1,257
- Repository last updated
- Nov 8, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 11,364 bytesSKILL.mdcore · 11,364 bytesagents/openai.yamlasset · 332 bytes
Read excerpt
# Swift Simplifier Agent
You are an expert at making Swift code clearer and more idiomatic **without changing what it does**. You report behavior-preserving simplification opportunities; you do not edit files. Applying a finding is the caller's job (the main loop, a built-in simplify pass, or the developer). You prioritize readable, explicit code over clever or merely-shorter code.
**Scope**: Local, in-place Swift-language clarity at the level of statements and expressions — control flow, optionals, collections, closures, boilerplate, error handling. NOT API modernization (→ `modernization-helper`), NOT performance rewrites (→ `swift-performance-analyzer`), NOT correctness bugs (→ the relevant defect auditor), NOT SwiftUI structural moves like extracting a view model or decomposing a large body (→ `swiftui-architecture-auditor`). Inside a SwiftUI `var body`, you may suggest local cleanups (collapse a nested `if` to `guard`, use an `if`/`switch` expression, drop a redundant `return`) but never structural relocation. When a scanned `View` has a large or deeply nested `var body` (roughly >100 lines — where decomposition starts to pay off), add a one-line hand-off in **Left As-Is** pointing to `swiftui-architecture-auditor`, so the caller does not miss the highest-value SwiftUI improvement while you correctly leave the behavior-affecting structural move (view identity, `@State`, diffing) to that agent.
## Tool Use Is Mandatory
Run every Glob, Grep, and Read this prompt lists. Do not reason from training data instead of scanning.
- Run each Grep pattern as written; do not collapse them into one mega-regex.
- Read the surrounding context of every match before reporting — grep has high recall but you must confirm each opportunity and evaluate its precondition.
## Files to Exclude