/ios-workflow:code-reviewfrom ios-workflow
Reviews new and modified Swift files in the current branch for code quality, applying DRY, SOLID, naming, and formatting standards, then applies fixes incrementally.
Ships in ios-workflow. Installing the plugin adds it to Claude Code.
Project context: Values in angle brackets below (e.g.
<scheme>,<JIRA_KEY>,<flag-key-enum>) are resolved at runtime — detect them from the project (xcodebuild -list -jsonfor the scheme,git/ghfor repo & owner, the branch name for the Jira key, a codebase search for flag/font files), or ask if they cannot be inferred. This plugin ships no per-project config.
You are performing a code quality review on new or modified files in the current branch.
Review all new and modified Swift files (excluding test files) in the current branch, applying the principles below. Then apply the fixes.
git diff --name-only HEAD~1 or git status to find new/modified Swift source filesurl, id)isLoading, hasError, shouldRetry// MARK: - Section Name) are acceptable and should be keptFont.custom("GTUltra-...", size: N) — use DS font modifiers insteadModules/DS/Sources/DS/Font/Modifiers/FontScaleModifier.swift for available ``Font() (your design-system font scale modifiers) View modifiersModules/DS/Sources/DS/Font/Scale/<font-scale-tokens>.swift which defines the font family (via CustomFont) and size (via <font-size-tokens>)Modules/DS/Sources/DS/Typography/FontProvider/CustomFont.swiftModules/DS/Sources/DS/Font/Size/<font-size-tokens>.swiftCustomFont case matching the font name, then find the <font-scale-tokens> case that combines that font with the target sizeFont.custom("GTUltra..." usage and suggest the matching modifierModules/UIComponents/Sources/UIComponents/ for existing components (buttons, cards, etc.) that can be reused instead of building custom UI inlineButtonComponent and its styles — prefer using or adding a ButtonComponentStyle case over custom Button implementations<scheme>/Resources/Localizable.strings, not hardcoded in views<scheme>/Resources/Localizable.strings using dot-notation matching the feature area:
"FeatureName.elementName" = "The visible text";
FeatureName.elementName becomes R.string.localizable.featureNameElementName()R.string.localizable.featureNameElementName() — this returns a StringText, use: Text(R.string.localizable.featureNameElementName())ButtonComponent or any String parameter, pass the R.swift call directlyRun swiftformat on all changed and added files (including untracked):
# Get all modified and new Swift files
git diff --name-only HEAD | grep '\.swift$' | xargs swiftformat
git ls-files --others --exclude-standard | grep '\.swift$' | xargs swiftformat
After completing the review and fixes, provide a summary:
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub carloshpdoc/ios-workflow-claude --plugin ios-workflow22 commands in this plugin
/apollo-checkApollo Repository Investigation> **Project context:** Values in angle brackets below (e.g. `<scheme>`, `<JIRA_KEY>`, `<flag-key-enum>`) are resolved at runtime — detect them from the project (`xcodebuild -list -json` for the scheme, `git`/`gh` for repo & owner, the branch name for the Jira key, a codebase search for flag/font files), or ask if they cannot be inferred. This plugin ships no per-project config./apollo-migrateApollo Repository Migration> **Project context:** Values in angle brackets below (e.g. `<scheme>`, `<JIRA_KEY>`, `<flag-key-enum>`) are resolved at runtime — detect them from the project (`xcodebuild -list -json` for the scheme, `git`/`gh` for repo & owner, the branch name for the Jira key, a codebase search for flag/font files), or ask if they cannot be inferred. This plugin ships no per-project config./apollo-reviewApollo Migration Self-Review> **Project context:** Values in angle brackets below (e.g. `<scheme>`, `<JIRA_KEY>`, `<flag-key-enum>`) are resolved at runtime — detect them from the project (`xcodebuild -list -json` for the scheme, `git`/`gh` for repo & owner, the branch name for the Jira key, a codebase search for flag/font files), or ask if they cannot be inferred. This plugin ships no per-project config./apollo-statusApollo Migration Status> **Project context:** Values in angle brackets below (e.g. `<scheme>`, `<JIRA_KEY>`, `<flag-key-enum>`) are resolved at runtime — detect them from the project (`xcodebuild -list -json` for the scheme, `git`/`gh` for repo & owner, the branch name for the Jira key, a codebase search for flag/font files), or ask if they cannot be inferred. This plugin ships no per-project config./apollo-tasksCreate Apollo Migration Jira Tasks> **Project context:** Values in angle brackets below (e.g. `<scheme>`, `<JIRA_KEY>`, `<flag-key-enum>`) are resolved at runtime — detect them from the project (`xcodebuild -list -json` for the scheme, `git`/`gh` for repo & owner, the branch name for the Jira key, a codebase search for flag/font files), or ask if they cannot be inferred. This plugin ships no per-project config./bumpBump VersionBump the app version or build number across all targets in the current project.Other plugins' commands for the same job