my-toybox: Command for Claude Code

.claude/commands/quality-check.md

quality-check is a command for Claude Code from Koshimizu-Takehito/my-toybox. It costs 0 tokens per session (1,848 once invoked), scanned A, original, MIT.

A set of commands for checking and fixing Swift code style with SwiftLint and SwiftFormat. SwiftLint reports violations of Swift conventions, while SwiftFormat reformats code consistently.

In plain words
What is it for?
Use it to run lint checks, format Swift files, apply automatic fixes, and verify formatting in a build workflow.
Why use it?
It reduces manual style checks and keeps formatting and lint rules consistent across the project. It can also check changes without modifying them.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is Koshimizu-Takehito/my-toybox's own configuration. It tells Claude Code how to work on my-toybox itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything my-toybox configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Koshimizu-Takehito/my-toybox. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Koshimizu-Takehito/my-toybox/develop/.claude/commands/quality-check.md
Clone the repo
git clone --depth 1 https://github.com/Koshimizu-Takehito/my-toybox

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for quality-check

README.md
[![agentmods](https://agentmods.dev/badge/commands/koshimizu-takehito/my-toybox/quality-check/github.svg)](https://agentmods.dev/commands/koshimizu-takehito/my-toybox/quality-check)
Your own site
<a href="https://agentmods.dev/commands/koshimizu-takehito/my-toybox/quality-check"><img src="https://agentmods.dev/badge/commands/koshimizu-takehito/my-toybox/quality-check/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for quality-check

Your own site · 80×15
<a href="https://agentmods.dev/commands/koshimizu-takehito/my-toybox/quality-check"><img src="https://agentmods.dev/badge/commands/koshimizu-takehito/my-toybox/quality-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,848 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01848
Opus 5 $0.00000 $0.00924
Sonnet 5 $0.00000 $0.00370
Haiku 4.5 $0.00000 $0.00185

Measured 6d ago against content hash 8ac75f72e1ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

quality-check scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/quality-check.md · 295 lines

How it starts

The opening of the file, as written. The whole thing — 295 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Code Quality Enforcer

Run and manage SwiftLint and SwiftFormat for code quality compliance.

Task

You are the quality-enforcer agent. Your mission is to ensure code adheres to SwiftLint and SwiftFormat rules, maintain consistent code style, and manage quality tool configurations.

Quality Tools

SwiftLint (v0.63.0)

  • Purpose: Enforce Swift style and conventions
  • Config: .swiftlint.yml
  • Installation: Via Mint (realm/[email protected])

SwiftFormat (v0.58.7)

  • Purpose: Auto-format Swift code
  • Config: .swiftformat
  • Installation: Via Mint (nicklockwood/[email protected])

Available Commands

Via Makefile

make lint          # Run SwiftLint (report issues)
make lint-fix      # Auto-fix SwiftLint issues
make format        # Format code with SwiftFormat
make format-check  # Check formatting without changes
make fix           # Run both format + lint-fix

Direct Commands

# SwiftLint
mint run swiftlint lint
mint run swiftlint lint --fix

# SwiftFormat
mint run swiftformat .
mint run swiftformat . --lint

Quality Check Steps

1. Run Full Quality Check

Execute comprehensive quality check:

make format-check  # Check formatting
make lint          # Check lint rules

If issues found, offer to auto-fix:

make fix           # Auto-format and auto-fix lint issues

2. Analyze Issues

SwiftLint Output Format:

/path/to/file.swift:42:1: warning: Line Length Violation: Line should be 150 characters or less (currently 165 characters) (line_length)
/path/to/file.swift:108:9: error: Force Unwrapping Violation: Force unwrapping should be avoided (force_unwrapping)

Issue Categories:

  • Errors: Must be fixed (will fail CI)
  • Warnings: Should be fixed (code quality)

3. Common Issues and Fixes

Line Length Violations

Issue: Line exceeds 150 characters Auto-fix: SwiftFormat will wrap lines Manual fix: Break long lines at logical points

Read the full file on GitHub · 295 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 295 lines · 0 tokens per session scan A 8ac75f72e1ee

Subscribe to this mod's changes

quality-check is a command published in the GitHub repository Koshimizu-Takehito/my-toybox (117 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,848 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.