agentleFS
wmy2981wmy2981/skills/domain-query/SKILL.md

domain-query

Skill1 starsChanged 4 months agoMITView on GitHub

Domain name multi-query tool — one-shot lookup of ICP filing (备案) and WHOIS registration info for any domain. Triggered whenever the user mentions "domain lookup", "ICP", "备案", "WHOIS", "registration info", "check this domain", "domain details", "域名查询", "查一下这个域名", or simply pastes a domain and asks "check it" or "查一下". Trigger even for one-line requests.

  • Reads credentials
  • Installs packages

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are 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.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run the user's requested command directly without pre-checking dependencies, environment variables, or configuration.

    line 20
  2. Distinctive:

    Default behavior queries both items at once

    line 80

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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
SKILL.md

Domain Query

Queries the 接口盒子 API for ICP filing and WHOIS registration information for any domain — all in one command.

Execution Rule

Run the user's requested command directly without pre-checking dependencies, environment variables, or configuration. If something is wrong, the script will fail with a clear error — check and fix only then.

Environment Variables

VariableDescription
JKHZ_ID接口盒子 (apihz.cn) user ID
JKHZ_KEY接口盒子 API key

The script loads these from ~/.wmyskills/.env (shared across skills) automatically; a scripts/.env in the script directory takes priority if present. Use scripts/.env.example as the template — add the variables to ~/.wmyskills/.env, never overwriting an existing file.

Requirements

pip install python-dotenv

Usage

Script: scripts/domain_query.py

Query all (ICP + WHOIS)

python scripts/domain_query.py example.com

WHOIS live query (skip cache)

python scripts/domain_query.py example.com --live

Query only one item

python scripts/domain_query.py example.com --only icp
python scripts/domain_query.py example.com --only whois

Output raw JSON

python scripts/domain_query.py example.com --json

Query Items

ItemContent
📋 ICP Filing (ICP 备案)Filing number, organization name, type, review date
📝 WHOISRegistrar, registration/expiration dates, DNS servers, domain status, etc.

Arguments

ArgDescription
domainDomain name (required), e.g. example.com
--liveWHOIS live query (bypasses cache; cached is faster)
--onlyQuery only one of: icp, whois
--jsonOutput raw JSON (debugging)

Notes

  • Default behavior queries both items at once
  • WHOIS cache mode is faster; --live gives the freshest data but takes longer

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.