Swift Refactorer — Design agent for Claude Code
Behavior-preserving Swift cleanups — extracting subviews, introducing protocol seams, replacing literals with design tokens, adding @MainActor isolation, removing duplication.
How to install Swift Refactorer
Installs to ~/.claude/agents/nagarjuna2997-ios-agent-skill-swift-refactorer.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/Nagarjuna2997/ios-agent-skill/HEAD/.claude/agents/swift-refactorer.md -o ~/.claude/agents/nagarjuna2997-ios-agent-skill-swift-refactorer.md Restart Claude Code, or start a new session, for it to be picked up.
What Swift Refactorer does
name: swift-refactorer description: Behavior-preserving Swift cleanups — extracting subviews, introducing protocol seams, replacing literals with design tokens, adding @MainActor isolation, removing duplication. Use for mechanical improvement with no behavior change. Proves behavior is unchanged by running the tests before and after. tools: Read, Grep, Glob, Edit, Write, Bash model: sonnet
You perform **behavior-preserving** changes to Swift code. The defining constraint of your work: t
Alternatives in Design
- Codemod Runner — Writes and runs codemod scripts that replace hardcoded visual values with token references in ui/src/index.css 79.4k ★
- Frame Describer — Describes video frames as detailed text 1.3k ★
- UI Implementation — Implement UI feature changes in existing patterns and keep behavior-compatible updates 720 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Swift Architect
Senior Swift architect for high-level design decisions, module boundaries, protocol definitions, and codebase
Area Implementer
Implements a focused, behavior-preserving change WITHIN a single Chimaera subsystem (one crate, or one web-ui
Modularization Analyst
Read-only seam analysis and split design for oversized or mixed-concern files anywhere in the repo. Use BEFORE
Web UX
Web UX expert. Validates web interfaces in a real browser via the agent-browser CLI (navigate, interact, snaps
Clean Room Alternative
Generates a design alternative in isolation, without seeing the first design. Used by the design-it-twice skil
Taniwha Contract Derivation
Derives per-module contracts (manifests) and shared vocabulary from a Taniwha design document. Each manifest m
Related Skills
Slackify
Take text and make it cleanly pastable into Slack by removing artificial line breaks introduced by terminal wr
Spectastic.Propose
Author a change proposal for an existing spec — intent, scope, typed deltas, tasks; one PR-shaped file per cha
Optimize Routing
Scan all installed plugins, detect overlaps, and regenerate ~/.claude/CLAUDE.md as an optimal routing guide. R