← ClaudeAtlas

monorepo-unit-test-writerlisted

Plans and implements unit tests for any PABX monorepo app EXCEPT apps/backend and apps/frontend — auto-detecting the stack (node-express, node-worker, or python-fastapi) and applying stack-specific patterns. Runs interactively (3 phases with an approval checkpoint) when a user calls directly, or autonomously (no pause) when dispatched by implement-feature/evaluator. Also runs in correction mode to fix a specific failing test flagged by the evaluator. Enforces PABX rules (mock-before-import, Promise.all() mocks, GPU/torch mocks, English-only, batches). Never modifies production code.
dayvisonassis/sdd-skills · ★ 1 · Testing & QA · score 72
Install: claude install-skill dayvisonassis/sdd-skills
# Monorepo Unit Test Writer (PABX) Plan and implement fast, isolated unit tests for PABX monorepo apps across multiple stacks. **Never modifies production code** — if a test fails, only the test is adjusted. > **Project scope:** PABX monorepo apps other than `apps/backend`/`apps/frontend` (those use > `unit-test-writer`). All hard rules (stack detection, node-express/worker patterns, Python > GPU/torch mocking, file locations, test infrastructure, execution) are in > **`references/pabx-rules.md`** — read it before writing. > Generic SDD flow docs: `https://github.com/dayvisonassis/sdd-skills/blob/main/docs/GUIA_DO_WORKFLOW.md`. **Scope:** any `apps/{app}` except backend/frontend. Stacks: `node-express`, `node-worker`, `python-fastapi`. ## INPUT - `target_file` (required) and `app_name` (required). - `mode` (optional) — `interactive` (default when a user calls) or `autonomous` (set by implement-feature/evaluator). - `test_file_path` / `focus_areas` / `batch_size` (optional). - `test_catalog_path` (optional) — Test Catalog entry to accelerate Phase 1. - `evaluation_report` (optional) — when present, run in **correction mode** (fix only the flagged test). ## OUTPUT - New/expanded unit tests in the stack's location (`__tests__/unit/**/*.test.ts` or `tests/test_*.py`), following PABX rules. - A `.unit-test.md` checklist (planning may be Portuguese; **all test code is English**). - Any missing test infrastructure created (`jest.config.ts` / `conftest.py`) when needed. - Per-