setup

A setup command for checking whether the WeChat article-to-Markdown tool is installed and installing it when possible.

In plain words
What is it for?
It checks for wechat-article-to-markdown, uv, and pipx, then installs a fixed version with uv or pipx and reports the result.
Why use it?
It avoids duplicate installation and explains what is missing when neither supported installation tool is available.

Command

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 commands/heminwon/claude-code-marketplace/setup
Clone the repo
git clone --depth 1 https://github.com/HeminWon/claude-code-marketplace
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 410 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 $0.00018 $0.00410
Opus 5 $0.00009 $0.00205
Sonnet 5 $0.00004 $0.00082
Haiku 4.5 $0.00002 $0.00041

Measured yesterday against content hash ec94853cad43, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

setup 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 yesterday.

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.

plugins/wechat-article-export/commands/setup.md · 40 lines

What it actually says

Setup WeChat Article Export Dependencies

Goal

确保 wechat-article-to-markdown 可用;若已安装则直接结束。

Workflow

  1. 检查命令是否存在:
    • command -v wechat-article-to-markdown
  2. 若已安装:
    • 输出“已安装,无需重复安装”。
    • 结束流程。
  3. 若未安装,检测安装工具:
    • command -v uv
    • command -v pipx
  4. 安装优先级(固定版本 50b7e63,避免不兼容升级):
    • uvuv tool install git+https://github.com/jackwener/wechat-article-to-markdown.git@50b7e63
    • 否则有 pipxpipx install --force git+https://github.com/jackwener/wechat-article-to-markdown.git@50b7e63
    • 两者都无:不安装,提示用户先安装 uvpipx
  5. 输出固定结果字段。

Output Template

  • 预检结果:wechat-article-to-markdown=<found|missing>
  • 工具检测:uv=<found|missing>, pipx=<found|missing>
  • 安装方式:<none|uv|pipx>
  • 安装结果:<already-installed|success|failed|skipped>
  • 下一步:
    • already-installed/success: 可继续使用 wechat-article-export 相关命令
    • skipped: 请先安装 uvpipx 后重试
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. yesterday First seen · 40 lines · 18 tokens per session scan A ec94853cad43

Subscribe to this mod's changes

setup is a command published in the GitHub repository HeminWon/claude-code-marketplace (2 stars, last pushed 3mo ago), licensed MIT. It adds 18 tokens to every session and 410 once invoked, about $0.0001 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.