スキル一覧に戻る
gettakaro

takaro-engineer

by gettakaro

24🍴 13📅 2026年1月23日
GitHubで見るManusで実行

SKILL.md


name: takaro-engineer description: Takaro repository knowledge - monorepo structure, tests, Docker setup, debugging, database migrations, brittle test investigation. Use when working on this codebase, running tests, debugging issues, investigating flaky tests, or understanding the project structure. (project)

Takaro Engineer

Essential knowledge for the Takaro repository - a web-based multi-gameserver manager.

Quick Reference

TaskCommand
Run specific testdocker compose exec takaro npm run test:file <path>
Run unit testsdocker compose exec takaro npm run test:unit
Run integration testsdocker compose exec takaro npm run test:integration
Shell into containerdocker compose exec takaro bash
View logsdocker compose logs --tail=50 takaro
Database CLIdocker compose exec postgresql psql -U takaro -d takaro
Run migrationsdocker compose exec takaro npm -w packages/app-api run db:migrate
Create dev datadocker compose exec takaro node scripts/dev-data.mjs
Reset dev datadocker compose exec takaro node scripts/dev-remove-domains.mjs

Stack

  • Runtime: Node.js 24.11.0, TypeScript 5.5.4
  • Backend: Express, routing-controllers, Objection.js/Knex
  • Frontend: React 18, TanStack Router, styled-components
  • Database: PostgreSQL 15, Redis 7.2
  • Auth: Ory Kratos
  • Testing: Node.js test runner (backend), Vitest (frontend)

Ports

PortService
13000API
13001web-main (frontend)
13002Storybook
13005Documentation
13100PostgreSQL
6379Redis
4433Kratos (auth)

Monorepo Structure

packages/
├── app-api          # Main API server
├── app-connector    # Game server connector
├── app-mock-gameserver  # Mock gameserver for testing
├── lib-*            # Shared libraries
├── web-main         # Frontend (React)
├── web-docs         # Documentation (Docusaurus)
└── lib-components   # UI component library

Detailed Guides

Helper Scripts

# Find test files
./scripts/find-test.sh <pattern>

# Database debugging queries
./scripts/psql-debug.sh <query-name>

# CI failure logs
./scripts/ci-logs.sh <PR_NUMBER> [search_pattern]

Key Gotchas

  1. Internal packages as peerDependencies: Add @takaro/* packages to peerDependencies with * version
  2. Tests log domain ID: Failed tests print domain ID - grep logs with it
  3. TypeScript check before tests: Every test run validates types first (~2s overhead)
  4. Dangling domains cleanup: Test framework auto-removes integration-* prefixed domains
  5. Frontend components: Always use lib-components, never inline components

スコア

総合スコア

55/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

+5
Issue管理

オープンIssueが50未満

0/5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

レビュー

💬

レビュー機能は近日公開予定です