Token导航 LogoToken导航TokenDH.com
运维和基础设施敏感数据github未标认证来源可访问许可证需确认审计提醒

mastra-smoke-test马斯特拉烟雾测试

Agent Skill

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

总安装

247

周安装

10

GitHub Stars

23,429

下载量

78
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:mastra-smoke-test(马斯特拉烟雾测试)
来源仓库:https://github.com/mastra-ai/mastra
仓库路径:skills/mastra-smoke-test
安装命令:
npx skills add https://github.com/mastra-ai/mastra --skill mastra-smoke-test
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/mastra-ai/mastra --skill mastra-smoke-test

简介

mastra-smoke-test 用于辅助测试设计、自动化测试和回归验证。

  • 适合让 Agent 编写单元测试、端到端测试或根据失败日志定位问题。
  • 使用时需要确认项目测试框架、运行命令和夹具数据。
  • 涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Mastra Smoke Test

Comprehensive smoke testing for Mastra projects.

⚠️ Mandatory Test Checklist

Use task_write to track progress. Run ALL tests unless --test specifies otherwise.

Do not skip tests unless you hit an actual blocker. "Seemed complex" or "wasn't sure" are not valid reasons. Attempt everything - only stop a test when you literally cannot proceed. Report what you tried and what blocked you.

#TestReferenceWhen Required
1Setupreferences/tests/setup.mdAlways
2Agentsreferences/tests/agents.md--test agents or full
3Toolsreferences/tests/tools.md--test tools or full
4Workflowsreferences/tests/workflows.md--test workflows or full
5Tracesreferences/tests/traces.md--test traces or full
6Scorersreferences/tests/scorers.md--test scorers or full
7Memoryreferences/tests/memory.md--test memory or full
8MCPreferences/tests/mcp.md--test mcp or full
9Errorsreferences/tests/errors.md--test errors or full
10Studio Deployreferences/tests/studio.md--test studio (cloud only)
11Server Deployreferences/tests/server.md--test server (cloud only)

Execution Flow

  1. Read the reference file for each test you're about to run
  2. Execute the steps in that reference file
  3. Mark the test complete before moving to the next

Partial Testing (--test)

If --test is provided:

  1. Always run Setup (step 1)
  2. Run only the specified test(s)
  3. Skip other tests

Example: --test agents,traces → Run steps 1, 2, and 5 only.


Usage

# Full smoke test
smoke test --env local --existing-project ~/my-app
smoke test --env staging -d ~/projects -n test-app

# Partial testing
smoke test --env local --existing-project ~/my-app --test agents
smoke test --env production --existing-project ~/my-app --test studio,server,traces

# Multi-environment: same project, different targets
smoke test --env staging --existing-project ~/my-app   # Uses .mastra-project-staging.json
smoke test --env production --existing-project ~/my-app # Uses .mastra-project.json

Multi-Environment Support

One project can target all environments using separate config files:

EnvironmentConfig FileWhat Happens
LocalN/Apnpm dev → localhost:4111
Staging.mastra-project-staging.jsonDeploys to staging.mastra.cloud
Production.mastra-project.jsonDeploys to mastra.cloud

See references/tests/setup.md for setup details.

Parameters

ParameterRequiredDefaultDescription
--envYes-local, staging, production
--directory*~/mastra-smoke-testsParent dir for new project
--name*-Project name
--existing-project*-Path to existing project
--tagNolatestVersion tag (e.g., alpha)
--pmNopnpmPackage manager
--llmNoopenaiLLM provider
--dbNolibsqlStorage: libsql, pg, turso
--testNo(full)Specific test(s) to run
--browser-agentNofalseAdd browser agent
--skip-browserNofalseCurl-only (no browser UI)
--byokNofalseTest bring-your-own-key
  • Either --directory + --name OR --existing-project required

Test Options (--test)

OptionDescriptionEnvironments
agentsAgent page and chatAll
toolsTools page and executionAll
workflowsWorkflows page and runAll
tracesObservability/tracesAll
scorersEvaluation/scorers pageAll
memoryConversation persistenceAll
mcpMCP servers pageAll
errorsError handlingAll
studioStudio deploy onlyCloud
serverServer deploy onlyCloud

Prerequisites

All environments:

  • Node.js + package manager
  • LLM API key in env or .env

Local (--env local):

  • Browser tools enabled (/browser on)

Cloud (--env staging/production):

  • Mastra platform account

Quick Start Flow

1. Setup      → Read references/tests/setup.md, create/verify project
2. Start      → `pnpm run dev` (local) or deploy (cloud)
3. Test       → For each test, read its reference file and execute
4. Verify     → Check all items in reference file's checklist
5. Report     → Summarize pass/fail for each test

References

FilePurpose
references/tests/*.mdDetailed steps for each test
references/local-setup.mdLocal dev server setup
references/cloud-deploy.mdCloud deploy details
references/cloud-advanced.mdBYOK, storage testing
references/common-errors.mdTroubleshooting
references/gcp-debugging.mdInfrastructure debugging
scripts/test-server.shServer API test script

Platform Dashboards

  • Production: https://projects.mastra.ai
  • Staging: https://projects.staging.mastra.ai
For Gateway API testing (memory, threads, BYOK via gateway), use platform-smoke-test.

Result Reporting

After testing, provide:

## Smoke Test Results

**Environment**: local/staging/production
**Project**: <name>

| Test   | Status | Notes |
| ------ | ------ | ----- |
| Setup  | ✅/❌  |       |
| Agents | ✅/❌  |       |
| Tools  | ✅/❌  |       |
| ...    |        |       |

**Issues Found**: (list any)
**Warnings**: (list any deploy/runtime warnings)
**Skipped Tests**: (list with reason - e.g., "Server Deploy - not applicable in local environment")

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.55%
按下载量换算26

Claude

31.7%
按下载量换算25

Cursor

18.03%
按下载量换算14

Gemini CLI

9.73%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills