← Browse

@paradoxie/cpa-codex-auth-sweep

A

高并发异步扫描 Codex 探活机制的专属执行工具。遇到关键词如「扫号」、「清死号」、「清理 Codex 401」、「扫描凭证」时自动激活。

skillclaude

Install

agr install @paradoxie/cpa-codex-auth-sweep --target claude

Writes 8 files into .claude/skills/, pinned to git-662d035d.

  • .claude/skills/cpa-codex-auth-sweep/.gitignore
  • .claude/skills/cpa-codex-auth-sweep/LICENSE
  • .claude/skills/cpa-codex-auth-sweep/README.md
  • .claude/skills/cpa-codex-auth-sweep/SKILL.md
  • .claude/skills/cpa-codex-auth-sweep/cpa-codex-auth-sweep-skill.py
  • .claude/skills/cpa-codex-auth-sweep/install.sh
  • .claude/skills/cpa-codex-auth-sweep/pyproject.toml
  • .claude/skills/cpa-codex-auth-sweep/scanner.py

Document


name: cpa-codex-auth-sweep description: 高并发异步扫描 Codex 探活机制的专属执行工具。遇到关键词如「扫号」、「清死号」、「清理 Codex 401」、「扫描凭证」时自动激活。

技能描述

此技能用于高并发异步扫描本地 Codex 认证文件的存活状态,并可一键清理失效(401)凭证。基于 asyncio + aiohttp,默认 200 路协程并发。

前置依赖

pip install aiohttp

工作流程

# 常规扫描(只看不删)
python3 <SKILL目录>/scanner.py --no-quarantine

# 扫描 + 删除 401 死号
python3 <SKILL目录>/scanner.py --no-quarantine --delete-401 --yes

# JSON 机读模式
python3 <SKILL目录>/scanner.py --output-json --no-quarantine

清理规则

只清理明确失效的认证文件。

不清理(网络/瞬时错误)

  • network error
  • timeout
  • parse error

可清理(明确失效)

  • HTTP 401 Unauthorized
  • invalid auth
  • revoked

执行纪律

[!IMPORTANT]

  • 必须使用 Python 3 环境运行。
  • 汇报时,提取输出底部 "Scan Summary" 中的统计数字,以友好的 Markdown 摘要呈现。
  • 涉及 --delete-401 等破坏性操作前,必须确认用户有明确的删除意图(如「删掉」「清理」「扬了」)。只说「看看」「扫一下」的情况下只扫描不删除

Trustgrade A

  • passBody integrity

    Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.

  • passType matchnot applicable to this artifact type

    Whether the artifact is really the kind of thing its metadata claims it is.

  • passFreshness

    How long since the source repository was last pushed to.

  • passPrompt injection

    Scans the artifact's own text for instructions aimed at your agent rather than at you.

  • passLicense

    Whether the source repository declares an SPDX license permissive enough to redistribute.

How the grade is calculated

Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:

  • Aevery check passed
  • Bone warning
  • Ctwo warnings
  • Dprompt injection or body integrity failed, or three warnings
  • Fone of those failed, and something else is wrong

These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.

Versions

  • git-662d035db37b2026-07-31