coding-best-practices
Skill by rshankras
Reviews macOS Swift 6+ code for modern idioms, SOLID principles, SwiftData patterns, and concurrency practices. It is for developers who want structured feedback on macOS code quality.
Install coding-best-practices
Built from the published package, never by AI.
git clone --depth 1 https://github.com/rshankras/claude-code-apple-skills /tmp/claude-code-apple-skills && mkdir -p ~/.claude/skills && cp -r /tmp/claude-code-apple-skills/skills/macos/coding-best-practices ~/.claude/skills/coding-best-practicesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/rshankras/claude-code-apple-skills /tmp/claude-code-apple-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claude-code-apple-skills/skills/macos/coding-best-practices ~/.gemini/antigravity-cli/skills/coding-best-practicesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install coding-best-practices in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Coding Best Practices is an agent skill that guides an AI assistant through reviews of macOS Swift code. The skill covers Swift 6+ language patterns, SOLID and DRY principles, Clean Architecture, SwiftData and Core Data persistence, code organization, and modern concurrency. It asks for the code's purpose and target macOS version first, then reviews the code against each module's guidelines.
For each issue, the skill names the principle violated, explains the impact, and shows a concrete fix. It sorts feedback into critical, important, and nice-to-have groups. It also lists macOS SwiftUI baseline APIs to expect, such as NavigationSplitView, MenuBarExtra, and Table. The skill is aimed at developers reviewing or auditing macOS codebases.
Written from the project's SKILL.md and checked against it.
What it can do
- Swift 6 reviewChecks code against modern Swift 6+ language features and idioms.
- SOLID and DRY reviewFlags design principle violations and code duplication, with fixes.
- SwiftData patternsReviews data persistence with a SwiftData-first approach and Core Data when needed.
- Concurrency reviewChecks async/await, actors, Sendable, and MainActor usage.
- macOS SwiftUI baselineFlags hand-rolled code where standard macOS APIs such as Table or MenuBarExtra apply.
- Prioritized feedbackGroups findings into critical, important, and nice-to-have categories.
What you need
- macOS codebase
- Swift 6+ code
Try asking
- Review my macOS Swift code for SOLID and DRY violations
- Check my SwiftData models and concurrency usage for best practices
- Audit this SwiftUI settings pane against macOS baseline APIs
Good to know
- Allowed tools are limited to Read, Glob and Grep.
- Module files it references are not included in the provided text.
- Focused on macOS and Swift; not a general code review tool.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/macos/coding-best-practices/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadGlobGrep
Alternatives to coding-best-practices
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
coding-best-practices: common questions
What kind of code does this skill review?
It reviews macOS Swift code for modern idioms, SOLID principles, SwiftData patterns, and concurrency best practices. The skill targets macOS 26 (Tahoe) development.
Does it change my code?
The skill's allowed tools are Read, Glob and Grep. It is written to provide feedback with fix examples rather than edit files.
Does it cover SwiftUI on macOS?
Yes. It lists baseline macOS SwiftUI APIs such as NavigationSplitView, MenuBarExtra, Table, and formStyle(.grouped) to check against.
How do I install coding-best-practices?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is coding-best-practices free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is coding-best-practices safe to use?
It scores 81 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to coding-best-practices?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
