Lint
Testing & QualitylintLint is an Agent Skill for testing & quality published in the tw93/MiaoYan repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Run SwiftLint and swift-format checks on MiaoYan. There is no auto-fix hook; run `swiftlint --fix` or `swift-format format --in-place` manually when fixes are needed.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/tw93/MiaoYan/blob/HEAD/.agents/skills/lint/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/lint, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
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
- ALWAYS run lint check before proposing a commit
- NEVER auto-apply
--fixor--in-placewithout user confirmation