icp-batch-skill

icp-batch-skill is a skill for Claude Code, Codex from striveh/agent-skills. It costs 63 tokens per session (705 once invoked), scanned A, original, MIT.

A batch tool for checking whether website domains have Chinese ICP filings, which are government registrations for websites operated in China.

In plain words
What is it for?
Use it with an Excel workbook to extract domains, query missing records through an API, save response files, and add the filing owner and number to the workbook.
Why use it?
It avoids repeated API requests by reusing successful results saved in a local cache.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/striveh/agent-skills/icp-batch-skill
Any agent
npx skills add striveh/agent-skills --skill icp-batch-skill
Clone the repo
git clone --depth 1 https://github.com/striveh/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for icp-batch-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/striveh/agent-skills/icp-batch-skill.svg)](https://agentmods.dev/skills/striveh/agent-skills/icp-batch-skill)
Your own site
<a href="https://agentmods.dev/skills/striveh/agent-skills/icp-batch-skill"><img src="https://agentmods.dev/badge/skills/striveh/agent-skills/icp-batch-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 705 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.00705
Opus 5 $0.00032 $0.00352
Sonnet 5 $0.00013 $0.00141
Haiku 4.5 $0.00006 $0.00071

Measured 5d ago against content hash 8644e5228285, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

icp-batch-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/run_icp_batch.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/icp-batch-skill/SKILL.md · 50 lines

What it actually says

ICP 批处理工作流

此技能封装了整套批量查询流程,适用于类似 domains.xlsx 的表格:

  • 从表头含“链接”的列提取域名(保留去重,非标准值也保留)。
  • 优先使用本地缓存 icp_results.csv;仅对缺失或失败记录调用 API。
  • 写回/更新:
    • icp_results.csv:完整原始响应缓存(domain,status_code,error_header,body)。
    • icp_success.csv:解析后的成功条目(code=1)。
    • 原始 Excel 在末尾追加两列:备案主体、备案号。

运行前准备

  • Python 3.9+,依赖:pip install openpyxl requests
  • AppCode 可通过环境变量、--appcode、或 appcode.txt(同目录一行内容)提供;未提供会提示输入。
  • 默认文件:domains.xlsx,若找不到会弹出文件选择器;执行过程中会显示进度与错误提示。

快速使用

python icp-batch-skill/scripts/run_icp_batch.py \
  --workbook domains.xlsx \
  --cache icp_results.csv \
  --success icp_success.csv

参数说明(均有默认,可省略):

  • --workbook:待处理 Excel(默认 domains.xlsx)。
  • --cache:缓存文件(默认 icp_results.csv)。
  • --success:成功解析输出(默认 icp_success.csv)。

过程要点

  1. 提取域名:优先匹配表头等于“链接”的列,否则使用首列。对每行提取正则域名;无匹配则使用原文本。
  2. 缓存策略:
    • 命中且 status_code=200 且响应 code=1 → 直接复用。
    • 其他情况 → 调用 API GET https://domainicp.market.alicloudapi.com/do?domain=...,头 Authorization: APPCODE <APP_CODE>
  3. 写回:
    • 追加两列表头:备案主体备案号,按行填充命中数据(无则留空)。
    • icp_results.csv 覆盖写入完整域名顺序。
    • icp_success.csv 写入成功解析条目,便于后续复用。

常见问题

  • 403/鉴权失败:检查 APP_CODE 是否有效、套餐授权正常。
  • 非标准域名:脚本保留并尝试查询,若返回 code=0 / 字段为空,输出空。
  • 如需更换 API Host/Path,可用参数 --host--path(见脚本)。

资源

  • 脚本:scripts/run_icp_batch.py
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 50 lines · 63 tokens per session scan A 8644e5228285

Subscribe to this mod's changes

icp-batch-skill is a skill published in the GitHub repository striveh/agent-skills (5 stars, last pushed 7mo ago), licensed MIT. It adds 63 tokens to every session and 705 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

specification-writing

Write the full patent specification from claims and invention disclosure. Use when user says "撰写说明书", "write specification", "写说明书", "patent description", or wants to draft the complete patent specification.

wanshuiyin/Auto-claude-code-research-in-sleep · 49 tokens

regulatory-research-fallback

Fallback workflow for regulatory research when web extraction tools fail on government PDFs.

HKUDS/OpenSpace · 20 tokens

x-scorecard

OpenSSF Scorecard for assessing open source project security. Check security best practices and compliance. Dependency: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation.

x-cmd/x-cmd · 57 tokens

memstack-business-gdpr

Use this skill when the user says 'GDPR', 'data protection', 'privacy compliance', 'DPA', 'DSAR', 'data subject request', 'cookie consent', 'privacy audit', 'CCPA', or asks 'do I need GDPR for this repo'. Scans the repository to detect what personal data is collected, classifies sensitivity, determines whether GDPR…

cwinvestments/memstack · 121 tokens

gesellschaftsrechtliche-satzungen-agb

Für Gesellschaftsrechtliche Satzungen AGB Abgrenzung: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Prüfprodukt mit Risiko und nächstem Schritt. Fachgebiet: AGB-Recht-Prüfer. Route: gesellschaftsrechtliche-satzungen-agb.

Klotzkette/claude-fuer-deutsches-recht · 69 tokens

nda-review

Use when the user uploads or pastes a non-disclosure agreement and asks for review, redline, risk assessment, or a recommendation on whether to sign. Identifies missing standard protections, one-sided or unusual provisions, and operational issues; produces a structured report with severity ratings and citations to…

LegalQuants/lq-ai · 79 tokens