backend-patterns
FreeBackend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes.
The English summary is being prepared. Showing the original description.
Use this skill when the user explicitly asks for TDD or a tests-first workflow, or when developing a new feature with a test coverage requirement. Provides a structured red-green-refactor workflow with unit, integration, and E2E test guidance.
The English summary is being prepared. Showing the original description.
See how to installReview the instructions the agent will receive before you install.
This skill provides a structured TDD workflow for projects that adopt tests-first development.
For routine bug fixes or refactors, add focused tests for the changed behavior instead of invoking this full workflow (the /tdd command and tdd-guide agent remain available when you want it explicitly).
Within this workflow, the default is to write tests first, then implement code to make tests pass.
Unit Tests - Individual functions, utilities, component logic, pure functions, helpers.
Integration Tests - API endpoints, database operations, service interactions, external API calls.
E2E Tests (Playwright) - Critical user flows, complete workflows, browser automation, UI interactions. Applies to web UI projects only.
As a [role], I want to [action], so that [benefit]
Example:
As a user, I want to search for markets semantically,
so that I can find relevant markets even without exact keywords.
For each user journey, create comprehensive test cases covering happy paths, edge cases, fallback behavior, and sorting/filtering logic.
Use the project's test runner. Examples:
npm test # Node.js
pytest # Python
bash tests/run-unit-tests.sh # shell projects
# Tests should fail - we haven't implemented yet
Write minimal code to make tests pass.
Re-run the same test command (e.g., npm test, pytest):
npm test
# Tests should now pass
Improve code quality while keeping tests green:
Use the project's coverage tooling. Examples:
npm run test:coverage # Node.js
pytest --cov # Python
# Verify coverage meets the project's target
These templates target JavaScript/TypeScript stacks; adapt the structure for other languages.
references/test-templates.md - Unit, integration, E2E, and mocking code templates (JS/TS)references/testing-mistakes.md - Common pitfalls, file organization, coverage config, CI setup (JS/TS)Remember: Give changed behavior a focused test. Tests are the safety net that enables confident refactoring, rapid development, and production reliability.
No reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
Backend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes.
The English summary is being prepared. Showing the original description.
ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.
The English summary is being prepared. Showing the original description.
日本語の業務文書を作成・修正するときに使用する共通品質基準。事実性、確度、論理、簡潔さ、自然な日本語を守る。提案書、報告、技術説明、議事録、メール、Slack、要約、レビューに適用する。創作、広告コピー、コードや構造化データだけの生成には使用しない。
The English summary is being prepared. Showing the original description.
Universal coding standards, best practices, and patterns for TypeScript, JavaScript, React, and Node.js development.
The English summary is being prepared. Showing the original description.
Formal evaluation framework for Claude Code sessions implementing eval-driven development (EDD) principles.
The English summary is being prepared. Showing the original description.
Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.
The English summary is being prepared. Showing the original description.