Write tests

From X-School-Academy/skill-pilot · View interactive version

Write tests is an AI agent skill from the GitHub repository X-School-Academy/skill-pilot. Write tests for project code using either real code tests or mock-up tests. Use when creating or updating tests, default to real code tests unless the user explicitly asks for mock-up tests.

How to use this skill

Skill file

AI Builder - Write Tests

Write tests for project code using the correct test style for the task.

When to Use This Skill

Your Roles in This Skill

Role Communication

As an expert in your assigned roles, you must announce your actions before performing them using the following format:

As a {Role} [and {Role}, ...], I will {action description}

This communication pattern ensures transparency and allows for human-in-the-loop oversight at key decision points.

Instructions

Follow these steps in order.

Step 1: Choose the test type

Step 2: For Python code, place tests in the standard location

Step 3: Follow the matching reference

Step 4: Verify and report clearly

Expected Output

Key Principles

Common Issues

if the user did not explicitly ask for mock-up testing, use real code tests

place core/engine Python tests under core/engine/tests

use a runner mode that shows raw output when the user wants to inspect it

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.