Agent skill

Coding Best Practices

by KartikLabhshetwar in KartikLabhshetwar/better-shot

Reviews macOS Swift 6+ code for modern idioms, SOLID principles, SwiftData patterns, and concurrency best practices.

Custom licenceAuto-check passedDevelopment

Install Coding Best Practices

skills CLI
$ npx skills add KartikLabhshetwar/better-shot --skill coding-best-practices -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install KartikLabhshetwar/better-shot coding-best-practices --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/KartikLabhshetwar/better-shot.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/macos-development/coding-best-practices .claude/skills/coding-best-practices && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
coding-best-practices
GitHub stars
2.4k
Used in
2 other repos
Token cost
~1.8k tokens
SKILL.md length
678 words
Files
6
Skills in repo
12
Repo updated
First seen
Licence
Custom licence

At a glance

Reviews macOS Swift 6+ code for modern idioms, SOLID principles, SwiftData patterns, and concurrency best practices.

  • Works in 4 steps: Understand Context → Systematic Review → Provide Structured Feedback → …
  • Reviewing macOS code quality
  • SKILL.md covers When This Skill Activates, Your Role, Core Focus Areas and How to Conduct Reviews, plus 6 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Coding Best Practices is an agent skill from KartikLabhshetwar/better-shot. Reviews macOS Swift 6+ code for modern idioms, SOLID principles, SwiftData patterns, and concurrency best practices. Use when reviewing macOS code quality or asking about best practices.

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files (for example `architecture-principles.md`, `code-organization.md` and `data-persistence.md`).

It sits in Development, covering Design patterns, iOS development and Code quality. It works with macOS, Swift and SwiftUI. The repository describes itself as: Screenshot, screen recording, and video editor for macOS. Native SwiftUI app with capture deck, 75+ customizable shortcuts, URL scheme automation, and self-hosted cloud sharing…

When your agent uses it

  • Reviewing macOS code quality
  • Asking about best practices

Example prompts

  • “Use the coding-best-practices skill to review macOS Swift 6+ code for modern idioms, SOLID principles, SwiftData patterns, and concurrency best…”
  • “/coding-best-practices”

Requirements

  • Pre-approved tools (allowed-tools): Read, Glob, Grep

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Understand Context
  2. Systematic Review
  3. Provide Structured Feedback
  4. Prioritize Recommendations

What it can do on your machine

Read from SKILL.md and the folder at commit 102b364. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Glob
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Coding Best Practices loads about 1.8k tokens when it runs. Until then it costs about 52 tokens; SKILL.md has 678 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~52
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 678 words (~1,756 tokens).

“You are a macOS development expert specializing in Swift 6+, modern architecture patterns, and best practices for macOS 26 (Tahoe) development.”

— opening of SKILL.md by KartikLabhshetwar, Custom licence
name
coding-best-practices
allowed-tools
Read, Glob, Grep
last_verified
2026-07-16
review_by
2027-06-22
os_version
iOS 27 / macOS 27

Read the full SKILL.md on GitHub

Files

SKILL.md and 5 other files in .agents/skills/macos-development/coding-best-practices of KartikLabhshetwar/better-shot.

  • SKILL.md
  • architecture-principles.md
  • code-organization.md
  • data-persistence.md
  • modern-concurrency.md
  • swift-language.md

Open the folder on GitHubat commit 102b364

Used in 2 other repositories

We found 3 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in KartikLabhshetwar/better-shot, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Coding Best Practices next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Coding Best Practices compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Coding Best Practices this skillKartikLabhshetwar/better-shot2.4k2 repos~1.8kAutomated safety check: PassCustom licence
Swift ExpertJeffallan/claude-skills12k—~1.5kAutomated safety check: PassMIT
Snapshot Testsmicrosoft/SwiftStreamingMarkdown378—~2.2kAutomated safety check: PassMIT
Bootstrap iOSRayFernando1337/rayfernando-skills130—~1.1kAutomated safety check: PassApache-2.0
Swift Developmentaiskillstore/marketplace430—~1.8kAutomated safety check: PassNone
Swiftui DevelopmentMindrally/skills268—~2.3kAutomated safety check: PassApache-2.0

Similar skills

  • Swift Expert

    Jeffallan/claude-skills

    Builds Swift apps for Apple platforms with SwiftUI, protocol-oriented design, async/await, actors and Sendable checks, verified with swift build and swift test.

    12k GitHub stars~1.5k tokensUpdated 4 days ago
    MobileAuto-check passed
  • Snapshot Tests

    microsoft/SwiftStreamingMarkdown

    Official

    Record and validate swift-snapshot-testing snapshots in the SwiftStreamingMarkdown package: regenerate reference PNGs, run snapshot tests, and diff failed snapshots.

    378 GitHub stars~2.2k tokensUpdated 13 days ago
    MobileAuto-check passed
  • Bootstrap iOS

    RayFernando1337/rayfernando-skills

    Bootstrap agents for iOS, iPadOS, macOS, Swift, SwiftUI, SwiftData/Core Data, Swift Testing, Xcode build/test/debug, Simulator, App Intents, or XcodeBuildMCP work.

    130 GitHub stars~1.1k tokensUpdated 2 mo ago
    MobileAuto-check passed
  • Swift Development

    aiskillstore/marketplace

    Comprehensive Swift development for building, testing, and deploying iOS/macOS applications.

    430 GitHub stars~1.8k tokensUpdated today
    MobileAuto-check passed
  • Swiftui Development

    Mindrally/skills

    Guidelines for building SwiftUI applications with MVVM/Clean Architecture, Swift 6 strict concurrency, and modern state management.

    268 GitHub stars~2.3k tokensUpdated 1 mo ago
    MobileAuto-check passed
  • Pulse Release

    qunqin24/Pulse

    Release a new Pulse version end to end — checks, bilingual CHANGELOG entry, VERSION, tag, the release workflow, syncing main, and the issue replies that go with it.

    516 GitHub stars~1.3k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from KartikLabhshetwar/better-shot

All 12 skills in this repo
  • Appkit Swiftui Bridge

    KartikLabhshetwar/better-shot

    Expert guidance for hybrid AppKit-SwiftUI development. An agent skill from KartikLabhshetwar/better-shot.

    2.4k GitHub starsUsed in 2 repos~1.1k tokens
    Auto-check passed
  • Ip As Logo

    KartikLabhshetwar/better-shot

    Generate extremely simple, cute, personified square character images with rounded heavy forms, two purposeful character colors, one solid background color, and a dominant lower-corner composition.

    2.4k GitHub starsUsed in 1 repo~4.3k tokens
    Auto-check passed
  • Architecture Patterns

    KartikLabhshetwar/better-shot

    Deep dive into software architecture for macOS. An agent skill from KartikLabhshetwar/better-shot.

    2.4k GitHub starsUsed in 2 repos~1.4k tokens
    Auto-check passed
  • macOS Capabilities

    KartikLabhshetwar/better-shot

    Expert guidance on macOS platform capabilities. An agent skill from KartikLabhshetwar/better-shot.

    2.4k GitHub starsUsed in 2 repos~1.1k tokens
    Auto-check passed
  • macOS Development

    KartikLabhshetwar/better-shot

    Comprehensive macOS development guidance including Swift 6+, SwiftUI, SwiftData, architecture patterns, AppKit bridging, and macOS 26 Tahoe APIs.

    2.4k GitHub starsUsed in 2 repos~735 tokens
    Auto-check passed
  • Swiftdata Architecture

    KartikLabhshetwar/better-shot

    Deep dive into SwiftData design patterns and best practices.

    2.4k GitHub starsUsed in 2 repos~1.2k tokens
    Auto-check passed

Categories

Questions about Coding Best Practices

What does Coding Best Practices do?

Reviews macOS Swift 6+ code for modern idioms, SOLID principles, SwiftData patterns, and concurrency best practices. Coding Best Practices is an agent skill from KartikLabhshetwar/better-shot. Reviews macOS Swift 6+ code for modern idioms, SOLID principles, SwiftData patterns, and concurrency best practices.

When should I use Coding Best Practices?

Coding Best Practices fits situations like: reviewing macOS code quality; asking about best practices.

How do I install Coding Best Practices in Claude Code?

Run `npx skills add KartikLabhshetwar/better-shot --skill coding-best-practices -a claude-code`. Or copy the skill folder (.agents/skills/macos-development/coding-best-practices in KartikLabhshetwar/better-shot) into .claude/skills/coding-best-practices in your project. Claude Code loads it when a task matches its description.

How do I install Coding Best Practices in Codex?

Run `npx skills add KartikLabhshetwar/better-shot --skill coding-best-practices -a codex`. Or copy the skill folder (.agents/skills/macos-development/coding-best-practices in KartikLabhshetwar/better-shot) into .agents/skills/coding-best-practices in your project. Codex loads it when a task matches its description.

Can I use Coding Best Practices in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add KartikLabhshetwar/better-shot --skill coding-best-practices -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/coding-best-practices, .gemini/skills/coding-best-practices, .github/skills/coding-best-practices and .opencode/skills/coding-best-practices in your project.

What does Coding Best Practices need to run?

SKILL.md names no scripts, command-line tools or credentials: Coding Best Practices is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Glob, Grep.

Does Coding Best Practices access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Coding Best Practices safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Coding Best Practices use?

Coding Best Practices has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Coding Best Practices use?

About 1.8k tokens (SKILL.md is roughly 7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Coding Best Practices?

Skills that share tags, products or a category with Coding Best Practices: Swift Expert (Jeffallan/claude-skills, 12k stars), Snapshot Tests (microsoft/SwiftStreamingMarkdown, 378 stars), Bootstrap iOS (RayFernando1337/rayfernando-skills, 130 stars) and Swift Development (aiskillstore/marketplace, 430 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Coding Best Practices?

KartikLabhshetwar (a GitHub user) maintains it in KartikLabhshetwar/better-shot, which has 2,366 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 1, 2026.

Source: KartikLabhshetwar/better-shot on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.