GitHub Copilot instructions for developing the Border Guess game - a geography quiz app with localization support and pre-configured dev environment
Instructions for GitHub Copilot when working on the Border Guess project - a geography-based border guessing game.
Border Guess is a web-based geography quiz game where users guess borders between countries. The project uses Vite for development with a pre-configured server on port 5176.
- Install dependencies: `pnpm install`
- Add package: `pnpm add <package>`
- Run scripts: `pnpm dev`, `pnpm build`
When adding or modifying any user-facing text:
1. **Never hardcode text** - always use i18n translation keys
2. **Update all locale files** in `src/i18n/locales/`
3. Add the same translation key to every supported language file
4. Use descriptive, hierarchical key names (e.g., `game.instructions.title`)
```
1. Identify new/changed text
↓
2. Create translation key in all locale files
↓
3. Use translation key in component
↓
4. Test in multiple languages
```
If adding a "Start Game" button:
**src/i18n/locales/en.json:**
```json
{
"game": {
"startButton": "Start Game"
}
}
```
**src/i18n/locales/es.json:**
```json
{
"game": {
"startButton": "Iniciar Juego"
}
}
```
**Component:**
```tsx
import { useTranslation } from 'react-i18next';
function GameButton() {
const { t } = useTranslation();
return <button>{t('game.startButton')}</button>;
}
```
1. **Dev Server**: Already running - don't restart without permission
2. **Package Manager**: pnpm only - no exceptions
3. **Localization**: Update all locale files for any text changes
4. **Port**: Development runs on 5176 (not default 5173)
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/border-guess-development/raw