damas-backend

Coordinates Bun-Hono backend services, MongoDB repositories, Stripe/Clerk webhooks, MOVe validation and AI execution for Damas-MSA platform.

Updated Jun 8, 2026
One-click install
npx skills add https://github.com/1ZH13/Damas-MSA --skill damas-backend
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: damas-backend
Source: https://github.com/1ZH13/Damas-MSA/tree/main/.claude/skills/damas-backend
Command: npx skills add https://github.com/1ZH13/Damas-MSA --skill damas-backend

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you build and maintain the Damas-MSA backend without breaking game rules, authentication, persistence, or AI coordination.

Core Features & Use Cases

  • Server patterns for Bun.serve APIs, AI microservice endpoints, and shared domain modules.
  • Safe persistence with MongoDB or in-memory test repos, optimistic locking, and atomic turn resolution.
  • Rules and AI integration for legal move validation, variant support, hints, Elo updates, webhooks, and perft-based test coverage.
  • Use it when adding endpoints, wiring repositories, verifying Clerk or Stripe webhooks, implementing checkers variants, or hardening backend tests.

Quick Start

Ask me to implement or review a Damas-MSA backend change, such as a new endpoint, a rules update, or a webhook handler.

Frequently Asked Questions about damas-backend

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

FAQPage Schema
How do I enforce legal moves and atomic state transitions in a checkers backend?

Atomic state transitions in a checkers backend require optimistic locking with MongoDB repositories to resolve turns safely. Combine legal move validation, variant rules, and perft-backed tests to enforce game logic and prevent inconsistent board states.

How does shared engine parity work between API and AI microservices for checkers?

Shared engine parity between API and AI microservices ensures identical move validation and variant rules across checkers endpoints. Maintain shared domain modules and deterministic tests to prevent AI move desync and guarantee consistent game logic execution.

Can I use Bun and Hono to build a checkers API with Clerk and Stripe webhooks?

Yes, Bun and Hono support building checkers APIs with Clerk and Stripe webhooks. Implement signature verification for secure authentication and payment processing, while using MongoDB repositories for game persistence and Elo rating updates.

What is the best way to validate checkers game logic with deterministic tests?

Validate checkers game logic with deterministic tests by applying perft-based validation to verify move generation accuracy. Use config-driven rules and shared engine parity to enforce legal moves and variant support across all test scenarios.

Does optimistic locking work with MongoDB for checkers game persistence?

Optimistic locking works with MongoDB for checkers game persistence by enforcing atomic turn resolution and preventing concurrent overwrites. It validates state versions before applying updates, supporting both MongoDB and in-memory test repos for safe transitions.