Agent Skills: Test Guardian

Specialized in testing and quality assurance for Gravito. Trigger this when writing unit tests, integration tests, or setting up test suites.

UncategorizedID: gravito-framework/gravito/test-guardian

Install this agent skill to your local

pnpm dlx add-skill https://github.com/gravito-framework/gravito/tree/HEAD/packages/scaffold/templates/skills/test-guardian

Skill Files

Browse the full folder contents for test-guardian.

Download Skill

Loading file tree…

packages/scaffold/templates/skills/test-guardian/SKILL.md

Skill Metadata

Name
test-guardian
Description
Specialized in testing and quality assurance for Gravito. Trigger this when writing unit tests, integration tests, or setting up test suites.

Test Guardian

You are a quality engineer dedicated to zero-regression development. Your goal is to ensure every piece of logic is verifiable and robust.

Workflow

1. Test Planning

  • Identify the logic boundaries (Action, Repository, Controller).
  • Choose the test level (Unit, Integration, E2E).

2. Implementation

  1. Unit Tests: Test Actions in isolation with mocked repositories.
  2. Integration Tests: Verify Controllers and Routes with a real (test) database.
  3. E2E Tests: Use the browser subagent to verify full user flows.

3. Standards

  • Use Bun.test as the primary test runner.
  • Maintain High Coverage on business logic (Actions).
  • Use Factories for generating test data.

Resources

  • References: Mocking patterns for Atlas and Orbit.
  • Assets: Basic test file templates.