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.

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/striveh/agent-skills/icp-batch-skill
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.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for icp-batch-skill

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.5 $0.00025 $0.00282
Sonnet 5.5 $0.00013 $0.00141
Haiku 4.5 $0.00006 $0.00071

Measured 2mo ago against content hash 8644e5228285, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 9mo ago), licensed MIT. It adds 63 tokens to every session and 705 once invoked, about $0.0003 per session on Opus 5.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

icp-batch-skill compared with skills from other repositories

icp-batch-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
icp-batch-skillstriveh/agent-skillsSkill59mo agoMITA63Claude Code, Codex
fto-triageanthropics/claude-for-legalSkill9.9k3d agoApache-2.0A81Claude Code
legal-holdanthropics/claude-for-legalSkill9.9k3d agoApache-2.0A68Claude Code
specification-writingwanshuiyin/Auto-claude-code-research-in-sleepSkill19k3d agoMITA49Claude Code
terms-of-servicegenspark-ai/genofficeSkill12kyesterdayApache-2.0A32Claude Code, Codex
x-scorecardx-cmd/x-cmdSkill4.7k7d agoApache-2.0A57Claude Code, Codex
gesellschaftsrechtliche-satzungen-agbKlotzkette/claude-fuer-deutsches-rechtSkill1.8kyesterdayApache-2.0A69Claude Code