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.
curl -O https://raw.githubusercontent.com/Koshimizu-Takehito/my-toybox/develop/.claude/commands/quality-check.mdgit clone --depth 1 https://github.com/Koshimizu-Takehito/my-toyboxWrote 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.
[](https://agentmods.dev/commands/koshimizu-takehito/my-toybox/quality-check)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
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.
- 6d ago First seen · 295 lines · 0 tokens per session scan A 8ac75f72e1ee
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.
Other commands, from other repositories
resolve-deps
Diagnose and resolve Swift Package Manager dependency conflicts (launches spm-conflict-resolver agent).
initialize-ios
Manual override: initialize ast-index for iOS/Swift/ObjC project.
axiom-resolve-deps
Diagnose and resolve Swift Package Manager dependency conflicts (Delegate to the spm-conflict-resolver subagent).
kotlin-test
Enforce TDD workflow for Kotlin. Write Kotest tests first, then implement. Verify 80%+ coverage with Kover.
kotlin-review
Comprehensive Kotlin code review for idiomatic patterns, null safety, coroutine safety, and security. Invokes the kotlin-reviewer agent.
gradle-build
Fix Gradle build errors for Android and KMP projects.