Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use this skill when working on Swift projects (SwiftPM packages, iOS/macOS apps) and you want consistent patterns for concurrency, structure, and safety.
.claude/skills/amariahak-swift-patterns/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 16% | 0% |
| case-13 | ✓→✓ | = Same ✓ | -39% | 0% |
| case-02 | ✓→✓ | = Same ✓ | -28% | 0% |
| case-03 | ✓→✓ | = Same ✓ | -10% | 0% |
| case-04 | ✓→✓ | = Same ✓ | -16% | 0% |
Use this skill when working on Swift projects (SwiftPM packages, iOS/macOS apps) and you want consistent patterns for concurrency, structure, and safety.
Package.swift is the source of truthRules:
async/await for IOPrefer:
struct for value semanticsclass when identity/shared mutable state is requiredPackage.swift and target layout.swift test or Xcode build scripts depending on project.| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-13 | pass→pass | 10,217 | 5,158 | -50% | 1 | 1 | 0% | 1,919 | 1,178 | -39% | 0 | 0 | — |
case-01 | fail→pass | 15,524 | 15,411 | -1% | 1 | 1 | 0% | 3,169 | 3,663 | +16% | 0 | 0 | — |
case-02 | pass→pass | 8,792 | 5,201 | -41% | 1 | 1 | 0% | 1,657 | 1,192 | -28% | 0 | 0 | — |
case-03 | pass→pass | 13,751 | 15,639 | +14% | 1 | 1 | 0% | 2,781 | 2,509 | -10% | 0 | 0 | — |
case-04 | pass→pass | 10,179 | 6,975 | -31% | 1 | 1 | 0% | 1,873 | 1,572 | -16% | 0 | 0 | — |
case-05 | pass→pass | 12,350 | 11,744 | -5% | 1 | 1 | 0% | 2,316 | 2,359 | +2% | 0 | 0 | — |
case-06 | pass→pass | 13,309 | 5,296 | -60% | 1 | 1 | 0% | 2,271 | 1,272 | -44% | 0 | 0 | — |
case-07 | pass→pass | 14,630 | 9,463 | -35% | 1 | 1 | 0% | 2,289 | 1,883 | -18% | 0 | 0 | — |
case-08 | pass→pass | 10,662 | 5,860 | -45% | 1 | 1 | 0% | 1,910 | 1,240 | -35% | 0 | 0 | — |
case-09 | pass→pass | 11,759 | 8,533 | -27% | 1 | 1 | 0% | 2,018 | 1,749 | -13% | 0 | 0 | — |
case-10 | pass→pass | 13,563 | 6,995 | -48% | 1 | 1 | 0% | 2,033 | 1,535 | -24% | 0 | 0 | — |
case-11 | pass→pass | 17,456 | 14,062 | -19% | 1 | 1 | 0% | 2,773 | 2,574 | -7% | 0 | 0 | — |
case-12 | pass→pass | 5,802 | 1,957 | -66% | 1 | 1 | 0% | 868 | 570 | -34% | 0 | 0 | — |
case-14 | pass→pass | 15,211 | 7,761 | -49% | 1 | 1 | 0% | 2,174 | 1,533 | -29% | 0 | 0 | — |
case-15 | pass→pass | 11,413 | 10,702 | -6% | 1 | 1 | 0% | 2,436 | 2,375 | -3% | 0 | 0 | — |
case-16 | pass→pass | 12,756 | 11,464 | -10% | 1 | 1 | 0% | 2,194 | 1,720 | -22% | 0 | 0 | — |
case-17 | pass→pass | 10,287 | 3,818 | -63% | 1 | 1 | 0% | 1,746 | 815 | -53% | 0 | 0 | — |
case-18 | pass→pass | 18,407 | 8,609 | -53% | 1 | 1 | 0% | 2,176 | 1,586 | -27% | 0 | 0 | — |
case-19 | pass→pass | 12,371 | 9,681 | -22% | 1 | 1 | 0% | 2,146 | 1,893 | -12% | 0 | 0 | — |
case-20 | pass→pass | 13,376 | 11,921 | -11% | 1 | 1 | 0% | 2,508 | 2,453 | -2% | 0 | 0 | — |
case-21 | pass→pass | 17,588 | 15,501 | -12% | 1 | 1 | 0% | 3,140 | 3,094 | -1% | 0 | 0 | — |
case-22 | pass→pass | 11,339 | 7,113 | -37% | 1 | 1 | 0% | 2,246 | 1,649 | -27% | 0 | 0 | — |
case-23 | pass→pass | 8,471 | 5,511 | -35% | 1 | 1 | 0% | 1,427 | 1,211 | -15% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted. The headline lift of +4 percentage points is the difference between those two pass rates over the 23 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.