starwards-tdd

仓库创建 2019年3月17日最近提交 23 天前SkillHot 收录 22 天前
▸ 精选理由

对维护该游戏代码库的开发者有实操性的测试与场景指导。

这个 Skill 做什么

为 Starwards 项目提供 TDD 流程与测试示例,覆盖单元、E2E 与多人同步。

按测试优先的流程帮你为 Starwards 写测试和示例:先写测试(Jest/Playwright),看它失败,再补最小实现让它通过。常在新增飞船系统、UI 交互或多人同步(Colyseus、@gameField、Tweakpane)场景时用到。特点是把单元、E2E 和多人状态同步都纳入 TDD 流程,保证多人场景也被真实验证。

▸ 展开 SKILL.md 英文原文

Test-driven development for Starwards - write the test first, watch it fail, write minimal code to pass; includes Jest unit tests, Playwright E2E tests, Colyseus state sync, @gameField decorators, Tweakpane UI, and multiplayer scenarios

开发编程测试驱动单元与E2E多人同步通用
42
Stars
2
Forks
17
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/starwards/starwards/master/.claude/skills/starwards-tdd/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/starwards/starwards/master/.claude/skills/starwards-tdd/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Test-Driven Development for Starwards

## Overview

Write the test first. Watch it fail. Write minimal code to pass.

**Core principle:** "If you didn't watch the test fail, you don't know if it tests the right thing."

**Starwards-specific:** Test state sync, decorators, multiplayer scenarios, and UI interactions.

## When to Use

**Always:**
- New ship systems (@gameField decorators)
- New space objects (Spaceship, Projectile, etc.)
- Bug fixes in game logic
- UI widget changes (Tweakpane panels)
- Multiplayer scenarios (Colyseus state sync)
- Command handlers (JSON Pointer or typed commands)

**Exceptions (ask first):**
- Throwaway prototypes
- Configuration files
- Static assets

## Th
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有