Skip to content

Commit 7133cf6

Browse files
refactor: update instruction files to enhance clarity and structure
1 parent 6565e9f commit 7133cf6

File tree

6 files changed

+30
-12
lines changed

6 files changed

+30
-12
lines changed

.github/instructions/api-routes.instructions.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ applyTo: "web/src/app/api/**/*.{ts,js}"
33
description: Next.js API route development patterns for the turn-based games platform
44
---
55

6-
# API Route Instructions
6+
# Next.js API Routes
7+
8+
## Purpose
9+
10+
Patterns for creating API routes in the web package. Covers request handling, game integration, error handling, and security.
711

8-
Follow these patterns when creating Next.js API routes:
912

1013
## File Structure and Naming
1114

.github/instructions/mcp-server.instructions.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ applyTo: "mcp-server/src/**/*.{ts,js}"
33
description: MCP server development patterns for the turn-based games platform
44
---
55

6-
# MCP Server Instructions
6+
# MCP Server Development
7+
8+
## Purpose
9+
10+
Patterns for the Model Context Protocol server. Covers tool definitions, HTTP integration with the web API, AI algorithms, and error handling.
711

8-
Follow these patterns when developing the Model Context Protocol server:
912

1013
## Server Architecture
1114

.github/instructions/shared-library.instructions.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ applyTo: "shared/src/**/*.{ts,tsx}"
33
description: Shared library development patterns for the turn-based games platform
44
---
55

6-
# Shared Library Instructions
6+
# Shared Library Development
7+
8+
## Purpose
9+
10+
Patterns for the `@turn-based-mcp/shared` package. Covers game implementations, storage abstraction, type system design, and constants.
711

8-
Follow these patterns when developing the shared library (`@turn-based-mcp/shared`):
912

1013
## Library Architecture
1114

.github/instructions/testing.instructions.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ applyTo: "**/{*.test.{ts,tsx,js,jsx},__tests__/**/*.{ts,tsx,js,jsx}}"
33
description: Testing guidelines and patterns for the turn-based games platform
44
---
55

6-
# Testing Instructions
6+
# Testing Guidelines
7+
8+
## Purpose
9+
10+
Testing patterns and requirements for all packages. Covers test structure, mocking, shared utilities, and coverage requirements.
711

8-
Follow these testing patterns for the turn-based games platform:
912

1013
## Test Structure and Organization
1114

.github/instructions/typescript.instructions.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ applyTo: "**/*.{ts,tsx}"
33
description: TypeScript development patterns and best practices for the turn-based games platform
44
---
55

6-
# TypeScript Instructions
6+
# TypeScript Development
7+
8+
## Purpose
9+
10+
TypeScript patterns for type-safe code. Covers type definitions, generics, error handling, and module organization.
711

8-
Follow these TypeScript patterns for consistent, type-safe code:
912

1013
## Type Definitions
1114

.github/instructions/ui-components.instructions.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ applyTo: "web/src/components/**/*.{tsx,ts}"
33
description: React component development patterns for the turn-based games platform
44
---
55

6-
# UI Component Instructions
6+
# React Components
7+
8+
## Purpose
9+
10+
Patterns for React components in the web package. Covers component structure, styling with TailwindCSS, accessibility, and animations.
711

8-
Follow these patterns when creating React components:
912

1013
## Component Structure
1114

0 commit comments

Comments
 (0)