Write effective tests using unit, integration, and E2E approaches. Supports TDD, test quality standards, and Chrome DevTools for browser automation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agentic-framework:testingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Chrome DevTools** (E2E testing):
Chrome DevTools (E2E testing):
When writing new logic, default to red-green-refactor:
code-quality.md Two Hats Rule).When TDD is the right default: new business logic, bug fixes (write the regression test first, watch it fail, then fix), and any code with clear input/output contracts.
When it isn't: exploratory spikes, throwaway scripts, UI layout/styling tweaks, and generated boilerplate — write tests after the shape stabilizes instead.
Tests must produce the same result every time.
Tests should not depend on each other or shared state.
Test names should describe the behavior being tested.
test("user registration sends welcome email", async () => {
// Arrange
const emailService = new MockEmailService();
const userService = new UserService(emailService);
// Act
await userService.register("[email protected]");
// Assert
expect(emailService.sentEmails).toContainEqual({
to: "[email protected]",
subject: "Welcome!"
});
});
// Use Chrome DevTools MCP for browser automation
// - Navigate to pages
// - Fill forms and click buttons
// - Capture screenshots for visual regression
// - Run Lighthouse accessibility audits
// - Check console for errors
# Run tests
npm test
pytest
go test ./...
# With coverage
npm test -- --coverage
pytest --cov=src
go test -cover ./...
Use Glob and Grep to identify gaps:
npx claudepluginhub dralgorhythm/claude-agentic-frameworkDrives development with tests using the red-green-refactor cycle. Use when implementing logic, fixing bugs, or modifying behavior.
Guides testing and QA workflows including unit, integration, E2E, browser automation, and quality gates. Automatically activates when Claude detects testing discussions.
Routes E2E testing requests to platform-specific tools (Chrome MCP, Playwright, Hammerspoon, Linux) after enforcing TDD protocol gates. Use when debugging web apps, testing UI interactions, or capturing screenshots.