source-command-improve-parser

Discover unimplemented Lorcana cards, analyze missing regex patterns, and regenerate card files.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill reduces missing or incorrectly parsed Lorcana card abilities by discovering unimplemented parsing cases, designing new parser patterns, and regenerating affected card files.

Core Features & Use Cases

  • Discover unimplemented cards: Scans the card set(s) for empty abilities, manual overrides, and parse failures, then lists the specific cards needing support.
  • Analyze missing parsing patterns: Identifies which pattern categories are absent or incomplete based on card text analysis.
  • Implement patterns and regenerate cards: Adds regex-based patterns, updates types/tests as needed, regenerates card files, and verifies results via typecheck and parser/card tests.

Use Case: When a new Lorcana set is added and several cards have empty abilities or partial parsing, run this Skill to add the missing pattern logic and regenerate the cards so the engine can parse them correctly.

Quick Start

Ask the assistant: run the improve-parser workflow for set 010 and update any missing parser patterns and regenerated card files.

Frequently Asked Questions about source-command-improve-parser

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

FAQPage Schema
How do I fix empty abilities when parsing new Lorcana card sets?

Lorcana card parsing fails on empty abilities when missing regex patterns cannot recognize specific card text. Discovering unimplemented cards, designing new regex patterns, and regenerating affected card files resolves these parse failures and manual override gaps.

What is the best way to automate adding missing parser patterns for a card game?

Automating parser pattern additions requires a discovery-to-verification pipeline that scans for manual overrides and parse failures, designs regex patterns, updates tests, and regenerates card files with typecheck verification reporting PASS-or-issues outcomes.

How does regex pattern analysis work for unimplemented card data?

Regex pattern analysis for unimplemented card data works by scanning card sets to identify empty abilities and parse failures, then categorizing which pattern types are absent to drive the implementation of new regex logic capturing missing card text.

Can I run the parser improvement workflow for a specific card identifier instead of a full set?

Yes, you can run the parser improvement workflow for either a whole Lorcana set or a specific card identifier. This targets individual cards with manual override gaps or parse failures without regenerating the entire set.

Why do I need to update tests when adding new regex patterns for card parsing?

Updating tests when adding regex patterns is required because the discovery-to-verification pipeline validates regenerated card files. Running typecheck and parser tests ensures new pattern logic correctly resolves empty abilities without introducing failures.

What are the limitations of using regex for Lorcana card ability parsing?

Using regex for Lorcana card parsing is limited by the need to manually design patterns for each new unimplemented card text variation. Unconventional ability syntax can cause pattern discovery to fail and require manual overrides.