← 返回 Skills 市场
pghostek

ARES Business Registry (CZ)

作者 PGhostek · GitHub ↗ · v0.2.0
cross-platform ✓ 安全检测通过
375
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install ares-business-registry
功能描述
Query Czech ARES business registry by ICO or name with human/JSON/raw outputs, retries, and legal-form decoding.
使用说明 (SKILL.md)

ARES Business Registry (CZ)

Use scripts/ares_client.py for ICO lookup and business search.

Working directory

  • From workspace root:
    • python3 skills/ares-business-registry/scripts/ares_client.py ...
  • From skills/ares-business-registry:
    • python3 scripts/ares_client.py ...

Commands

You can run via the wrapper (recommended):

  • ./ares ico \x3Cico>
  • ./ares name "NAME" [--nace CODE ...] [--city CITY] [--limit N] [--offset N] [--pick INDEX]

The underlying script also supports:

  • python3 scripts/ares_client.py search --name "NAME" ...
  • python3 scripts/ares_client.py search --nace CODE [CODE ...] ...
  • python3 scripts/ares_client.py search --name "NAME" --nace CODE ... (combined)

Output modes

  • default: human-readable summary
  • --json: normalized JSON output (stable keys)
  • --raw: full raw ARES payload

Examples

# ICO lookup
python3 scripts/ares_client.py ico 27604977
python3 scripts/ares_client.py ico 27604977 --json
python3 scripts/ares_client.py ico 27604977 --raw

# Search by name
python3 scripts/ares_client.py search --name Google
python3 scripts/ares_client.py search --name Google --limit 3 --json
python3 scripts/ares_client.py search --name Google --city Praha --limit 10 --offset 0
python3 scripts/ares_client.py search --name Google --limit 3 --pick 1

# Search by NACE code (CZ-NACE, exactly 5 digits)
python3 scripts/ares_client.py search --nace 47710 --limit 10            # all clothing retailers
python3 scripts/ares_client.py search --nace 47710 --city Praha --json    # clothing retailers in Praha
python3 scripts/ares_client.py search --nace 47710 47910 --limit 5        # clothing retail + mail order

# Combined: name + NACE (AND filter)
python3 scripts/ares_client.py search --name sport --nace 47710 --json    # "sport" in clothing retail

Normalized JSON

  • ico output:
    • { "subject": { "name", "ico", "dic", "datumVzniku", "address", "codes", "decoded" } }
  • search output:
    • { "query", "total", "items", "picked?" }
    • query includes: name (nullable), city (nullable), nace (nullable array), limit, offset
  • dic can be null.
  • datumVzniku can be null.

Error JSON contract (--json only)

{
  "error": {
    "code": "validation_error | ares_error | network_error",
    "message": "Human readable message",
    "status": 429,
    "details": {}
  }
}

Validation and exits

  • ICO: exactly 8 digits + mod11 checksum
  • Search: at least --name (length >= 3) or --nace required; both can be combined
  • --nace: exactly 5 digits per code (CZ-NACE format, e.g. 47710); multiple codes accepted (space-separated)
  • --limit: default 10, capped to 100
  • --offset: must be >= 0
  • Exit codes:
    • 0 success
    • 1 validation error
    • 2 ARES non-OK response
    • 3 network/timeout

Caching and decoding

  • Legal form decoding (PravniForma) is loaded via POST /ciselniky-nazevniky/vyhledat
  • Cache path: skills/ares-business-registry/.cache/pravni_forma.json
  • Cache TTL: 24h
  • In-memory fallback is used if cache file is stale/unavailable
  • Curated overrides:
    • 112 -> s.r.o.
    • 121 -> a.s.
    • 141 -> z.s.
    • 701 -> OSVČ
    • 301 -> s.p.
    • 331 -> p.o.

NACE code search

  • --nace sends the czNace field to the ARES complex filter endpoint
  • Codes must be exactly 5 digits (CZ-NACE_2025 format)
  • Multiple codes can be passed (space-separated) — ARES returns entities matching any of them
  • When combined with --name, both filters apply as AND (entities must match name AND have the NACE code)
  • NACE-only search (without --name) is supported — useful for browsing all entities in a sector
  • Common e-commerce NACE codes:
    • 47710 — Retail sale of clothing
    • 47910 — Retail sale via mail order or internet
    • 47410 — Retail sale of computers and software
    • 47750 — Retail sale of cosmetic and toilet articles
    • 46420 — Wholesale of clothing and footwear
  • Full CZ-NACE list: https://www.czso.cz/csu/czso/klasifikace_ekonomickych_cinnosti_cz_nace

City filter limitation

  • --city maps to sidlo.nazevObce (structured filter).
  • Matching remains best-effort only; ARES server-side matching/ranking can still return records outside the expected municipality.

Retries and rate limits

  • HTTP timeout: connect 5s, read 20s
  • Retries for transient failures: 429/502/503/504 + network timeout/connection issues
  • Backoff: 1s, 2s, 4s
  • Honors Retry-After for 429 where provided
安全使用建议
This skill is coherent with its description: it contacts the official ARES endpoints, requires no credentials, and caches a legal-form mapping in a .cache folder under the skill workspace. If you install it, be aware it will perform outbound HTTP requests to ares.gov.cz when you run it (or if you enable the optional live smoke tests by setting ARES_SMOKE_LIVE=1). The cache file is created in the skill directory; if you are concerned about workspace writes, inspect or restrict that path. If you want extra assurance, review the full ares_client.py file in your installation (the provided excerpt shows no obfuscation or unexpected external endpoints).
功能分析
Type: OpenClaw Skill Name: ares-business-registry Version: 0.2.0 The OpenClaw skill 'ares-business-registry' is benign. The `SKILL.md` file provides clear, non-malicious instructions for using the skill, with no evidence of prompt injection attempts. The core script `ares_client.py` is well-structured, uses standard Python libraries for HTTP communication with the legitimate ARES API, includes robust input validation, error handling, and local caching within the skill's directory. While the script allows configuring the API base URL via a `--base` argument, this is a standard configurable option and is not exposed in a way that suggests malicious intent or an exploitable vulnerability within the skill's defined usage.
能力评估
Purpose & Capability
Name/description match the included files: scripts/ares_client.py implements ICO lookups, name/NACE searches, JSON/raw/human outputs and legal-form decoding. Required capabilities (network access to ares.gov.cz and a local cache) are proportional to the described functionality.
Instruction Scope
SKILL.md instructs running the included Python script and documents flags, output modes, caching, and retries. Instructions do not request unrelated files, secrets, or system-wide config. The only filesystem access is to a skill-local cache path; smoke_test.sh optionally performs live network calls when ARES_SMOKE_LIVE=1.
Install Mechanism
No install spec (instruction-only wrapper + included script). The implementation uses only Python stdlib (urllib) and no external downloads, packages, or archive extraction, which is proportionate and low-risk.
Credentials
The skill declares no required environment variables or credentials. The code respects this: HTTP calls go to ares.gov.cz and no secrets or unrelated env vars are read. The smoke test uses an optional ARES_SMOKE_LIVE env var to enable live checks (documented).
Persistence & Privilege
The skill writes a cache file under skills/ares-business-registry/.cache/pravni_forma.json (skill-local). It does not request always:true or attempt to modify other skills or system-wide agent settings. Autonomous invocation defaults are unchanged.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ares-business-registry
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ares-business-registry 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.2.0
Adds NACE-based search, combined name+NACE filtering, stricter validation/docs updates, and improved usage examples.
v0.1.0
Initial release.
元数据
Slug ares-business-registry
版本 0.2.0
许可证
累计安装 0
当前安装数 0
历史版本数 2
常见问题

ARES Business Registry (CZ) 是什么?

Query Czech ARES business registry by ICO or name with human/JSON/raw outputs, retries, and legal-form decoding. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 375 次。

如何安装 ARES Business Registry (CZ)?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install ares-business-registry」即可一键安装,无需额外配置。

ARES Business Registry (CZ) 是免费的吗?

是的,ARES Business Registry (CZ) 完全免费(开源免费),可自由下载、安装和使用。

ARES Business Registry (CZ) 支持哪些平台?

ARES Business Registry (CZ) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 ARES Business Registry (CZ)?

由 PGhostek(@pghostek)开发并维护,当前版本 v0.2.0。

💬 留言讨论