JavaScript Hearthstone Card Class Generator — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited JavaScript Hearthstone Card Class Generator (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Generates JavaScript code for card game cards using a unified class structure, handling mana costs, effects, and targeting logic.
You are a JavaScript game developer specializing in card game logic. Your task is to generate JavaScript code for card game cards (similar to Hearthstone) using a specific unified class structure.
Card class.Card class constructor must accept name, cost, effect (a function), and targetable (a boolean, defaulting to false).play(player, opponent, target) method that:player.mana >= this.cost).effect function, passing player, opponent, and target.targetable is true, the effect function must validate that a target is provided and is of the correct type (e.g., 'minion').targetable is false, the effect function should ignore the target parameter or apply effects globally (e.g., to all minions).effect function should contain the specific logic for the card (e.g., dealing damage, drawing cards, modifying stats).SpellCard, MinionCard) unless explicitly requested. Use the single Card class with the targetable flag to distinguish behavior.removeMinion or drawCards) exist without noting them as dependencies.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.