# test smoke

> Detects and runs Python or Node.js test suites to provide instant Pass/Fail smoke test reports.

test smoke is a free AI agent skill on Agensi by David Tsao, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [David Tsao](https://www.agensi.io/creators/david-tsao)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-18
- Security: scan passed (2026-10-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/test-smoke
- Tags: testing, python, nodejs, pytest, npm, ci-cd

## About this skill

Manually checking test status across different environments wastes time and leads to broken deployments. This skill automates the detection and execution of smoke tests for Python and Node.js repositories. It identifies your environment, runs the appropriate test suite, and provides a concise status report.

### What it does
- **Automatic detection** identifies pytest, npm, yarn, or pnpm runners based on project files.
- **Python execution** runs `pytest` with short traceback formatting within virtual environments.
- **Node execution** triggers the defined `test` script using the project's specific package manager.
- **Failure capturing** extracts the summary line and the first specific error message upon failure.
- **Status reporting** returns a clear Pass, Fail, or Skip result without manual interpretation.

### How it works
1. The skill scans the root directory for `pyproject.toml`, `package.json`, or lock files.
2. It executes the correct test command using the detected environment settings.
3. It parses the output to find the summary line and any critical error details.
4. It presents the final status and offers to log notable results if memory skills are present.

### Frameworks & tools
Works with Python (pytest) and Node.js (npm, yarn, pnpm). Specifically looks for `tests/` directories, `pytest.ini`, `package.json`, and standard lock files.

### Why this beats prompting it yourself
Writing custom logic to handle different lock files and test runners is tedious. This skill standardizes the "is it broken?" check into a single command that handles environment switching and output parsing for you.

### Use cases
- Run quick sanity checks after refactoring code.
- Verify repository health immediately after a fresh clone.
- Confirm bug fixes before submitting a pull request.
- Detect if a dependency update broke the existing test suite.

### Known limitations
Does not support Go, Ruby, or other non-JS/Python runners. Requires a pre-configured `test` script in Node or `pytest` in Python.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the test smoke skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does 'test smoke' simplify the testing process compared to manual execution?

The skill automatically detects your project type (Python or Node.js) and runs the appropriate test runner, such as pytest or npm test, providing a clear Pass/Fail report without you needing to manually configure commands.

### Which specific programming languages and package managers are compatible with this skill?

It supports Python projects using pytest and Node.js projects using npm, yarn, or pnpm; however, it does not currently support other languages like Go or Ruby.

### What kind of AI agent environment do I need to run this skill effectively?

This skill is designed for AI agents with file system access, as it needs to scan your root directory for configuration files like package.json or pyproject.toml to identify the correct test suite.

### What happens if a smoke test fails during execution?

The skill provides a concise summary of the failure, including the first specific error message and the final status, allowing you to quickly identify what broke without scrolling through long logs.

### Do I need to write custom scripts to make my repository compatible with this skill?

No complex setup is required; as long as your project has a standard test script defined in package.json or a pytest configuration, the skill will detect and run it automatically upon activation.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
