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.
npx agentmods add agents/timzaak/web-dev-skills/miniapp-testgit clone --depth 1 https://github.com/timzaak/web-dev-skillsWrote 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.
[](https://agentmods.dev/agents/timzaak/web-dev-skills/miniapp-test)<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>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.
| Model | Per session | Once 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 |
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.
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.
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 typecheck、npm run build:weapp、npm run build:h5回归prepublish:check、starter: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 之后,优先选择受影响范围的
typecheck、build:weapp、build: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
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.
- 4d ago First seen · 98 lines · 26 tokens per session scan A 9e8c9fcff752
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.
Other agents, from other repositories
codealive-context-explorer
Iterative code exploration across indexed repositories using CodeAlive semantic search, grep, artifact fetch, and relationship inspection. Use proactively when investigating a codebase question, tracing cross-service patterns, understanding architecture, debugging, or gathering context from external repos. Almost…
analyzer
Analyze blind comparison results to understand WHY the winner won and generate improvement suggestions.
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
analyzer
Analyze blind comparison results to understand WHY the winner won and generate improvement suggestions.
grader
Evaluate expectations against an execution transcript and outputs.