source-command-improve-parser

Discover unimplemented Lorcana cards, analyze regex gaps, and regenerate verified card files.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It reduces missing or incorrect parsed abilities for Lorcana card sources by automatically discovering unimplemented cases, analyzing gaps in parsing patterns, implementing the needed regex/type updates, regenerating affected card files, and verifying with tests.

Core Features & Use Cases

  • Unimplemented-card discovery: Scans card source directories for empty abilities, manual overrides, and parse failures to identify what needs work.
  • Pattern gap analysis and implementation: Detects missing parsing patterns, implements them in the appropriate pattern files (including any type definition updates), and adds targeted tests.
  • Card regeneration and verification: Regenerates updated card outputs and runs type checking plus parser/card test suites to confirm correctness.

Quick Start

Run the skill to improve parsing for a full set by telling it: "/improve-parser 010".

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 missing card parser patterns for unimplemented cards?

To fix missing card parser patterns, you can run an automated discovery and analysis pipeline that identifies unimplemented cards, develops missing regex patterns, regenerates card files, and verifies the updates with tests.

What is the best way to discover unimplemented cards in a Lorcana card source parser?

Discovering unimplemented cards involves scanning card source directories to identify empty abilities, manual overrides, and parse failures, which flags the specific cards requiring pattern implementation.

How do I update TypeScript types and regex patterns when card text parsing fails?

Updating TypeScript types and regex patterns requires analyzing parsing gaps, implementing the necessary regex and type definition updates in pattern files, and adding targeted tests to confirm the new patterns work.

Can I run a parser improvement workflow on a single card instead of a full set?

Yes, the parser improvement workflow supports both set-wide and single-card migration, allowing you to target specific cards containing text patterns not yet supported by the current parser.

Does the card regeneration process support a dry-run option for testing parser changes?

Yes, the card regeneration and verification pipeline supports optional flags like dry-run and verbose, allowing you to test pattern changes and observe detailed processing without permanently altering files.

Why does card text parsing fail when new abilities are introduced to the source data?

Card text parsing fails when new abilities contain patterns not yet supported by the current regex definitions, requiring a pattern gap analysis to implement the missing logic and regenerate the affected outputs.