swift-code-reviewer-skill 1.1.1 β 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -162
- package/README.md +91 -21
- package/SKILL.md +107 -725
- package/bin/install.js +87 -22
- package/package.json +16 -2
- package/references/companion-skills.md +70 -0
- package/skills/README.md +43 -0
- package/skills/swift-concurrency/NOTICE.md +18 -0
- package/skills/swift-concurrency/SKILL.md +235 -0
- package/skills/swift-concurrency/references/actors.md +640 -0
- package/skills/swift-concurrency/references/async-await-basics.md +249 -0
- package/skills/swift-concurrency/references/async-sequences.md +635 -0
- package/skills/swift-concurrency/references/core-data.md +533 -0
- package/skills/swift-concurrency/references/glossary.md +96 -0
- package/skills/swift-concurrency/references/linting.md +38 -0
- package/skills/swift-concurrency/references/memory-management.md +542 -0
- package/skills/swift-concurrency/references/migration.md +721 -0
- package/skills/swift-concurrency/references/performance.md +574 -0
- package/skills/swift-concurrency/references/sendable.md +578 -0
- package/skills/swift-concurrency/references/tasks.md +604 -0
- package/skills/swift-concurrency/references/testing.md +565 -0
- package/skills/swift-concurrency/references/threading.md +452 -0
- package/skills/swift-expert/NOTICE.md +18 -0
- package/skills/swift-expert/SKILL.md +226 -0
- package/skills/swift-expert/references/async-concurrency.md +363 -0
- package/skills/swift-expert/references/memory-performance.md +380 -0
- package/skills/swift-expert/references/protocol-oriented.md +357 -0
- package/skills/swift-expert/references/swiftui-patterns.md +294 -0
- package/skills/swift-expert/references/testing-patterns.md +402 -0
- package/skills/swift-testing/NOTICE.md +18 -0
- package/skills/swift-testing/SKILL.md +295 -0
- package/skills/swift-testing/references/async-testing.md +245 -0
- package/skills/swift-testing/references/dump-snapshot-testing.md +265 -0
- package/skills/swift-testing/references/fixtures.md +193 -0
- package/skills/swift-testing/references/integration-testing.md +189 -0
- package/skills/swift-testing/references/migration-xctest.md +301 -0
- package/skills/swift-testing/references/parameterized-tests.md +171 -0
- package/skills/swift-testing/references/snapshot-testing.md +201 -0
- package/skills/swift-testing/references/test-doubles.md +243 -0
- package/skills/swift-testing/references/test-organization.md +231 -0
- package/skills/swiftui-expert-skill/NOTICE.md +18 -0
- package/skills/swiftui-expert-skill/SKILL.md +281 -0
- package/skills/swiftui-expert-skill/references/accessibility-patterns.md +151 -0
- package/skills/swiftui-expert-skill/references/animation-advanced.md +403 -0
- package/skills/swiftui-expert-skill/references/animation-basics.md +284 -0
- package/skills/swiftui-expert-skill/references/animation-transitions.md +326 -0
- package/skills/swiftui-expert-skill/references/charts-accessibility.md +135 -0
- package/skills/swiftui-expert-skill/references/charts.md +602 -0
- package/skills/swiftui-expert-skill/references/image-optimization.md +203 -0
- package/skills/swiftui-expert-skill/references/latest-apis.md +464 -0
- package/skills/swiftui-expert-skill/references/layout-best-practices.md +266 -0
- package/skills/swiftui-expert-skill/references/liquid-glass.md +414 -0
- package/skills/swiftui-expert-skill/references/list-patterns.md +394 -0
- package/skills/swiftui-expert-skill/references/macos-scenes.md +318 -0
- package/skills/swiftui-expert-skill/references/macos-views.md +357 -0
- package/skills/swiftui-expert-skill/references/macos-window-styling.md +303 -0
- package/skills/swiftui-expert-skill/references/performance-patterns.md +403 -0
- package/skills/swiftui-expert-skill/references/scroll-patterns.md +293 -0
- package/skills/swiftui-expert-skill/references/sheet-navigation-patterns.md +363 -0
- package/skills/swiftui-expert-skill/references/state-management.md +417 -0
- package/skills/swiftui-expert-skill/references/view-structure.md +389 -0
- package/skills/swiftui-ui-patterns/NOTICE.md +18 -0
- package/skills/swiftui-ui-patterns/SKILL.md +95 -0
- package/skills/swiftui-ui-patterns/references/app-wiring.md +201 -0
- package/skills/swiftui-ui-patterns/references/async-state.md +96 -0
- package/skills/swiftui-ui-patterns/references/components-index.md +50 -0
- package/skills/swiftui-ui-patterns/references/controls.md +57 -0
- package/skills/swiftui-ui-patterns/references/deeplinks.md +66 -0
- package/skills/swiftui-ui-patterns/references/focus.md +90 -0
- package/skills/swiftui-ui-patterns/references/form.md +97 -0
- package/skills/swiftui-ui-patterns/references/grids.md +71 -0
- package/skills/swiftui-ui-patterns/references/haptics.md +71 -0
- package/skills/swiftui-ui-patterns/references/input-toolbar.md +51 -0
- package/skills/swiftui-ui-patterns/references/lightweight-clients.md +93 -0
- package/skills/swiftui-ui-patterns/references/list.md +86 -0
- package/skills/swiftui-ui-patterns/references/loading-placeholders.md +38 -0
- package/skills/swiftui-ui-patterns/references/macos-settings.md +71 -0
- package/skills/swiftui-ui-patterns/references/matched-transitions.md +59 -0
- package/skills/swiftui-ui-patterns/references/media.md +73 -0
- package/skills/swiftui-ui-patterns/references/menu-bar.md +101 -0
- package/skills/swiftui-ui-patterns/references/navigationstack.md +159 -0
- package/skills/swiftui-ui-patterns/references/overlay.md +45 -0
- package/skills/swiftui-ui-patterns/references/performance.md +62 -0
- package/skills/swiftui-ui-patterns/references/previews.md +48 -0
- package/skills/swiftui-ui-patterns/references/scroll-reveal.md +133 -0
- package/skills/swiftui-ui-patterns/references/scrollview.md +87 -0
- package/skills/swiftui-ui-patterns/references/searchable.md +71 -0
- package/skills/swiftui-ui-patterns/references/sheets.md +155 -0
- package/skills/swiftui-ui-patterns/references/split-views.md +72 -0
- package/skills/swiftui-ui-patterns/references/tabview.md +114 -0
- package/skills/swiftui-ui-patterns/references/theming.md +71 -0
- package/skills/swiftui-ui-patterns/references/title-menus.md +93 -0
- package/skills/swiftui-ui-patterns/references/top-bar.md +49 -0
- package/templates/agents/swift-code-reviewer.md +78 -0
- package/templates/commands/review.md +56 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,46 @@ All notable changes to the Swift Code Reviewer Agent Skill will be documented in
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [1.2.1] - 2026-04-21
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- `bin/install.js` now copies `skills/` and `templates/` directories during install β companion skill references in `SKILL.md` and `init` command templates were silently missing from `~/.claude/skills/` after install
|
|
15
|
+
|
|
16
|
+
## [1.2.0] - 2026-04-21
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- **Bundled companion skills** under `skills/` β five Swift/SwiftUI knowledge bases ship in-tree:
|
|
21
|
+
- `swiftui-expert-skill` β SwiftUI state management, view composition, Liquid Glass, macOS patterns ([@Dimillian](https://github.com/Dimillian))
|
|
22
|
+
- `swift-concurrency` β actors, Sendable, async/await, Swift 6 migration ([@AvdLee](https://github.com/AvdLee))
|
|
23
|
+
- `swift-testing` β Swift Testing framework, test doubles, snapshots, XCTest migration ([@AvdLee](https://github.com/AvdLee))
|
|
24
|
+
- `swift-expert` β Swift 6+ specialist: protocols, memory, concurrency, architecture ([@bocato](https://github.com/bocato))
|
|
25
|
+
- `swiftui-ui-patterns` β 32 component-level SwiftUI pattern references ([@Dimillian](https://github.com/Dimillian))
|
|
26
|
+
- `skills/README.md` β full index with attribution table and update instructions
|
|
27
|
+
- `NOTICE.md` per bundled skill with primary-author attribution and license note
|
|
28
|
+
- `bundledSkills` array in `skill.json` for tooling enumeration
|
|
29
|
+
- **`init` command**: scaffold review agent + `/review` slash command into any project via `npx swift-code-reviewer-skill init`
|
|
30
|
+
- **templates/ directory**: bundled agent (`swift-code-reviewer.md`) and command (`review.md`) templates
|
|
31
|
+
- `setup` alias for `init` in both installers
|
|
32
|
+
- **skill-review GitHub Action**: auto-reviews any `SKILL.md` changed in a PR for instant quality signal ([#2](https://github.com/Viniciuscarvalho/swift-code-reviewer-skill/pull/2), [@yogesh-tessl](https://github.com/yogesh-tessl))
|
|
33
|
+
- `npx skills add` as primary installation method in README
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
|
|
37
|
+
- `SKILL.md` cut by 71% β condensed to structured format with finding examples and phase checkpoints
|
|
38
|
+
- `SKILL.md` "Integration with Existing Skills" replaced by "Bundled Companion Skills" β cross-references point to in-tree `skills/<name>/references/` paths
|
|
39
|
+
- README "Integration with Other Skills" replaced by "Bundled Companion Skills" section with directory layout, author credits, and per-skill links
|
|
40
|
+
- README rewritten with `npx skills add` as primary install method; `init` as step 2
|
|
41
|
+
- `package.json` `files` array now includes `skills/` so bundled skills ship in the npm tarball
|
|
42
|
+
- `bin/install.js` and `install-skill.sh` now show `init` hint after install
|
|
43
|
+
|
|
44
|
+
### Fixed
|
|
45
|
+
|
|
46
|
+
- Resolves [#1](https://github.com/Viniciuscarvalho/swift-code-reviewer-skill/issues/1): companion knowledge bases now bundled directly in-repo instead of requiring a separate install step
|
|
47
|
+
|
|
8
48
|
## [1.1.1] - 2026-03-24
|
|
9
49
|
|
|
10
50
|
### Fixed
|
|
@@ -16,7 +56,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
16
56
|
|
|
17
57
|
### Added
|
|
18
58
|
|
|
19
|
-
-
|
|
59
|
+
- Increase adjusts from Dimillian skill and more scenarios to cover
|
|
20
60
|
|
|
21
61
|
## [1.0.0] - 2026-02-10
|
|
22
62
|
|
|
@@ -62,13 +102,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
62
102
|
- **feedback-templates.md** (666 lines): Review templates and severity guidelines
|
|
63
103
|
- **custom-guidelines.md** (852 lines): Project standards integration guide
|
|
64
104
|
|
|
65
|
-
#### Integration Features
|
|
66
|
-
|
|
67
|
-
- **swift-best-practices skill** integration for Swift 6+ language patterns
|
|
68
|
-
- **swiftui-expert-skill** integration for SwiftUI best practices
|
|
69
|
-
- **swiftui-performance-audit** integration for performance analysis
|
|
70
|
-
- **Independent operation** with comprehensive built-in checklists
|
|
71
|
-
|
|
72
105
|
#### Platform Support
|
|
73
106
|
|
|
74
107
|
- Swift 6.0+
|
|
@@ -76,169 +109,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
76
109
|
- GitHub and GitLab integration
|
|
77
110
|
- Local git repository support
|
|
78
111
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
- **README.md**: Comprehensive overview with examples and usage patterns
|
|
82
|
-
- **CONTRIBUTING.md**: Contribution guidelines and development setup
|
|
83
|
-
- **LICENSE**: MIT License
|
|
84
|
-
- **CHANGELOG.md**: Version history and change tracking
|
|
85
|
-
- **.gitignore**: Standard macOS and editor ignores
|
|
86
|
-
|
|
87
|
-
### Features in Detail
|
|
88
|
-
|
|
89
|
-
#### Swift Quality Checks
|
|
90
|
-
|
|
91
|
-
- Actor isolation and MainActor usage
|
|
92
|
-
- Sendable conformance validation
|
|
93
|
-
- Data race prevention
|
|
94
|
-
- Typed throws (Swift 6+)
|
|
95
|
-
- Force unwrap detection (!, as!, try!)
|
|
96
|
-
- Optional handling patterns
|
|
97
|
-
- Access control enforcement
|
|
98
|
-
- Swift API Design Guidelines compliance
|
|
99
|
-
|
|
100
|
-
#### SwiftUI Checks
|
|
101
|
-
|
|
102
|
-
- @Observable pattern adoption (iOS 17+)
|
|
103
|
-
- Property wrapper selection guide
|
|
104
|
-
- NavigationStack vs NavigationView
|
|
105
|
-
- .task vs .onAppear for async work
|
|
106
|
-
- Modern .onChange syntax
|
|
107
|
-
- State ownership rules
|
|
108
|
-
- View composition guidelines
|
|
109
|
-
- Accessibility compliance
|
|
110
|
-
|
|
111
|
-
#### Performance Checks
|
|
112
|
-
|
|
113
|
-
- View update optimization
|
|
114
|
-
- Equatable conformance for ViewModels
|
|
115
|
-
- ForEach identity stability
|
|
116
|
-
- GeometryReader overuse detection
|
|
117
|
-
- Layout thrash prevention
|
|
118
|
-
- AsyncImage for remote images
|
|
119
|
-
- Memory leak detection
|
|
120
|
-
- Retain cycle prevention
|
|
121
|
-
|
|
122
|
-
#### Security Checks
|
|
123
|
-
|
|
124
|
-
- Keychain usage for credentials
|
|
125
|
-
- Biometric authentication
|
|
126
|
-
- HTTPS enforcement
|
|
127
|
-
- Certificate pinning
|
|
128
|
-
- API key protection
|
|
129
|
-
- Input validation
|
|
130
|
-
- SQL injection prevention
|
|
131
|
-
- XSS prevention in WebViews
|
|
132
|
-
- Sensitive data logging prevention
|
|
133
|
-
|
|
134
|
-
#### Architecture Checks
|
|
135
|
-
|
|
136
|
-
- MVVM pattern validation
|
|
137
|
-
- Repository pattern implementation
|
|
138
|
-
- Dependency injection verification
|
|
139
|
-
- Use Case pattern detection
|
|
140
|
-
- Coordinator pattern for navigation
|
|
141
|
-
- Protocol-based abstractions
|
|
142
|
-
- Testability assessment
|
|
143
|
-
- Code organization (MARK comments, extensions)
|
|
144
|
-
|
|
145
|
-
#### Project Standards
|
|
146
|
-
|
|
147
|
-
- .claude/CLAUDE.md parsing and validation
|
|
148
|
-
- Custom architecture pattern validation
|
|
149
|
-
- Design system compliance (colors, fonts, spacing)
|
|
150
|
-
- Error handling pattern conformance
|
|
151
|
-
- Testing requirement verification
|
|
152
|
-
- Navigation pattern compliance
|
|
153
|
-
|
|
154
|
-
### Templates and Examples
|
|
155
|
-
|
|
156
|
-
#### Positive Feedback Templates
|
|
157
|
-
|
|
158
|
-
- Modern API adoption
|
|
159
|
-
- Architecture excellence
|
|
160
|
-
- Code quality
|
|
161
|
-
- Performance optimization
|
|
162
|
-
- Accessibility support
|
|
163
|
-
- Security awareness
|
|
164
|
-
|
|
165
|
-
#### Issue Report Templates
|
|
166
|
-
|
|
167
|
-
- Critical issues (security, crashes, data races)
|
|
168
|
-
- High priority (performance, anti-patterns)
|
|
169
|
-
- Medium priority (code quality, documentation)
|
|
170
|
-
- Low priority (style, suggestions)
|
|
171
|
-
|
|
172
|
-
#### Refactoring Suggestions
|
|
173
|
-
|
|
174
|
-
- Extract subview
|
|
175
|
-
- Simplify complex logic
|
|
176
|
-
- Extract reusable component
|
|
177
|
-
- Performance optimization opportunities
|
|
178
|
-
|
|
179
|
-
### Example Review Reports
|
|
180
|
-
|
|
181
|
-
Provided complete examples for:
|
|
182
|
-
|
|
183
|
-
- Reviewing uncommitted changes
|
|
184
|
-
- Reviewing against project standards
|
|
185
|
-
- Pull request reviews
|
|
186
|
-
- File-specific reviews
|
|
187
|
-
- Multi-file reviews
|
|
188
|
-
|
|
189
|
-
## [Unreleased]
|
|
190
|
-
|
|
191
|
-
### Planned Features
|
|
192
|
-
|
|
193
|
-
- **Swift 6.1 support**: Add new language features
|
|
194
|
-
- **iOS 18 patterns**: Add latest SwiftUI APIs
|
|
195
|
-
- **Xcode 16 integration**: Better Xcode project analysis
|
|
196
|
-
- **Custom rule engine**: User-defined review rules
|
|
197
|
-
- **Machine learning**: Pattern learning from reviewed code
|
|
198
|
-
- **Team metrics**: Aggregate review statistics
|
|
199
|
-
- **CI/CD integration**: Automated PR review comments
|
|
200
|
-
- **VSCode extension**: Direct editor integration
|
|
201
|
-
|
|
202
|
-
### Potential Enhancements
|
|
203
|
-
|
|
204
|
-
- **Video tutorials**: Screen recordings showing usage
|
|
205
|
-
- **Interactive examples**: Live code review demonstrations
|
|
206
|
-
- **Best practices database**: Searchable pattern library
|
|
207
|
-
- **Quick fixes**: Automated code corrections
|
|
208
|
-
- **Review presets**: Configurable review profiles
|
|
209
|
-
- **Multi-language support**: Objective-C, C++, SwiftUI previews
|
|
112
|
+
---
|
|
210
113
|
|
|
211
114
|
## Version History Summary
|
|
212
115
|
|
|
116
|
+
- **1.2.1** (2026-04-21): Fix installer not copying `skills/` and `templates/` directories
|
|
117
|
+
- **1.2.0** (2026-04-21): Bundle five companion Swift skills, add `init` scaffolding command, skill-review CI action, SKILL.md condensed 71%
|
|
213
118
|
- **1.1.1** (2026-03-24): Fix incorrect `install-skill.sh` (was XcodeBuildMCP installer)
|
|
214
119
|
- **1.1.0** (2026-03-16): Increase adjusts from Dimillian skill and more scenarios to cover
|
|
215
120
|
- **1.0.0** (2026-02-10): Initial release with comprehensive review capabilities
|
|
216
121
|
|
|
217
122
|
---
|
|
218
123
|
|
|
219
|
-
## How to Read This Changelog
|
|
220
|
-
|
|
221
|
-
- **Added**: New features
|
|
222
|
-
- **Changed**: Changes in existing functionality
|
|
223
|
-
- **Deprecated**: Soon-to-be removed features
|
|
224
|
-
- **Removed**: Removed features
|
|
225
|
-
- **Fixed**: Bug fixes
|
|
226
|
-
- **Security**: Vulnerability fixes
|
|
227
|
-
|
|
228
|
-
## Contributing
|
|
229
|
-
|
|
230
|
-
See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines on proposing changes.
|
|
231
|
-
|
|
232
|
-
## Release Process
|
|
233
|
-
|
|
234
|
-
1. Update version in SKILL.md
|
|
235
|
-
2. Update CHANGELOG.md with changes
|
|
236
|
-
3. Create git tag: `git tag -a v1.0.0 -m "Release 1.0.0"`
|
|
237
|
-
4. Push tag: `git push origin v1.0.0`
|
|
238
|
-
5. Create GitHub release with notes from CHANGELOG
|
|
239
|
-
|
|
240
|
-
---
|
|
241
|
-
|
|
242
124
|
**Note**: This skill follows [Semantic Versioning](https://semver.org/):
|
|
243
125
|
|
|
244
126
|
- **MAJOR**: Incompatible API changes
|
package/README.md
CHANGED
|
@@ -7,19 +7,49 @@ A code review skill for [Claude Code](https://docs.anthropic.com/en/docs/claude-
|
|
|
7
7
|
|
|
8
8
|
## Quick Start
|
|
9
9
|
|
|
10
|
+
### 1. Install the skill (global, once)
|
|
11
|
+
|
|
10
12
|
```bash
|
|
11
|
-
npx swift-code-reviewer-skill
|
|
13
|
+
npx skills add Viniciuscarvalho/swift-code-reviewer-skill
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
To update to the latest version later:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npx swift-code-reviewer-skill@latest
|
|
12
20
|
```
|
|
13
21
|
|
|
14
|
-
|
|
22
|
+
### 2. Add the review agent to your project (optional)
|
|
15
23
|
|
|
16
|
-
|
|
24
|
+
```bash
|
|
25
|
+
cd ~/Projects/YourApp
|
|
26
|
+
npx swift-code-reviewer-skill init
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
This scaffolds two files into your project:
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
.claude/
|
|
33
|
+
agents/swift-code-reviewer.md # review agent
|
|
34
|
+
commands/review.md # /review slash command
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Existing files are never overwritten.
|
|
38
|
+
|
|
39
|
+
### The review flow
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
You code --> /review before push (free, local) --> done
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
- `/review` runs the full review checklist against your staged or unstaged Swift changes
|
|
46
|
+
- `@swift-code-reviewer` invokes the agent directly for deeper analysis
|
|
17
47
|
|
|
18
48
|
## Usage
|
|
19
49
|
|
|
20
50
|

|
|
21
51
|
|
|
22
|
-
|
|
52
|
+
Ask Claude to review your code:
|
|
23
53
|
|
|
24
54
|
```
|
|
25
55
|
Review this PR
|
|
@@ -29,6 +59,12 @@ Review all ViewModels in the Features folder
|
|
|
29
59
|
Check if this follows our coding standards
|
|
30
60
|
```
|
|
31
61
|
|
|
62
|
+
Or use the slash command after running `init`:
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
/review
|
|
66
|
+
```
|
|
67
|
+
|
|
32
68
|
The skill automatically activates, reads your `.claude/CLAUDE.md` for project standards, and generates a structured report with severity levels, code examples, and prioritized action items.
|
|
33
69
|
|
|
34
70
|
### Example Output
|
|
@@ -42,11 +78,11 @@ The skill automatically activates, reads your `.claude/CLAUDE.md` for project st
|
|
|
42
78
|
|
|
43
79
|
## File: LoginViewModel.swift
|
|
44
80
|
|
|
45
|
-
|
|
81
|
+
Pass **Excellent Modern API Usage** (line 12)
|
|
46
82
|
|
|
47
83
|
- Using @Observable instead of ObservableObject
|
|
48
84
|
|
|
49
|
-
|
|
85
|
+
Issue **Force Unwrap Detected** (line 89)
|
|
50
86
|
Current: `let user = repository.currentUser!`
|
|
51
87
|
Fix:
|
|
52
88
|
guard let user = repository.currentUser else {
|
|
@@ -54,7 +90,7 @@ logger.error("No current user")
|
|
|
54
90
|
return
|
|
55
91
|
}
|
|
56
92
|
|
|
57
|
-
|
|
93
|
+
Issue **Violates Design System Standard** (line 45)
|
|
58
94
|
Current: `.foregroundColor(.blue)`
|
|
59
95
|
Fix: `.foregroundColor(AppColors.primary)`
|
|
60
96
|
|
|
@@ -77,12 +113,12 @@ Fix: `.foregroundColor(AppColors.primary)`
|
|
|
77
113
|
|
|
78
114
|
### Severity Levels
|
|
79
115
|
|
|
80
|
-
| Icon
|
|
81
|
-
|
|
|
82
|
-
|
|
|
83
|
-
|
|
|
84
|
-
|
|
|
85
|
-
|
|
|
116
|
+
| Icon | Severity | Action |
|
|
117
|
+
| -------- | -------- | ----------------------- |
|
|
118
|
+
| Critical | Critical | Must fix before merge |
|
|
119
|
+
| High | High | Should fix before merge |
|
|
120
|
+
| Medium | Medium | Fix in current sprint |
|
|
121
|
+
| Low | Low | Consider for future |
|
|
86
122
|
|
|
87
123
|
## Platform Support
|
|
88
124
|
|
|
@@ -115,6 +151,15 @@ Add a `.claude/CLAUDE.md` to your project and the skill will validate against yo
|
|
|
115
151
|
|
|
116
152
|
## Alternative Installation
|
|
117
153
|
|
|
154
|
+
<details>
|
|
155
|
+
<summary>NPX installer (installs skill only)</summary>
|
|
156
|
+
|
|
157
|
+
```bash
|
|
158
|
+
npx swift-code-reviewer-skill
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
</details>
|
|
162
|
+
|
|
118
163
|
<details>
|
|
119
164
|
<summary>Clone this repository</summary>
|
|
120
165
|
|
|
@@ -125,13 +170,13 @@ git clone https://github.com/Viniciuscarvalho/swift-code-reviewer-skill.git ~/.c
|
|
|
125
170
|
</details>
|
|
126
171
|
|
|
127
172
|
<details>
|
|
128
|
-
<summary>
|
|
173
|
+
<summary>Update to latest version</summary>
|
|
129
174
|
|
|
130
175
|
```bash
|
|
131
|
-
|
|
176
|
+
npx swift-code-reviewer-skill@latest
|
|
132
177
|
```
|
|
133
178
|
|
|
134
|
-
|
|
179
|
+
This replaces the existing `~/.claude/skills/swift-code-reviewer-skill/` with the latest files.
|
|
135
180
|
|
|
136
181
|
</details>
|
|
137
182
|
|
|
@@ -144,16 +189,41 @@ npx swift-code-reviewer-skill uninstall
|
|
|
144
189
|
|
|
145
190
|
</details>
|
|
146
191
|
|
|
147
|
-
##
|
|
192
|
+
## Bundled Companion Skills
|
|
193
|
+
|
|
194
|
+
This repo ships five companion skills under `skills/` so you get a complete, self-contained knowledge base after a single install β no extra steps required.
|
|
195
|
+
|
|
196
|
+
```
|
|
197
|
+
skills/
|
|
198
|
+
βββ README.md β full index + attribution
|
|
199
|
+
βββ swiftui-expert-skill/ β SwiftUI state, Liquid Glass, macOS patterns
|
|
200
|
+
βββ swift-concurrency/ β actors, Sendable, Swift 6 migration
|
|
201
|
+
βββ swift-testing/ β Swift Testing framework, doubles, snapshots
|
|
202
|
+
βββ swift-expert/ β Swift 6+ specialist: protocols, memory, architecture
|
|
203
|
+
βββ swiftui-ui-patterns/ β 32 component references (nav, sheets, gridsβ¦)
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
The reviewer's `SKILL.md` points to specific reference files inside each skill, so during a review Claude can read the exact guidance it needs without any extra configuration.
|
|
207
|
+
|
|
208
|
+
### Thanks to the original authors
|
|
209
|
+
|
|
210
|
+
The bundled skills are based on the public Swift/SwiftUI work of:
|
|
211
|
+
|
|
212
|
+
| Author | GitHub |
|
|
213
|
+
| ------------------- | ------------------------------------------ |
|
|
214
|
+
| Antoine van der Lee | [@AvdLee](https://github.com/AvdLee) |
|
|
215
|
+
| Thomas Ricouard | [@Dimillian](https://github.com/Dimillian) |
|
|
216
|
+
| Eduardo Bocato | [@bocato](https://github.com/bocato) |
|
|
148
217
|
|
|
149
|
-
|
|
218
|
+
Each skill folder contains a `NOTICE.md` with attribution details. Upstream folders carried no `LICENSE` or `AUTHORS` files β if you are an original author and want attribution updated or content removed, please [open an issue](https://github.com/Viniciuscarvalho/swift-code-reviewer-skill/issues).
|
|
150
219
|
|
|
151
220
|
## Contributing
|
|
152
221
|
|
|
153
222
|
1. Edit `SKILL.md` for main skill logic
|
|
154
223
|
2. Update reference files in `references/` for specific checklists
|
|
155
|
-
3.
|
|
156
|
-
4.
|
|
224
|
+
3. Add/modify templates in `templates/` for agent and command scaffolding
|
|
225
|
+
4. Test with real Swift/SwiftUI code
|
|
226
|
+
5. Submit a pull request
|
|
157
227
|
|
|
158
228
|
## License
|
|
159
229
|
|
|
@@ -161,7 +231,7 @@ MIT License - See [LICENSE](LICENSE) file for details.
|
|
|
161
231
|
|
|
162
232
|
---
|
|
163
233
|
|
|
164
|
-
**Made with
|
|
234
|
+
**Made with care for the Swift community**
|
|
165
235
|
|
|
166
236
|
If this skill helps your code reviews, please star the repository!
|
|
167
237
|
|