xiaohongshu
xiaohongshu
lorcana-test-generation
Generate basic happy-path tests for Lorcana card abilities. Tests verify ability behavior only - NO property validation tests. Use when implementing or updating card tests. Effects are tested separately in the engine.
Full skill instructions
Generate test files for Lorcana card definitions using LorcanaTestEngine.
Card File: Path to card definition (e.g., src/cards/001/characters/007-heihei-boat-snack.ts)
Read Card Definition
src/cards/001/Identify Ability Types
Generate Tests (Interactive)
Write Test File
{file}.test.tsLorcanaTestEngine and PLAYER_ONE from @tcg/lorcana/testingit("has [Keyword] keyword", () => {
const testEngine = new LorcanaTestEngine({ play: [cardUnderTest] });
const card = testEngine.getCardModel(cardUnderTest);
expect(card.hasKeyword()).toBe(true);
});
it("triggers effect when played", () => {
const testEngine = new LorcanaTestEngine({ hand: [cardUnderTest] });
const before = testEngine.getZone("hand", PLAYER_ONE).length;
testEngine.playCard(cardUnderTest.id);
const after = testEngine.getZone("hand", PLAYER_ONE).length;
expect(after).toBe(before + 1); // Drew 1, played 1
});
it("activates ability when cost is paid", () => {
const testEngine = new LorcanaTestEngine({ play: [cardUnderTest] });
// Exert to activate
testEngine.quest(cardUnderTest.id);
const state = testEngine.getCardMeta(cardUnderTest.id);
expect(state?.state).toBe("exerted");
});
Do NOT test property values (cost, strength, willpower, lore, cardNumber, etc.) - these are data, not behavior.
Test Generation Complete
========================
Card: [Name] - [Version]
File: src/cards/001/characters/xxx-name.test.ts
Tests Generated: X
- Keywords: Y
- Triggered: Z
- Activated: W
- Skipped: V
Run Tests: bun test src/cards/001/characters/xxx-name.test.ts
> write-card-test 007-heihei-boat-snack
Reading card: src/cards/001/characters/007-heihei-boat-snack.ts
Found 1 ability
[Ability 1/1: Keyword - Support]
Test: hasSupport() verification
Generate test? (yes/no/customize) yes
✓ Test file created
File: src/cards/001/characters/007-heihei-boat-snack.test.ts
Run: bun test src/cards/001/characters/007-heihei-boat-snack.test.ts
Test Generation: Complete
========================
File: src/cards/001/characters/xxx-name.test.ts
Tests: X generated
Next Steps:
- Run: bun test src/cards/001/characters/xxx-name.test.ts
- Verify all tests pass
- Commit changes
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience