agentleFS
wmy2981wmy2981/skills/enterprise-info/SKILL.md

enterprise-info

Skill1 starsChanged 4 months agoMITView on GitHub

Chinese enterprise registration info lookup — queries the 接口盒子 API for company registration details (工商信息) by company name or Unified Social Credit Code (统一社会信用代码). Triggered whenever the user asks about a Chinese company: "查公司", "查企业", "企业信息", "工商信息", "查一下XX公司", "查XX的统一信用代码", "这家公司信息", "营业执照查询", "企业工商查询", "查一下这家公司", "看看这家企业", "this company info", or pastes a company name or credit code and asks to look it up. Supports both full company name and 18-digit Unified Social Credit Code.

  • Reads credentials
  • Installs packages

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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 22

≈ “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

Enterprise Info Query

Queries the 接口盒子 API to retrieve Chinese company registration details from the official business registry.

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/query.py

Query by company name or credit code

python scripts/query.py "Company Name"
python scripts/query.py "91440101MA5XXXXXXX"

The script automatically determines success or failure. On success it prints structured key fields; on failure it prints the error reason.

Output Fields

FieldDescription
Company NameFull registered business name
Unified Social Credit Code18-digit credit code
Legal RepresentativeLegal person name
Registered CapitalRegistered capital (10K CNY)
Establishment DateDate of founding
Business StatusActive / Deregistered / Revoked, etc.
Approval DateLast approval date
Registration AuthorityRegistering bureau
Registered AddressBusiness address
Business ScopeMain business scope
Contact PhoneCompany phone number
EmailCompany email
Company TypeLLC, etc.
Taxpayer QualificationGeneral taxpayer / small-scale, etc.
Personnel ScaleNumber of insured employees
Shareholder InfoMajor shareholders

Additional fields shown when available: paid-in capital, industry, operating period, website, historical names, key personnel.

Error Handling

  • HTTP request failure → network error message
  • API returns code=400 → specific error (e.g. "company name not found")
  • Env vars not set → configuration missing prompt

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.