Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Repository instructions

## Purpose and layout

This repository is the canonical source for URLs that Phantom flags as malicious. `blocklist.yaml` contains blocked Solana sites, `eth-blocklist.yaml` contains Ethereum entries, `nft-blocklist.yaml` contains blocked NFT mints, and `whitelist.yaml` contains explicit exceptions. `build.js` generates the published JSON artifacts; `ci.js` validates required fields and keeps the disabled fuzzy list empty.

## Development commands

CI uses Node 16 and Yarn v1.

- `yarn install --frozen-lockfile` installs the committed dependencies.
- `node ./ci.js` validates the YAML lists.
- `yarn build` generates the blocklist JSON and content hashes.

## Contribution constraints

- Append new blocked URLs to the bottom of `blocklist.yaml` in the existing format.
- Store hostnames without protocol prefixes such as `https://`.
- Explain why a site should be blocked in the commit or pull request description; optional entry metadata may record the reason or requester.
- For a malicious subdomain of a legitimate base domain, add the quoted wildcard base domain to `whitelist.yaml` and the full malicious subdomain to `blocklist.yaml` as documented in `README.md`.
- Treat `blocklist.yaml` as production data: merges to `master` deploy it automatically.
1 change: 1 addition & 0 deletions CLAUDE.md
Loading