goos-tss
GOOS-Style TDD for TanStack Start
Philosophy
Core principle: Tests verify behavior through rendered UI, not implementation details. Components can change entirely; tests shouldn't.
Good tests exercise real components in real browsers (Vitest Browser Mode) or full application flows (Playwright). They describe what the user experiences, not how the code works. A good test reads like a specification — "user can login with valid credentials" tells you exactly what capability exists. These tests survive refactors because they don't care about internal structure.
Bad tests mock hooks, spy on query cache internals, or assert on DOM class names. The warning sign: your test breaks when you refactor, but behavior hasn't changed.
See tests.md for examples and mocking.md for mocking guidelines.
Anti-Pattern: Horizontal Slices
DO NOT write all tests first, then all implementation. This is "horizontal slicing."
WRONG (horizontal):
RED: test1, test2, test3, test4, test5
More from muco-rolle/skills
write-prd
Collaboratively write a Product Requirements Document through structured interview and codebase exploration. Use when user wants to create a PRD, define requirements, plan a new capability, or write a spec.
11goos-adonis
Use when building, testing, or refactoring AdonisJS v7 applications with test-driven development. Covers outside-in TDD workflow, writing acceptance tests (api-client and browser-client), designing testable services with dependency injection, creating test doubles with container.swap, fixing fragile or slow tests, and restructuring fat controllers into clean service layers
11grill-me
Interview the user relentlessly about a plan or design until reaching a shared understanding, resolving each branch of the decision tree. Use when the user wants to stress-test a plan, get grilled on their design, or mentions "grill me".
9frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
9refactoring-ui
>
5write-a-skill
Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.
5