{
  "markdown": "# swift-clean-code\n\nClean Code skills for Swift / iOS projects based on Robert Martin's *Clean Code* and G. Ann Campbell's *Cognitive Complexity*.\n\n## Skills\n\n### Slash commands\n\n| Command | What it does |\n|---|---|\n| `/swift-clean-names` | Review and fix naming: variables, functions, types, protocols |\n| `/swift-clean-functions` | Audit function size, single responsibility, argument count, DRY |\n| `/swift-clean-types` | Review class/struct/protocol design, SRP, dependency injection |\n| `/swift-clean-errors` | Audit `throws`, optionals, `Result`, custom `Error` types |\n| `/swift-clean-tests` | Check FIRST principles, AAA pattern, test naming, mocking |\n| `/swift-clean-review` | Full Clean Code audit of a file or directory |\n| `/swift-cognitive-complexity` | Score and reduce Cognitive Complexity: nesting, closures, control flow |\n\n### Automatic (model-invoked)\n\n`swift-clean-advisor` — activates when writing or editing Swift files. Applies Clean Code guidance without being asked.\n\n## Installation\n\nInstall the whole bundle with one `npx` command:\n\n```bash\nnpx skills add levabond/iOS-clean-code-skills --all\n```\n\nOr install only the skills you want:\n\n```bash\nnpx skills add levabond/iOS-clean-code-skills --skill swift-clean-names --skill swift-clean-review\n```\n\nThe CLI will ask which agents to register the skill with (Claude Code, Codex, Cursor, Gemini, ...) and whether to install per-project or globally.\n\nIf `npx` is missing, install Node (`brew install node`); if `brew` is missing too, [install Homebrew](https://brew.sh) first.\n\n### Alternative install methods\n\n**Claude Code** (installs the whole bundle directly):\n\n```bash\n/plugin install levabond/iOS-clean-code-skills\n```\n\nOr clone this repository and drop the skill folders wherever your agent expects them.\n\n## Usage\n\n```bash\n# Review naming in a file\n/swift-clean-names Sources/Auth/LoginViewModel.swift\n\n# Audit function design\n/swift-clean-functions Sources/Services/NetworkService.swift\n\n# Full audit of a module\n/swift-clean-review Sources/Features/Checkout/\n\n# Review test quality\n/swift-clean-tests Tests/UserServiceTests.swift\n\n# Score and reduce cognitive complexity\n/swift-cognitive-complexity Sources/Features/Checkout/CheckoutViewModel.swift\n```\n\n## Requirements\n\n- Claude Code CLI (or another Agent Skills-compatible agent: Codex, Cursor, Gemini, ...)\n- Xcode project (any architecture: MVC, MVVM, TCA, etc.)\n",
  "bytes": 2400,
  "sha": "bc11941abf57aef14b81df52764ee9916e66edef8e1649e638fcf6351d3ca633",
  "repo_slug": "levabond/ios-clean-code-skills",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/plg_levabond_ios_clean_code_skills_7f8e93c6/readme"
}