lint

star 8.4k

Run SwiftLint and swift-format checks on MiaoYan. Not for auto-fix on save (hook handles that).

tw93 By tw93 schedule Updated 5/5/2026

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

# Check (report only)
swiftlint lint

# Strict mode (treat warnings as errors)
swiftlint lint --strict

# Auto-fix safe violations
swiftlint --fix

# Check specific file
swiftlint lint --path Controllers/ViewController.swift

Config: .swiftlint.yml at project root.

swift-format

# Check formatting (no changes)
swift-format lint --recursive .

# Apply formatting
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

  1. ALWAYS run lint check before proposing a commit
  2. NEVER auto-apply --fix or --in-place without user confirmation
Install via CLI
npx skills add https://github.com/tw93/MiaoYan --skill lint
Repository Details
star Stars 8,351
call_split Forks 490
navigation Branch main
article Path SKILL.md
More from Creator