Check

Quick pre-commit sanity check. Faster than /ship -- just the essentials before staging.

yokwejuste 2 updated 2mo ago
Claude CodeGeneric
View source ↗
# /check

Quick pre-commit sanity check. Faster than /ship -- just the essentials before staging.

## Steps

Run all of these and report any failures.

**Lint**

```bash
ruff check src/ tests/

Tests

PYTHONPATH=src python3 -m pytest tests/ -q 2>&1

Secrets scan

git diff --cached --name-only

For each staged file, check it does not contain token-shaped strings:

git diff --cached | grep -E '(ghp_|sk-|xox[bp]-|AKIA[0-9A-Z]{16}|npm_[a-zA-Z0-9]{36})' && echo "STOP: possible token in diff" || echo "secrets scan clean"

Validate .secrets if it exists

PYTHONPATH=src python3 -m actbuddy secrets 2>&1 || true

Output

One line per check: "lint: ok", "tests: 7 passed", "secrets scan: clean". If anything fails, state it clearly and stop. Do not proceed to suggest a commit until all checks pass. ```

Maintain Check?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

[Check on getagentictools](https://getagentictools.com/loops/yokwejuste-check?ref=badge)