linting-pro
Skill8 starsChanged 12 days agoMITView on GitHub
Sets up, adopts, and reviews linting and formatting for Apple and Android projects — SwiftLint with SwiftFormat or swift-format, and ktlint, detekt, and Android Lint — including config files, opt-in and analyzer rules, baselines, suppression hygiene, finding triage, and CI gates. Use when adding a linter, turning one on in a legacy codebase, a rule fires and you're unsure whether to fix, tune, or suppress, or CI lint results are noisy or flaky.
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- android-accessibility-proSkill
- android-adaptive-layout-proSkill
- android-compose-proSkill
- android-coroutines-proSkill
- android-design-system-proSkill
- android-gradle-architecture-proSkill
- android-library-proSkill
- android-memory-storage-proSkill
- android-modularization-proSkill
- app-intents-proSkill
- beta-deployment-proSkill
- coredata-swift6-proSkill
- cross-platform-parity-proSkill
- flaky-tests-proSkill
- foundation-models-proSkill
- instruments-profiling-proSkill
- localization-proSkill
- motion-design-proSkill
- r8-shrink-proSkill
- store-compliance-proSkill
- swift-accessibility-proSkill
- swift-adaptive-layout-proSkill
- swift-concurrency-proSkill
- swiftdata-proSkill
- swift-design-system-proSkill
- swift-docc-proSkill
- swift-error-handling-proSkill
- swift-library-proSkill
- swift-logging-proSkill
- swift-memory-storage-proSkill
- swift-modularization-proSkill
- swift-package-proSkill
- swift-testing-proSkill
- swiftui-proSkill
- visionos-proSkill
- xcode-security-proSkill
- xml-to-compose-migration-proSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Set up: no linter yet. Write the config from the reference for the platform in scope and wire the CI step.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Make lint findings worth reading: one formatter owns layout, the linters catch real bugs, and CI blocks on them. This is the deep companion to the always-on apple-linting-strategy.md and android-linting-strategy.md rules. Report only genuine problems.
Pick the mode from the request:
- Set up: no linter yet. Write the config from the reference for the platform in scope and wire the CI step.
- Adopt on legacy code: a first run floods with findings. Exclude generated code, get the default rules to zero, then add opt-in rules (Apple) or burn down a baseline (Android) in batches.
- Review: audit the existing config, suppressions, and CI wiring against the checklist below.
Load only the reference for the platform in scope:
references/swiftlint.md— SwiftLint.swiftlint.ymlstructure, the opt-in and analyzer rules, suppression forms, triage tiers, where SwiftLint runs, incremental adoption, and SwiftFormat versus swift-format.references/android-lint-tools.md—.editorconfigfor ktlint,detekt.ymland type resolution, the Android Lintlint {}block andlint.xml, baselines, suppression, triage tiers, and CI placement.
Review Checklist
- One formatter. Exactly one tool rewrites layout; the linter's overlapping formatting rules (SwiftLint layout rules, detekt
formatting) are off. - Pinned versions for every lint tool, in the SPM plugin, Mint, Gemfile, or
libs.versions.toml. - High-value checks on: SwiftLint
force_unwrappingand the analyzer rules; detekt type resolution; Android LintlintDebugwithcheckDependencies. - Generated and vendored code excluded.
- Suppressions are scoped and explained: no
swiftlint:disable all, no unpaired regiondisable, no@file:Suppress, every suppression has a reason. - Baselines shrink:
detekt-baseline.xmlandlint-baseline.xmlaren't regenerated in the same PR that adds code. - CI is the gate:
swiftlint --strictorktlintCheck+detekt+lintDebug, blocking; correctness rules aterror.
Triage Order
For each finding: fix the code, else tune the rule's threshold once, else suppress the one instance with a reason, else (rarely) disable the rule project-wide with a comment. A finding cleared by a step further down the list than it needed is itself a finding.
Output Format
Group findings by severity: blocking (CI not gating, unpinned tools, regenerated baselines, blanket suppressions), degraded (missing high-value rules, two formatters, analyzer not run), polish (threshold tuning, rule ordering). Give each as file:line, the problem, and the fix with the config or code change. End with the count per severity and the first three fixes.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

