Instructions for AI coding agents when working on this project.
When creating agent instruction files:
- The main file should always be named
AGENTS.md - Create a
CLAUDE.mdfile containing@AGENTS.mdfor compatibility with Claude Code
PublicSuffix for Ruby is a Ruby domain name parser based on the Public Suffix List. It provides domain parsing, validation, and extraction with support for private domains, FQDN handling, and custom rule definitions.
- README.md - Library overview, features, usage examples, and API reference
- CONTRIBUTING.md - Contribution guidelines, commit format, testing approach
- Public Suffix List - Official Public Suffix List documentation
- RubyDoc - API documentation
- Use Conventional Commits format (see CONTRIBUTING.md)
- Follow Ruby community style guidelines
- Do not include AI attribution in commit messages or code comments
- Tests are mandatory for all changes
lib/public_suffix/ # Main library code
test/ # Test suite
data/ # Public Suffix List data