slopstopper-cli
A Python CLI plus GitHub Actions workflows that run security, hygiene and reliability checks on every PR. One command to install into any repo. This package is the CLI.
Status: Beta. Every check in the public catalogue runs through this package. The CI workflows under
.github/workflows/ss-*.ymlinstall the pinnedslopstopper-cliviajdx/mise-actionand callslopstopper run <category>:<check>, which is the same code path you use locally.
Install
Quick standalone try (unpinned):
pipx install slopstopper-cli
slopstopper --version
slopstopper checks list
slopstopper doctor
Published to PyPI on every release tag.
pipx upgrade slopstopper-clipulls the latest. Each release is also attached to the latest GitHub Release with a Sigstore build-provenance attestation. Verify it withgh attestation verify <wheel> --owner hungovercoders.
For a repo you'll keep, install the pinned suite so local and CI run the same version:
curl -fsSL https://raw.githubusercontent.com/hungovercoders/slopstopper/main/install.sh | bash
Requires mise.
install.shpinsslopstopper-cli+taskinmise.toml(the single source of truth both local runs and CI read), installs that version, and hands over toslopstopper install, which writes thess-*.ymlworkflows, shims, seeds, hook and skills from the files that version ships. Move the pin withinstall.sh --upgrade-cli/--cli-version.
Development (editable, from a clone of this repo):
pip install -e ./cli
slopstopper run hygiene:docs-size
CLI surface
slopstopper run [--json] <category>:<check> # run a check, write reports under .ss/reports/
slopstopper emit <c>:<n> --target {pr-comment,issue}
slopstopper discover <check> --event <e> # resolve pages.<check> from sitemap / changed / list
slopstopper config get <key> [<default>] [--json] # read .slopstopper.yml
slopstopper templates {list, path <n>, eject <n>} # inspect / customise bundled templates
slopstopper serve # bundled static server, with the headers from headers.source
slopstopper checks list [--category <c>] [--json]
slopstopper doctor [--json] # verify external tools are installed
slopstopper profile {list, show, expand <n>, disabled, detect} [--json] # project-shape profile (ui / api / library)
slopstopper cloudflare preview-url <sha> # a commit's Workers Builds preview URL, from Cloudflare's PR comment on stdin
slopstopper demo [--out <dir>] [--force] [--json] # write a small demo repo that two checks fail on, to try the suite
slopstopper install [<dir>] [--profile <n>] [--no-task] [--no-skills] [--no-hooks] [--no-topic] [--only skills] # write the suite (or just the skills) into a repo from this CLI's own wheel
slopstopper --quiet … # suppress decorative output (CI logs)
On run, doctor, profile, config get, checks list and demo, --json prints one JSON value and nothing else on stdout (run sends the check's own output to stderr), so a script or an agent reads a verdict without parsing the decorated text. The shapes are a contract, documented with the exit codes in docs/contributing/README.md.
slopstopper with no args prints a banner of the commands above plus a quick-start block.
Run the tests
# From the repo root:
task -t cli/Taskfile.yml test
# Or from cli/:
task test
# Filter to a single test:
task -t cli/Taskfile.yml test -- -k docs_size
From the repo root task contributing:test is an alias for the same target. It is also what CI runs (see ci-cli.yml), so local and CI invocations stay in sync. The Taskfile creates and reuses a project-local venv at cli/.venv/ (gitignored) so it doesn't conflict with system Python under PEP 668.
This workflow is slopstopper-internal. It is not part of the distributed ss-*-check.yml suite and is never seeded into adopter repos.
Layout
slopstopper/cli.pyis the argparse dispatcher and prints the bare-invocation bannerslopstopper/output.pyholds the shared formatters (running / success / warn / error / footer /--quiet)slopstopper/config.pyreads.slopstopper.yml(stdlib-only YAML subset)slopstopper/templates.pyresolves bundled templates and backs thetemplates {list, path, eject}APIslopstopper/emit.pywraps theghCLI to post PR comments and main-branch issuesslopstopper/discovery.pyresolves the pages to audit for reliability checksslopstopper/profiles.pyholds the project-shape profiles. It resolves which workflows a repo carries with(profile.disables − workflows.enabled) ∪ workflows.disabled(explicitworkflows.disabledwins if the same workflow is listed in both), plus the check → workflow map.slopstopper installresolves the workflow set through it, so it is the only implementationslopstopper/suite.pynames every file the suite ships (workflows, actions, shims, seeds, hook, skills);hatch_build.pycopies them from the repository root into the sdist and the wheel underslopstopper/data/suite/, and an editable install reads the checkoutslopstopper/installer.pyisslopstopper install: it writes that suite into a repo, seeds the mise pin with its own version when there is none, and refreshes slopstopper-owned files on a re-runslopstopper/checks/holds one module per check; the registry is in__init__.pyslopstopper/data/holds the bundled Playwright specs, lighthouserc dev/prod, server.js andprofiles.json
Adding a check
A check is more than a module. It needs a workflow, a Task target, profile classification, a badge label, docs, site copy and a skills entry. Follow the single checklist in the "New quality check" row of docs/contributing/CHANGE_MAP.md rather than a summary here. Inside this package, slopstopper/checks/<name>.py exposes run(args) -> int (0 pass, 1 findings, 2 could-not-run) and registers in checks/__init__.py's REGISTRY. Its docstring's first line is what slopstopper checks list prints. It prints through from slopstopper import output so --quiet works, and declares a META dict if emit.py should post it.
Skills for agents
The duo under .claude/skills/slopstopper-{install,triage}/ is the long-form playbook for Claude Code agents working with this CLI. Update them when you add or rename a check, env var, task ss:* target, or profile.
Acknowledgements
The only third-party Python dependency of slopstopper-cli is lizard, the complexity engine behind hygiene:complexity, which must live in the same interpreter the CLI runs from. Every other tool (Playwright, axe-core, Lighthouse, Semgrep, Gitleaks, Trivy, ZAP) is invoked via subprocess only. Full credit, licences and upstream links for every tool we drive live in ATTRIBUTIONS.md.
License
MIT; the full text is in LICENSE.
Metadata
Release files for slopstopper-cli 0.29.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| slopstopper_cli-0.29.0.tar.gz | 495.4 kB | With provenance | Details for slopstopper_cli-0.29.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| slopstopper_cli-0.29.0-py3-none-any.whl | Python 3 | none | any | Details for slopstopper_cli-0.29.0-py3-none-any.whl |
Total release size: 943.9 kB
Release files / slopstopper_cli-0.29.0.tar.gz
| Download URL | slopstopper_cli-0.29.0.tar.gz |
|---|---|
| Size | 495.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15aa04cff5d60860a8ef1d1edcc1ff72aa29f1f18315f1fc26d810b5ba8245f1
|
|
BLAKE2b-256 checksum How to use checksums |
a313198fb94dd11e9fdd9b100db974fd1460505f33200948cc75cfe50e14cf91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logRelease files / slopstopper_cli-0.29.0-py3-none-any.whl
| Download URL | slopstopper_cli-0.29.0-py3-none-any.whl |
|---|---|
| Size | 448.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9a0a75ca7559adb843fc94dda0d006ba692a4bdf9f63569eb04d63654362ee90
|
|
BLAKE2b-256 checksum How to use checksums |
c86feffd458189002d1e64948989aa8d3ce47c85cc553bb21717076cfa9a109e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logSecurity for slopstopper-cli 0.29.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for slopstopper_cli-0.29.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.