| name | lint |
| description | Run SwiftLint and swift-format checks on MiaoYan. Not for auto-fix on save (hook handles that). |
| version | 1.1.0 |
| allowed-tools | ["Bash"] |
Lint Skill
Use this skill to check or fix code style in MiaoYan.
SwiftLint
swiftlint lint
swiftlint lint --strict
swiftlint --fix
swiftlint lint --path Controllers/ViewController.swift
Config: .swiftlint.yml at project root.
swift-format
swift-format lint --recursive .
swift-format format --recursive --in-place .
Config: .swift-format at project root (line length: 240).
Run Both
swiftlint lint --strict && swift-format lint --recursive .
Safety Rules
- ALWAYS run lint check before proposing a commit
- NEVER auto-apply
--fix or --in-place without user confirmation