tldextract Agent Skills & AI Rules

GitHub

Accurately separates a URLโ€™s subdomain, domain, and public suffix, using the Public Suffix List (PSL).

2,028 stars Python Python 1 file ยท ~2,065 tokens #country-codes#publicsuffix#publicsuffixlist#python#suffix#tld#tldextract
RAW Rules
1 Discovered Rules โ€ข ~236 Estimated Tokens
Quick:
Loading skill content...

AI Agent Protocol & Instructions

AGENTS.md root-instruction ~236 tokens
Raw
# Repository Guidance

See [README.md](README.md) for contributor setup.

## Tests

While iterating on a change, prefer the smallest test invocation that exercises
the behavior you are working on, such as a specific test file or pytest `-k`
selector:

```zsh
uv run tox -e py310 -- tests/cli_test.py
uv run tox -e py310 -- -k private
```

Before wrapping up any code change, always run the required validation baseline:

```zsh
uv run ruff format .
uv run tox --parallel -e py310,codestyle,lint,typecheck
```

Formatting runs first because it mutates files. The remaining checks are safe to
run concurrently. When debugging a failure, rerun its individual environment
serially for clearer output.

Run broader validation when the scope warrants it:

```zsh
uv run tox --parallel  # Run everything: pytest on all Pythons + codestyle + lint + typecheck
```

The `py*` and `pypy*` environments forward to `pytest`; `codestyle`, `lint`, and
`typecheck` do not.