coding-standards-enforcer
БесплатноБез исполняемых скриптовНе проверенEnforce repository coding standards for Swift 6.2 strict concurrency, actor isolation, @Observable models, SWIFT_APPROACHABLE_CONCURRENCY, @concurrent…
от tomkrikorian★ 68 звёзд на GitHubОб этом скилле
Coding Standards Enforcer
Quick Start
Use this skill whenever Swift source changes are in scope and the question is whether the code matches the repository's concurrency, observation, and modern API standards.
- Classify the work first:
- Swift 6.2 build-setting / language-mode problem
- Swift
MainActor/ actor isolation /Sendableproblem - Observation
@Observable/ SwiftUI@State/@Bindableownership problem - modern API / style / safety cleanup
- Load only the reference files that match that category.
- Review the changed code in this order:
- compiler diagnostics and isolation boundaries
- ownership and observation model
- API modernization and safety
- Fix or flag deviations explicitly; do not leave standards violations implied.
Load References When
| Reference | When to Use |
|---|---|
references/standards-review-map.md |
When you need the review order, routing, and repo-level standards map. |
references/concurrency-guidelines.md |
When the work touches actors, @MainActor, Sendable, Task, async let, task groups, or strict concurrency diagnostics. |
references/observation-modeling.md |
When the work touches Observation @Observable, @ObservationIgnored, SwiftUI @State, @Bindable, @Binding, or typed environment data flow. |
references/modern-swift-apis.md |
When the work is about API modernization, Foundation replacements, formatting, string matching, force unwraps, or Swift-native style. |
Workflow
- Inspect the changed Swift files and note the primary failure class.
- Load the narrowest relevant reference file or files.
- Apply the minimum change that restores compliance.
- Rebuild or rerun the affected test scope if available.
- Summarize what was fixed, what was intentionally left alone, and any remaining migration debt.
When To Switch Skills
- Switch to
spatial-app-architecturewhen the core problem is scene ownership, feature decomposition, or state placement across surfaces. - Switch to
build-run-debugwhen the main blocker is a build failure or a runtime issue that still needs reproduction after standards fixes. - Switch to
test-triagewhen the work is primarily about narrowing a failing test scope rather than correcting standards violations directly.
Guardrails
- Do not impose a blanket
@MainActorpolicy. The isolation choice has to match ownership and runtime behavior. - In new SwiftUI or visionOS code, do not introduce
ObservableObject,@StateObject, or@ObservedObjectunless the user explicitly states a compatibility constraint or the existing architecture cannot yet leave Combine-based observation. - For Observation ownership, load
observation-modeling.mdinstead of duplicating its@Observable,@State, and@Bindablerules here. - Do not "fix" concurrency warnings by introducing unnecessary
Task.detached,DispatchQueue.main.async, or@unchecked Sendable. - Do not assume Swift 6.2 default actor isolation from memory; inspect project build settings when that choice affects the fix.
- Do not modernize APIs mechanically if it changes semantics.
Output Expectations
Provide:
- the files or symbols reviewed
- which standards category was applied
- the concrete violations fixed or still present
- the validation step used
- the next skill to use if the blocker is no longer a standards question
Установить coding-standards-enforcer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл coding-standards-enforcer?
Enforce repository coding standards for Swift 6.2 strict concurrency, actor isolation, @Observable models, SWIFT_APPROACHABLE_CONCURRENCY, @concurrent functions, and modern Swift APIs across visionOS app code. Use when reviewing, writing, or migrating Swift code in this plugin's scope.
Как установить скилл coding-standards-enforcer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл coding-standards-enforcer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic