swift-code-reviewer-skill 1.2.0 → 1.3.0

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