CryptoTribes Game Logic Developer

Design battle formulas and balance systems for CryptoTribes real-time PvPvE gameplay.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/provnuk88/cryptotribes --skill cryptotribes-game-logic-developer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: CryptoTribes Game Logic Developer
Source: https://github.com/provnuk88/cryptotribes/tree/main/.claude/skills/game-logic-developer
Command: npx skills add https://github.com/provnuk88/cryptotribes --skill cryptotribes-game-logic-developer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides the formulas and system design required to implement battle calculations, territory dynamics, and real-time updates for CryptoTribes. It ensures gameplay is balanced, engaging, and technically sound.

Core Features & Use Cases

  • Battle Power Formulas: Implement calculations for unit interactions, formations, and terrain modifiers.
  • Territory & VP Systems: Model territory control, VP generation, and rewards from battles.
  • Real-time Integration: Wire game logic to WebSocket events and transaction-safe updates.
  • Use Case: Balance a new Cavalry vs Archer matchup by adjusting unit stats and terrain effects.

Quick Start

Review spec.md, implement calculateBattlePower and related helpers in server/gameLogic.js, and add tests to validate battle outcomes.

Frequently Asked Questions about CryptoTribes Game Logic Developer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I balance a real-time PvP battle system with MongoDB and WebSocket updates?

Battle system balancing for real-time gameplay involves designing unit interaction formulas, terrain modifiers, and formation calculations, then integrating them with WebSocket events and MongoDB schemas to ensure live updates reflect accurate battle outcomes and maintain game state consistency across players.

What formulas do I need to implement for unit stats, terrain effects, and battle power calculations?

Core battle power formulas calculate unit interactions based on stats, apply terrain modifiers, and account for formations. The Skill provides the specific calculations required to balance matchups—like Cavalry vs Archer—and integrate them into server logic controllers and MongoDB models for consistent, transaction-safe gameplay.

How do I model territory control and VP generation in a strategy game with seasonal play?

Territory systems track control ownership, generate victory points based on holdings, and distribute rewards from battles within seasonal cycles. This Skill covers the schema design, VP accumulation logic, and real-time synchronization needed to reward player progress and enable fair ranking across 14-day seasons.

Can I use WebSocket events to sync battle results and resource updates across multiple players?

Yes. WebSocket-based live updates enable real-time synchronization of battle outcomes, resource generation, and territory changes. The Skill integrates game logic with WebSocket handlers and MongoDB transaction-safe updates so all players see consistent state and battle results propagate instantly.

What limits should I set on army size and unit spawning to prevent exploitation?

Dynamic army limits scale with player progression and resource availability to prevent spawn exploitation. The Skill provides the formulas for calculating maximum unit counts, resource generation rates, and balance constraints that keep gameplay fair while allowing strategic depth in unit composition and deployment.

How do I test and validate that battle outcomes and rewards are balanced across different unit matchups?

Balance testing validates battle formulas against matchup scenarios, terrain variations, and formation combinations. The Skill includes test patterns to verify battle calculations produce fair outcomes, reward distribution matches intent, and VP/resource mechanics don't favor specific strategies unfairly.