tfm-add-card

Guide adding Terraforming Mars cards with TypeScript logic and unit tests.

Updated Feb 11, 2023
One-click install
npx skills add https://github.com/Ender-Wiggin2019/elo --skill tfm-add-card
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tfm-add-card
Source: https://github.com/Ender-Wiggin2019/elo/tree/main/.agents/skills/tfm-add-card
Command: npx skills add https://github.com/Ender-Wiggin2019/elo --skill tfm-add-card

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of adding new cards to the Terraforming Mars project, ensuring all necessary steps are followed for seamless integration.

Core Features & Use Cases

  • Card Implementation Guide: Provides a step-by-step workflow for registering card names, implementing card logic, updating manifests, and writing unit tests.
  • Code Templates: Offers clear templates for both Corporation and Project cards, including common patterns and API references.
  • Use Case: A developer needs to add a new custom card to the Terraforming Mars game. They can use this Skill to guide them through the entire process, from initial registration to final testing.

Quick Start

Use the tfm-add-card skill to add a new project card named 'My New Project Card' with the cost of 10 and the building tag.

Frequently Asked Questions about tfm-add-card

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

FAQPage Schema
How do I add new cards to Terraforming Mars?

To add new cards to Terraforming Mars, you register the card name, implement the TypeScript logic, update the commission card manifests, and write unit tests to ensure seamless integration.

What are the steps to implement Terraforming Mars card logic in TypeScript?

Implementing Terraforming Mars card logic involves using the provided templates for corporation and project cards, applying common API patterns, and utilizing the CardRenderer DSL for effect descriptions.

How do I write unit tests for new game cards in Terraforming Mars?

Writing unit tests for new Terraforming Mars cards is the final step in the integration workflow, verifying that the newly registered TypeScript card logic behaves correctly within the game engine.

Do I need to update manifests when adding a project card to Terraforming Mars?

Yes, updating the commission card manifests is a required step when adding a project card to Terraforming Mars, ensuring the game engine properly recognizes and loads the new card.

Can I use this to add both corporation and project cards to Terraforming Mars?

Yes, you can add both corporation and project cards to Terraforming Mars, as the guide provides specific code templates and implementation patterns tailored for each distinct card type.

What is the CardRenderer DSL used for in Terraforming Mars game development?

The CardRenderer DSL is used for defining and rendering effect descriptions within Terraforming Mars card implementations, providing a domain-specific language for accurate card behavior visualization.