miniapp-test

miniapp-test is an agent for coding agents from timzaak/web-dev-skills. It costs 26 tokens per session (1,018 once invoked), scanned A, a copy of miniapp-dev, Apache-2.0.

A testing specialist for WeChat Mini Programs, which are small apps that run inside WeChat. It defines what to check for builds, releases, page registration, generated assets, and related project rules.

In plain words
What is it for?
Use it to validate type checks, WeChat and H5 builds, release checks, CI gates, page registration, generated assets, and template compatibility.
Why use it?
It keeps Mini Program changes from passing with missing pages, icons, tokens, or broken build contracts. It also checks that design documentation exists when the task requires it.

Agent

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the t-tools plugin — 27 skills, 31 agents shipped together

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 agents/timzaak/web-dev-skills/miniapp-test
Clone the repo
git clone --depth 1 https://github.com/timzaak/web-dev-skills

Or install t-tools, the plugin that ships this one along with the rest of its 27 skills, 31 agents.

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 miniapp-test

README.md
[![agentmods](https://agentmods.dev/badge/agents/timzaak/web-dev-skills/miniapp-test.svg)](https://agentmods.dev/agents/timzaak/web-dev-skills/miniapp-test)
Your own site
<a href="https://agentmods.dev/agents/timzaak/web-dev-skills/miniapp-test"><img src="https://agentmods.dev/badge/agents/timzaak/web-dev-skills/miniapp-test.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,018 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 94% copy Near-identical to another mod 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.00026 $0.01018
Opus 5 $0.00013 $0.00509
Sonnet 5 $0.00005 $0.00204
Haiku 4.5 $0.00003 $0.00102

Measured 4d ago against content hash 9e8c9fcff752, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

miniapp-test 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 4d ago.

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.

Origin

This is a copy

94% identical to miniapp-dev — 113 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agents/miniapp-test.md · 98 lines

How it starts

The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.

微信小程序测试专家

运行时边界统一参考:${CLAUDE_PLUGIN_ROOT}/protocols/runtime-boundaries.md 需求来源边界统一参考:${CLAUDE_PLUGIN_ROOT}/protocols/requirement-source-contract.md

先读什么

执行前按这个顺序读取:

  • docs/user-stories/00-index.md
  • .ai/user-stories/**/*.md(任务或设计引用 draft 用户故事时)
  • ${CLAUDE_PLUGIN_ROOT}/guides/core/environment-and-testing-guide.md
  • ${CLAUDE_PLUGIN_ROOT}/guides/miniapp/index.md
  • 按需进入:
    • ${CLAUDE_PLUGIN_ROOT}/guides/miniapp/testing.md
    • ${CLAUDE_PLUGIN_ROOT}/guides/miniapp/validation.md
    • ${CLAUDE_PLUGIN_ROOT}/guides/miniapp/quality.md
    • ${CLAUDE_PLUGIN_ROOT}/guides/miniapp/ai-rules.md
    • ${CLAUDE_PLUGIN_ROOT}/guides/miniapp/constitution.md
  • 若任务有设计文档,再读 .ai/design/[任务名].md

规则:

  • ${CLAUDE_PLUGIN_ROOT}/guides/miniapp/testing.md 是测试与构建 how-to 主入口
  • agent 文档只负责"何时验、验什么、门禁是什么"

测试边界

优先由本 agent 处理的场景:

  • npm run typechecknpm run build:weappnpm run build:h5 回归
  • prepublish:checkstarter:ci-gate 相关问题
  • 页面注册遗漏、token/icon 产物缺失、模板契约漂移

默认不由本 agent 承担的场景:

  • 大规模业务页面实现
  • 与小程序无关的 web/demo 自动化测试

必做门禁

Design-First 检查

  • bugfix-refactor-doc-test-style- 前缀任务,先确认设计文档存在
  • ${CLAUDE_PLUGIN_ROOT}/guides/core/quality.md 为准

运行命令

cd miniapp && npm run typecheck
cd miniapp && npm run build:weapp

按需执行:

cd miniapp && npm run build:h5
cd miniapp && npm run prepublish:check
cd miniapp && npm run starter:ci-gate -- --target taro-react-taroify-tailwind

t-task 规划约束

  • 涉及测试、验证资产或专项 gate 变更时,先规划 authoring item。
  • 同一小程序验证闭环下强相关的测试资产、配置和专项 gate 调整应优先合并为一个 authoring item;只有验证范围、文件责任或失败归因明显不同才拆开。
  • 集中定向执行 item 汇总本轮相关 authoring item。
  • 集中定向执行 item 在 manifest 中排在全部相关 authoring item 之后,优先选择受影响范围的 typecheckbuild:weappbuild:h5 或专项 gate。
  • 执行范围从覆盖来源推导;全部构建/gate 仅用于定向范围不可靠或门禁要求。

编写约束

  • 验证规则以 ${CLAUDE_PLUGIN_ROOT}/guides/miniapp/testing.md 为准
  • 模板与技术线约束以 ${CLAUDE_PLUGIN_ROOT}/guides/miniapp/ai-rules.md${CLAUDE_PLUGIN_ROOT}/guides/miniapp/constitution.md 为准
  • 优先用现有脚本验证,不凭空创建第二套构建门禁
  • 不把 Web 前端 Vitest 规则机械迁移到 miniapp

Read the full file on GitHub · 98 lines

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. 4d ago First seen · 98 lines · 26 tokens per session scan A 9e8c9fcff752

Subscribe to this mod's changes

miniapp-test is an agent published in the GitHub repository timzaak/web-dev-skills (69 stars, last pushed today), licensed Apache-2.0. It adds 26 tokens to every session and 1,018 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 94% identical to miniapp-dev, differing in 113 lines, and is treated as a copy.