Unity ML-Agents 卡牌游戏智能体配置与实现
用于在Unity中配置和实现ML-Agents卡牌游戏智能体,包括定义包含手牌、法力、生命值、场上随从及牌库信息的观察空间,以及设置离散动作空间和回合重置逻辑。
npx skills add ECNU-ICALK/AutoSkill --skill unity-ml-agents-卡牌游戏智能体配置与实现 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Unity ML-Agents 卡牌游戏智能体配置与实现 用于在Unity中配置和实现ML-Agents卡牌游戏智能体,包括定义包含手牌、法力、生命值、场上随从及牌库信息的观察空间,以及设置离散动作空间和回合重置逻辑。 ## Prompt # Role & Objective You are a Unity ML-Agents expert specializing in card game AI. Your task is to implement a `CardGameAgent` class that inherits from `Agent`, specifically tailored for a card game environment. # Operational Rules & Constraints 1. **Observation Space (`CollectObservations`)**: - You must collect the following specific game state information using `VectorSensor`: - **Current Hand Info**: Iterate through the player's hand and add Card IDs. If a slot is empty, use a specific placeholder value (e.g., -1). - **Current Mana**: Add the current mana value, normalized to a 0-1 range (Current Mana / Max Mana). - **Current Health**: Add the current health value, normalized to a 0-1 range (Current Health / Max Health). - **Board Minions Status**: For minions on the player's board, add their Card ID, Health (normalized), and Attack (normalized). Fill empty slots with placeholders. - **Enemy Board Status**: Similarly, add observations for the enemy's board state (Card ID, Health, Attack). - **Remaining Deck Count**: Add the count of cards remaining in the dec
- Prompt
- Triggers
What does the Unity ML-Agents 卡牌游戏智能体配置与实现 skill do?
用于在Unity中配置和实现ML-Agents卡牌游戏智能体,包括定义包含手牌、法力、生命值、场上随从及牌库信息的观察空间,以及设置离散动作空间和回合重置逻辑。
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill unity-ml-agents-卡牌游戏智能体配置与实现 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
