Skip to content
Back to search

sloplint

MarketplaceWorks with Claude CodeGitHub

Catch the checkable problems AI-written code ships with: hallucinated packages, placeholder code, tests that can't fail. CLI, GitHub Action and agent skills.

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/talha-2--sloplint/badge.svg)](/listings/talha-2--sloplint)

HTML

<a href="/listings/talha-2--sloplint"><img src="/api/listings/talha-2--sloplint/badge.svg" alt="findsafeskills safety rating" /></a>

Install

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

.claude-plugin/marketplace.json · Manifest · 11 lines
  1. {
  2. "name": "sloplint",
  3. "owner": { "name": "Talha-2" },
  4. "plugins": [
  5. {
  6. "name": "sloplint",
  7. "source": "./",
  8. "description": "Rules that keep Claude from shipping AI slop, plus a linter that checks for it."
  9. }
  10. ]
  11. }
README.md · README · 102 lines
  1. <p align="center">
  2. <picture>
  3. <source media="(prefers-color-scheme: dark)" srcset="assets/logo-dark.svg">
  4. <img src="assets/logo-light.svg" alt="sloplint" width="360">
  5. </picture>
  6. </p>
  7. <p align="center">
  8. Catch the problems AI-written code ships with, before they reach review.
  9. </p>
  10. <p align="center">
  11. <a href="https://github.com/Talha-2/sloplint/actions/workflows/ci.yml"><img src="https://github.com/Talha-2/sloplint/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
  12. <a href="https://www.npmjs.com/package/sloplint-cli"><img src="https://img.shields.io/npm/v/sloplint-cli" alt="npm version"></a>
  13. <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" alt="MIT license"></a>
  14. <img src="https://img.shields.io/badge/dependencies-0-brightgreen" alt="zero dependencies">
  15. </p>
  16. ---
  17. sloplint finds the mistakes reviewers keep catching in AI-written code: packages that don't exist, `// ... rest of code` stubs, tests that can't fail, and errors swallowed by empty `catch` blocks.
  18. It's not an AI detector. Every finding is a real problem, whoever wrote the code.
  19. ```
  20. $ npx sloplint-cli --online
  21. src/server.js
  22. 2 error "express-schema-guardian" does not exist on npm: likely hallucinated (slopsquatting risk) phantom-import
  23. 10 warn Error is caught and silently discarded swallowed-error
  24. 11 error Placeholder instead of real code: "... rest of the handlers" placeholder-code
  25. tests/server.test.js
  26. 4 error Assertion compares a constant to itself, so it can never fail hollow-test
  27. sloplint grade F 3 errors, 1 warning, 0 info (2 files, 18 lines, whole project)
  28. ```
  29. This output comes from [`examples/demo`](examples/demo). Run it there to see it yourself.
  30. ## Get started
  31. **Check your code.** No install, no config.
  32. ```bash
  33. npx sloplint-cli # whole project
  34. npx sloplint-cli --diff # only what you changed
  35. ```
  36. **Teach your coding agent.** Adds the rules for Claude Code, Codex, Cursor, Copilot and other agents, so they check their own work.
  37. ```bash
  38. npx sloplint-cli init
  39. ```
  40. **Review every pull request.** Adds a GitHub Action that comments on each PR.
  41. ```bash
  42. npx sloplint-cli init --ci
  43. ```
  44. ## What it catches
  45. | Rule | Catches |
  46. |---|---|
  47. | `phantom-import` | Packages that aren't declared, installed, or real |
  48. | `placeholder-code` | `// ... rest of code`, `implementation goes here` |
  49. | `chat-artifact` | `Certainly! Here's the updated code` left in files |
  50. | `hollow-test` | Tests with no assertions, or `expect(true).toBe(true)` |
  51. | `swallowed-error` | Empty `catch {}` and `except: pass` with no reason given |
  52. | `narrating-comment` | Comments that repeat the next line of code |
  53. | `slop-prose` | Filler like `delve into` and `unlock the full potential` |
  54. | `emoji-headings` | READMEs with an emoji on every heading |
  55. Works on JavaScript, TypeScript and Python. The comment and prose rules also cover Go, Rust, Java, C#, Ruby, PHP, Swift, Kotlin and Markdown.
  56. ## Agent skills
  57. `npx sloplint-cli init` installs these for Claude Code (`.claude/skills`) and Codex (`.agents/skills`). Each one is a short, plain-language process the agent follows, loaded when the situation comes up rather than only when you ask.
  58. | Skill | Used when the agent… |
  59. |---|---|
  60. | [`sloplint`](skills/sloplint/SKILL.md) | writes or changes code, docs or commits |
  61. | [`sloplint-review`](skills/sloplint-review/SKILL.md) | reviews a change, including its own work before a commit |
  62. | [`sloplint-tests`](skills/sloplint-tests/SKILL.md) | writes tests, and proves each one fails when the code is broken |
  63. | [`sloplint-deps`](skills/sloplint-deps/SKILL.md) | adds a package, after checking it's real, maintained and licensed |
  64. Agents without skill support (Cursor, Copilot, Gemini CLI) get the core rules through a section in `AGENTS.md`.
  65. ## Docs
  66. - [Usage](docs/usage.md): CLI options, GitHub Action, configuration, pre-commit hook
  67. - [Rules](docs/rules.md): what each rule flags and how to fix it
  68. - [Writing skills](docs/writing-skills.md): how the agent skills are written, for contributors
  69. ## Contributing
  70. Each rule is one file with its own tests, and there's nothing to install. See [CONTRIBUTING.md](CONTRIBUTING.md). False-positive reports are especially welcome.
  71. ## License
  72. [MIT](LICENSE)

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.