About test-guardian
A testing skill for quality engineers that structures regression-focused work from test planning through unit, integration, and end-to-end checks. It specifies Bun.test, business-logic coverage, factories, and browser subagent verification.
Key features
- 01Plan logic boundaries and test levels
- 02Isolated unit tests with mocked repositories
- 03Integration tests with a test database
- 04End-to-end checks using a browser subagent
- 05Bun.test, factories, and business-logic coverage
Use cases
- 01Planning tests across actions, repositories, and controllers
- 02Checking routes against a test database
- 03Verifying complete user flows in a browser
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ gravito-framework/ gravito --skill test-guardianAfter installing, type/test-guardianin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
assets/.keepreferences/.keepscripts/.keepDetails
From the project READMETest 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
- Unit Tests: Test
Actionsin isolation with mocked repositories. - Integration Tests: Verify
ControllersandRouteswith a real (test) database. - 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
AtlasandOrbit. - Assets: Basic test file templates.
Comments
Markdown supported