π΅οΈββοΈ (2-in-1) Email & Username OSINT suite featuring native MCP support for deep data extraction just from a single Email/Username. Analyzes 2720+ actively maintained scan vectors (210+ email / 2510+ username) for security research, investigations, and digital footprinting.
Python cybersecuritycybersecurity-toolsemail-osintethical-hackingethical-hacking-toolsidentificationinfosecosintosint-emailosint-toolosint-toolsosint-usernamepentestingpythonredteam-toolsredteamingthreat-intelligence
docs: make CLAUDE.md import AGENTS.md, forbid per-module unit tests, recommend tooling
Bruno Leonardo Michelsee0e9b564e15
diff --git a/AGENTS.md b/AGENTS.mdindex bcaa7f5..55dcc21 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -1,7 +1,7 @@# AI contributor guideThis file orients an AI assistant (or any new contributor) working in this-repository. `AGENTS.md` is kept in sync with this file β edit both together.+repository. `CLAUDE.md` imports it via `@AGENTS.md` β edit this file only.## What this project is@@ -26,7 +26,10 @@ profile metadata. See `README.md` for the full feature list and install steps.Asynchronous. Export `async def validate_<service>(email: str) -> Result`.- `user_scanner/core/` β engine, orchestrator, helpers, `Result`, formatters,exporters (JSON/CSV/PDF). Changes here affect every module; review carefully.-- `tests/` β pytest suite. Add tests for new core behavior.+- `tests/` β pytest suite. Add tests for new core behavior only. **Do not+ add unit tests for individual scan modules** β modules are verified by+ live-testing against real and nonexistent handles (see "Before opening a+ PR"), not by mocked unit tests.## Adding a new module (the short version)@@ -67,6 +70,20 @@ Test live against a **real** handle/email and a **nonexistent** one, acrossevery namespace and account type the module checks β this is what catchesmislabeled types, missed namespaces, and false positives/negatives.+## Recommended tooling++- If the `ax` CLI (https://ax.yusuke.run) is available, prefer it over+ throwaway scripts for investigating page structure β `--outline`,+ `--locate`, and `--row` cover most namespace-mapping probes. Note it+ uses a plain HTTP client, so bot-walled sites still need curl_cffi.+- Sites behind active JS challenges (Cloudflare "Just a momentβ¦") can only+ be investigated with a real browser β e.g. the Playwright MCP server+ (https://github.com/microsoft/playwright-mcp).++If a task would benefit from one of these tools and it is not installed, ask+the user once whether they'd like to install it. If they decline, record the+choice in `tooling.local.md` (git-ignored) and don't ask for that tool again.+## Local files and privacy- `*.local.*` and `docs/local/` are git-ignored β use them for scratch notes,diff --git a/CLAUDE.md b/CLAUDE.mdindex bcaa7f5..43c994c 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -1,75 +1 @@-# AI contributor guide--This file orients an AI assistant (or any new contributor) working in this-repository. `AGENTS.md` is kept in sync with this file β edit both together.--## What this project is--A 2-in-1 OSINT suite for **email** and **username** intelligence. It checks-whether an account exists on a given platform and, when found, extracts rich-profile metadata. See `README.md` for the full feature list and install steps.--## Start here (read before writing code)--- `README.md` β overview, features, installation, usage examples.-- `CONTRIBUTING.md` β the authoritative guide for adding scan modules- (naming, validator signatures, orchestrator helpers, return values, style).-- `docs/USAGE.md` β library-mode usage (calling the engine from Python).-- `docs/FLAGS.md` β every CLI flag.-- `docs/PATTERNS.md` β the username/email permutation pattern syntax.--## Repository layout--- `user_scanner/user_scan/<category>/<site>.py` β **username** availability- modules. Synchronous. Export `def validate_<site>(user: str) -> Result`.-- `user_scanner/email_scan/<category>/<service>.py` β **email** OSINT modules.- Asynchronous. Export `async def validate_<service>(email: str) -> Result`.-- `user_scanner/core/` β engine, orchestrator, helpers, `Result`, formatters,- exporters (JSON/CSV/PDF). Changes here affect every module; review carefully.-- `tests/` β pytest suite. Add tests for new core behavior.--## Adding a new module (the short version)--Read `CONTRIBUTING.md` first β it has full examples. The essentials:--1. **File name** = platform name, lowercase, no spaces/special chars- (`github.py`, `reddit.py`).-2. **One validator** per module: `validate_<name>` returning a `Result`- (`Result.available()`, `Result.taken(extra=..., media=...)`,- `Result.error("...")`). Image URLs go in `media`, other metadata in `extra`.-3. **No false positives.** Never infer availability from a bare HTTP 200 or a- bare `else`. Verify a unique string/JSON key for **both** the found and- not-found states. Confirm *not found* with an explicit marker too, not just- a 404 β transient/blocked responses must return `Result.error`, never a- verdict.-4. **Map every account namespace** a site exposes before trusting one path;- many sites split accounts across several public paths and a clean 404 on one- must not launder a blocked response on another.-5. **Pick the transport by how the site defends itself.** Reach for the- impersonating transport (`impersonate_validate` / `impersonate_request`,- curl_cffi) first for sites behind bot walls; drop to `generic_validate`- (httpx) only when a plain request already returns clean 200/404.-6. **Never use `raise`.** Return `Result.error(...)` so the scan continues.-7. **Respect the global CLI flags** in any request-making code (timeout `-t`,- concurrency `-C`, `--allow-loud`) β mirror the existing helpers.--## Before opening a PR--Local CI gates must pass:--```-ruff check .-mypy user_scanner-pytest-```--Test live against a **real** handle/email and a **nonexistent** one, across-every namespace and account type the module checks β this is what catches-mislabeled types, missed namespaces, and false positives/negatives.--## Local files and privacy--- `*.local.*` and `docs/local/` are git-ignored β use them for scratch notes,- private scan output, and AI working files that must not be committed.-- `output/` is git-ignored β write scan outputs there (e.g. `-o output/result.json`).-- Never commit real scan results, targets, credentials, or personal data.