source-command-regenerate-cards

Re-parse Lorcana card text and update TypeScript card files.

14|5|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/TheCardGoat/lorcana-simulator --skill source-command-regenerate-cards
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: source-command-regenerate-cards
Source: https://github.com/TheCardGoat/lorcana-simulator/tree/main/.agents/skills/source-command-regenerate-cards
Command: npx skills add https://github.com/TheCardGoat/lorcana-simulator --skill source-command-regenerate-cards

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It removes the manual, error-prone work of updating large numbers of Lorcana card files when the text parser (or ability extraction logic) changes.

Core Features & Use Cases

  • Batch regeneration for sets or specific cards: Re-parses card text and updates the generated abilities for a whole set, an individual card, or all sets when explicitly requested.
  • Change-aware updates: Compares newly parsed abilities to existing ones and updates files only when differences are detected (including modified/added abilities).
  • Safe handling of manual overrides: Skips cards marked for manual override by default, with an explicit force option for exceptional cases.
  • Verification-oriented workflow: Produces output suitable for reviewing diffs and running type checks and card tests after regeneration.

Quick Start

Ask to run regeneration for set 010 and update the affected card files based on the latest parser behavior.

Frequently Asked Questions about source-command-regenerate-cards

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

FAQPage Schema
How do I regenerate TypeScript card files after updating a Lorcana text parser?

To regenerate TypeScript card files after parser updates, re-parse the Lorcana card text and update the generated abilities for a whole set, an individual card, or all sets. The process compares newly parsed abilities to existing ones and updates files only when differences are detected.

What is the best way to batch process card ability extraction without losing manual overrides?

Batch processing card ability extraction safely skips cards marked for manual override by default. An explicit force option exists for exceptional cases, ensuring selective updates preserve manually edited abilities while applying parsed changes to the rest of the set.

How does change-aware card regeneration work when parser updates are applied?

Change-aware card regeneration works by comparing newly parsed abilities against existing ones in the TypeScript files. It detects modified or added abilities and selectively updates the files only when actual differences are found, preventing unnecessary file modifications.

Can I run card regeneration for a specific card identifier instead of an entire set?

Yes, you can run card regeneration for a specific card identifier, an entire set, or all sets with explicit confirmation. This targets the re-parse-and-compare logic to individual cards, updating only the corresponding TypeScript file.

What verification steps should I run after executing Lorcana card ability regeneration?

After Lorcana card ability regeneration, you should review the output diffs and run type checking alongside card tests. This verification-oriented workflow ensures the updated TypeScript files maintain structural integrity and pass test verification.

Why does card file regeneration skip certain cards with manual abilities?

Card file regeneration skips certain cards with manual abilities to protect manual overrides from being overwritten by automated parser updates. This ensures custom ability extraction logic remains intact unless an explicit force option is used.