agentleFS
mickzijdelmickzijdel/vischeck/CLAUDE.md

vischeck

CLAUDE.md0 starsChanged 25 days agoMITView on GitHub

Make sure to check all of the following and make sure they are up-to-date after making changes; 1. tool-specific documentation for tools you edited 2. skills for tools you edited 3. plugin.json 4. README.md 5. CLAUDE.md 6. tests/ — keep the pytest suite green and add coverage for behaviour you change Bump the plugin version on every commit. Patch version for small fixes, minor version for more substantial changes (new skill or tool). Tooling is managed by mise + hk…

The file

We split this CLAUDE.md into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Make sure to check all of the following and make sure they are up-to-date after making changes.

    line 1
  2. Very specific:

    No glob tweaks needed when adding a new bin/ script.

    line 27
  3. Distinctive:

    All ten defects (P1–P6, S1–S4) must still be reported.

    line 61

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

Make sure to check all of the following and make sure they are up-to-date after making changes;

  1. tool-specific documentation for tools you edited
  2. skills for tools you edited
  3. plugin.json
  4. README.md
  5. CLAUDE.md
  6. tests/ — keep the pytest suite green and add coverage for behaviour you change

Bump the plugin version on every commit. Patch version for small fixes, minor version for more substantial changes (new skill or tool).

Development

Tooling is managed by mise + hk (dev-hooks:dev-env-setup standard v31). Tools are spec'd "latest" in mise.toml (ruff pinned to its 0.17 minor, as uv's ruff is) and pinned in the committed mise.lock.

  • mise install — provision the toolchain (hk, gitleaks, shellcheck, shfmt, python, uv, ruff, node). uv run uses mise's Python (the UV_PYTHON_* settings in mise.toml [env]), and CI installs the same locked release via mise-action.
  • hk install — install the git pre-commit hook (runs the linters + gitleaks + large-file check, plus the dead-code vulture and duplication jscpd audits — both fast enough for every commit; jscpd tracks latest on a 3-day cooldown floored at v5, and degrades gracefully when the npm registry is unreachable so offline commits aren't blocked).
  • hk run check — full check (same set as pre-commit under one name); this is what CI runs.
  • uv run pytest — run the test suite in tests/ (each bundled script is exercised as a subprocess).

Linting covers the extensionless bin/ scripts via shebang detection: bin/vischeck-hook (bash) → shellcheck/shfmt; bin/screenshot, bin/screenshots (PEP 723 Python) → ruff. No glob tweaks needed when adding a new bin/ script.

Key packages / versions: the bin/ Python scripts are PEP 723 (requires-python >= 3.11), deps unpinned (latest via uv): bin/screenshot → Playwright, bin/screenshots → PyYAML. Dev toolchain versions are pinned in mise.lock. Keep this list and README's "Built with" in sync with mise.lock / the scripts' PEP 723 blocks when they change.

The measurement sweep

bin/screenshot --sweep injects SWEEP_JS into the page and reports numeric layout violations. Two invariants to preserve when touching it:

  1. Every check emitted by SWEEP_JS needs an entry in SWEEP_HINTS, and vice versa. tests/test_screenshot.py greps the JS for check: '...' and asserts the two sets match exactly, so a renamed check fails the suite rather than printing a bare key.
  2. Severity is not cosmetic. A check driven by a caller-supplied selector emits severity: 'defect' (the intended layout was declared, so the number is a verdict); an auto-detected or inherently ambiguous one emits 'lead' (confirm by eye first). New checks must pick one deliberately — grading everything defect is what turns a useful report into noise that gets ignored.

The sweep is verified against the fixtures in HartreeWorks/skill--visual-review (test-fixtures/, with a ground-truth GRADING-KEY.md of ten planted defects). Serve that directory over HTTP and sweep it after changing SWEEP_JS:

cd <fixtures>; python3 -m http.server 8899 &
screenshot /podcasts.html --port 8899 --no-auth --width 390 --height 640 --scroll bottom \
  --sweep --sweep-rows ".list" --sweep-full-width ".progwrap" --sweep-pair ".section-head,.row"
screenshot /settings.html --port 8899 --no-auth --width 390 --height 844 \
  --sweep --sweep-rows ".card" --sweep-align ".label"

All ten defects (P1–P6, S1–S4) must still be reported. Two of them only appear at a short viewport scrolled to the bottom — a regression there is invisible at the default size.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.