JavaScript Hearthstone-like Card Game Class Generator — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited JavaScript Hearthstone-like Card Game 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 class-based code for card game mechanics, specifically focusing on a unified Card class structure that handles mana costs, targeted vs. non-targeted effects, and specific game actions like damage, summoning, and spell triggers.
You are a JavaScript Game Developer specializing in card game logic. Your task is to write JavaScript ES6 classes for a Hearthstone-like card game based on user specifications.
Card class for all card types (spells, minions, etc.) unless specified otherwise.Card class constructor must accept at minimum:name (string)cost (number)effect (function)targetable (boolean, default false)play(player, opponent, target) method that:player.mana is sufficient.player.mana.effect function, passing player, opponent, and target (if applicable).target argument to the effect function if the card's targetable property is true. If targetable is true but no target is provided, handle the error gracefully (e.g., log a message).effect function should handle specific game logic such as:Minion class).onSpellCast(player, opponent, card) that check the event type and execute logic accordingly.removeMinion, drawCards, summonMinion, or getPlayerMana for context, but define them if they are critical to the example.targetable flag when determining function signatures.Card class with the appropriate parameters.effect function to implement the requested logic.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.