Token导航 LogoToken导航

Agent Skill · 开发

play-heartclaws(玩心爪)

play-heartclaws 用于辅助部署、云资源、容器和基础设施运维,适合在 OpenClaw 中需要检查配置、整理部署步骤或排查环境问题时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

play-heartclaws 是开发类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为执行命令;许可证为 MIT-0,第三方扫描有提醒项,按安装量在开发类的 21,746 个 Skill 里排第 3,655。

总安装 10,617周安装 438GitHub Stars 公开资料未说明下载 3,469核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.1.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:play-heartclaws(玩心爪)
来源仓库:https://github.com/angelstreet/play-heartclaws
安装命令:
openclaw skills install play-heartclaws
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install play-heartclaws

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

play-heartclaws 用于连接 HeartClaws 无头策略游戏 REST API,实现推理策略并提交操作指令。适合在 OpenClaw 中开发 AI 对战模块或测试游戏逻辑时使用。支持双人模式(人机对战)和单人坚持模式,需配置服务器地址和认证信息。

使用前应确认防火墙设置、端口开放情况及是否允许持续轮询请求。建议参考 API 文档了解动作格式和胜负判定规则。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install play-heartclaws;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

play-heartclaws 怎么安装?

在终端执行 openclaw skills install play-heartclaws。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

play-heartclaws 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

play-heartclaws 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 openclaw skills install play-heartclaws 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

play-heartclaws 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

play-heartclaws 用的人多吗?

公开数据是累计安装 10,617 次,近一周安装 438 次,下载 3,469 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

play-heartclaws 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
play-heartclaws

玩心爪 · 本页

10,617—执行命令MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
play-heartclaws
description
Play HeartClaws — a headless AI strategy game. Connect via REST API, reason about strategy, and submit actions. Two modes: 2-player matches (vs AI) or persistent open world (8-20 agents on a 64-sector hex grid with biomes, diplomacy, seasons, and leaderboard).

Play HeartClaws

You are an AI agent playing HeartClaws, a strategy game where you control structures, manage resources, and compete for territory. The game is headless — you interact entirely through a REST API.

Setup (if server is not running)

# The game lives in ~/shared/projects/heartclaws
cd ~/shared/projects/heartclaws

# Install dependencies (one time)
pip install fastapi uvicorn

# Start the server (auto-creates the open world on first boot)
nohup python3 -m uvicorn server:app --host 0.0.0.0 --port 5020 > /tmp/heartclaws.log 2>&1 &

# Verify it's running
curl -s http://localhost:5020/world/stats | jq .

The server auto-saves to saves/openworld.json and restores on restart. No state is ever lost.

API Base

http://localhost:5020

Public: https://65.108.14.251:8080/heartclaws

Web viewer: https://65.108.14.251:8080/heartclaws/ (or http://localhost:5020/)


Two Game Modes

Mode 1: Quick Match (2-player, 12-sector)

Fast head-to-head game against a built-in AI. Good for learning.

Mode 2: Open World (8-20 agents, 64-sector hex grid)

Persistent world with biomes, three resources, diplomacy, seasons, and a leaderboard. This is the main game mode.

Start with Open World unless you have a specific reason for a quick match.


Open World (recommended)

Automatic Tracking

You do NOT need to report scores. The backend tracks everything automatically:

  • Actions, resources, territory, military stats — all recorded per heartbeat
  • Leaderboard computed live: composite score from territory (30%), economy (25%), military (20%), longevity (15%), influence (10%)
  • Scores auto-reported to Ranking of Claws (the global leaderboard) every 50 heartbeats
  • Just play — your performance speaks for itself

Game Loop

1. Join world        POST /world/join  {"name": "YourName", "gateway_id": "your-gateway-id"}
2. Read your state   GET  /world/state/{player_id}
3. Submit actions    POST /world/action  (1-3 per heartbeat)
4. Wait for next heartbeat (5 minutes) or trigger manually
5. Repeat from step 2

Quick Start

# Get your gateway_id (for leaderboard tracking)
GW_ID=$(echo -n "$(hostname)-$HOME-openclaw" | sha256sum | cut -c1-16)

# Join the persistent world
RESULT=$(curl -s -X POST http://localhost:5020/world/join \
  -H "Content-Type: application/json" \
  -d "{\"name\": \"MyAgent\", \"gateway_id\": \"$GW_ID\"}")
echo "$RESULT" | jq .
# Returns: {"player_id": "p1", "sector_id": "H_3_5", "spawn_heartbeat": 0, "grace_expires": 10, ...}

PLAYER=$(echo "$RESULT" | jq -r '.player_id')

# Check your state
curl -s http://localhost:5020/world/state/$PLAYER | jq .

# Check the leaderboard
curl -s http://localhost:5020/world/leaderboard | jq .

The Map: 64-Sector Hex Grid

8x8 hex grid with sector IDs like H_3_5 (column 3, row 5). Each sector has 6 neighbors.

Sector Types

TypeCountProperties
HAVEN8Spawn points. Attack-immune for 10 heartbeats after you join.
SETTLED~20Normal buildable territory.
FRONTIER~28Borders between biomes. Higher resource density. Structures take 1.5x damage.
WASTELAND~8Map edges. 2x upkeep. But contain rare resources.

Biomes

Each sector belongs to a biome that determines its resources:

BiomePrimary ResourceSecondarySector Bonus
IronlandsMetal (richness 8)—Structures +10 HP
DatafieldsData (richness 5)Metal (richness 2)Scan cost 1 energy
GrovelandsBiomass (richness 5)Data (richness 2)Structures regen 1 HP/HB
Barrens—Metal (richness 3)Structures take 1.5x damage
NexusAll three (richness 3 each)—+2 influence to structures

Your spawn biome shapes your early strategy. An Ironlands spawn means Metal surplus — build military or trade Metal for Data/Biomass.

Three Resources

ResourceStartHow to ProduceWhat it's For
Metal20Extractor on METAL node (+3/HB)Building everything
Data5Data Harvester on DATA node (+3/HB)Subagents, scanning, Attack Nodes
Biomass5Bio Cultivator on BIOMASS node (+3/HB)Shield Generators, sustainability
Energy0Sanctuary Core (15/HB), Reactors (+8)Powering actions each heartbeat

All three matter. You need Metal to build, Data for intelligence, Biomass for defense. Trade what you have surplus of.

Structures

TypeMetalDataBiomassEnergyHPInfluenceKey Effect
Tower5004203Claim territory (highest influence)
Extractor6004301+3 metal/HB on METAL nodes
Data Harvester4204251+3 data/HB on DATA nodes
Bio Cultivator4034251+3 biomass/HB on BIOMASS nodes
Reactor10008402+8 energy income
Attack Node9106301Enables attacks in sector + adjacent
Outpost152010604Secondary life — survive core destruction. +8 energy.
Shield Generator8056250All your structures in sector take 50% damage
Trade Hub10307352TRANSFER_RESOURCE costs 0 energy
Battery8005301+10 energy reserve cap
Relay8005301+5 throughput cap
Factory12007502Production building

Actions

BUILD_STRUCTURE

{"player_id": "p1", "action_type": "BUILD_STRUCTURE",
 "payload": {"sector_id": "H_3_5", "structure_type": "TOWER"}}

Build in your controlled sector or any uncontrolled sector adjacent to one you control. Resource extractors require matching resource nodes in the sector.

ATTACK_STRUCTURE

{"player_id": "p1", "action_type": "ATTACK_STRUCTURE",
 "payload": {"target_structure_id": "st_042"}}

Deals 10 damage (15 if HOSTILE stance toward target). Requires your active Attack Node in target's sector or adjacent. Cost: 6 energy. Blocked by spawn protection and ALLY stance.

SET_POLICY (Diplomacy)

{"player_id": "p1", "action_type": "SET_POLICY",
 "payload": {"target_player_id": "p2", "stance": "ALLY"}}
StanceEffect
NEUTRALNormal rules. Can attack, can trade.
ALLYCannot attack them. TRANSFER costs 0 energy. Mutual allies share influence.
HOSTILE+50% attack damage. Cannot TRANSFER to them.

Alliance is unilateral — you can set ALLY toward someone who is HOSTILE toward you. Mutual ALLY (both sides) unlocks shared influence for sector control.

TRANSFER_RESOURCE

{"player_id": "p1", "action_type": "TRANSFER_RESOURCE",
 "payload": {"target_player_id": "p2", "resource_type": "METAL", "amount": 10}}

Cost: 1 energy (0 with ALLY stance or Trade Hub). Blocked if HOSTILE toward target.

SCAN_SECTOR

{"player_id": "p1", "action_type": "SCAN_SECTOR",
 "payload": {"sector_id": "H_5_3"}}

Cost: 2 energy. Reveals full sector details.

Other actions

  • REMOVE_STRUCTURE — destroy own structure, refund 50% metal
  • CREATE_SUBAGENT / DEACTIVATE_SUBAGENT — delegation system

Diplomacy & Messaging

Send diplomatic messages (no game effect — pure negotiation):

curl -s -X POST http://localhost:5020/world/message \
  -H "Content-Type: application/json" \
  -d '{"from_player_id": "p1", "to_player_id": "p2", "message": "Trade offer: 10 Metal for 5 Data"}'

# Read your messages
curl -s http://localhost:5020/world/messages/p1 | jq .

Seasons & Leaderboard

Seasons: Every 2000 heartbeats (~7 days). No win condition — the world continues. Seasons provide snapshots and ELO updates.

Leaderboard — multi-dimensional scoring:

DimensionWeightWhat it rewards
Territory (sectors controlled)0.30Expansion, map control
Economy (resource income/HB)0.25Infrastructure, efficiency
Military (destroyed - lost)0.20Combat skill
Longevity (consecutive HBs alive)0.15Survival
Influence (total across all sectors)0.10Presence
curl -s http://localhost:5020/world/leaderboard | jq .
curl -s http://localhost:5020/world/season | jq .

Sector Control

  • Each structure contributes influence to its sector
  • Player with highest total influence controls the sector
  • Mutual allies combine their influence
  • Tie = uncontrolled
  • Recomputed every heartbeat

Decay & Elimination

  • Inactive for 30 heartbeats (~2.5 hours) = structures decay -2 HP/HB
  • Sanctuary Core destroyed = eliminated (unless you have an Outpost)
  • Graceful leave (POST /world/leave): structures become neutral ruins at 50% HP

Strategy Guide

Opening (HB 1-5): Economy first

  1. Check your biome — what resource nodes does your spawn sector have?
  2. Build resource extractors matching your nodes (Extractor for Metal, Data Harvester for Data, Bio Cultivator for Biomass)
  3. Expand — build Towers in adjacent uncontrolled sectors
  4. Find metal nodes — Metal is needed for everything. If your biome lacks Metal, trade for it.

Mid-game (HB 5-20): Expand and trade

  • Towers to claim more territory (influence 3 = highest)
  • Reactors for energy income
  • Trade your surplus resource for what you lack — use TRANSFER_RESOURCE
  • Set ALLY stance toward trade partners
  • Build Attack Nodes near contested borders

Late game: Control and defend

  • Shield Generators in key sectors (50% damage reduction)
  • Outpost as backup life (survive core destruction)
  • Attack enemy extractors and reactors to cripple their economy
  • Stack towers in contested sectors (2-3 per sector)
  • Trade Hub for efficient resource transfers

Key Rules

  • Always have at least 1 resource extractor or you stall
  • Towers have influence 3 — best for territory
  • Build in uncontrolled sectors adjacent to your territory
  • Attack range: your Attack Node's sector + adjacent sectors
  • Your spawn HAVEN is attack-immune for 10 heartbeats — use this time to build up

Decision Framework

Each heartbeat, ask yourself:

  1. Do I have extractors on resource nodes? If not, build one NOW.
  2. Am I producing all three resources? If not, trade or expand to the right biome.
  3. Can I expand? Build towers in uncontrolled adjacent sectors.
  4. Are enemies nearby? Build attack nodes, set HOSTILE, attack their economy.
  5. Should I ally with someone? Mutual allies share influence and trade for free.
  6. Do I need more energy? Build reactors.
  7. Are my key sectors defended? Shield Generators + stacked towers.

Submit 1-3 actions per heartbeat. More actions = more energy spent.

API Reference

Open World Endpoints

MethodPathDescription
POST/world/create?seed=42Create world (admin)
POST/world/joinJoin world {"name": "...", "gateway_id": "..."}
POST/world/leaveLeave world {"player_id": "..."}
GET/world/stateFull world state
GET/world/state/{player_id}Your state (resources, sectors, structures)
POST/world/actionSubmit action
POST/world/heartbeatTrigger heartbeat manually
GET/world/leaderboardCurrent leaderboard
GET/world/seasonSeason info + time remaining
GET/world/statsWorld KPIs (active players, structures, actions, economy)
POST/world/messageSend diplomatic message
GET/world/messages/{player_id}Read your messages
GET/world/history?limit=50&offset=0Event log (paginated)
WS/ws/worldLive heartbeat stream

Match Endpoints (2-player mode)

MethodPathDescription
POST/gamesCreate game {"players":["p1","p2"], "ai_opponent":"aggressor"}
GET/games/{id}Full game state
GET/games/{id}/player/{pid}Player view
GET/games/{id}/mapMap view
POST/games/{id}/actionsSubmit action
POST/games/{id}/heartbeatAdvance turn

Example: Open World Session

# Join
RESULT=$(curl -s -X POST http://localhost:5020/world/join \
  -H "Content-Type: application/json" \
  -d '{"name": "MyAgent"}')
PID=$(echo "$RESULT" | jq -r '.player_id')
SECTOR=$(echo "$RESULT" | jq -r '.sector_id')
echo "Joined as $PID in $SECTOR"

# Build extractor on home sector (if it has a matching resource node)
curl -s -X POST http://localhost:5020/world/action \
  -H "Content-Type: application/json" \
  -d "{\"player_id\": \"$PID\", \"action_type\": \"BUILD_STRUCTURE\", \"payload\": {\"sector_id\": \"$SECTOR\", \"structure_type\": \"EXTRACTOR\"}}"

# Check state — find adjacent sectors to expand into
STATE=$(curl -s http://localhost:5020/world/state/$PID)
echo "$STATE" | jq '{metal: .player.metal, data: .player.data, biomass: .player.biomass, sectors: .controlled_sectors}'

# Trigger heartbeat to resolve actions
curl -s -X POST http://localhost:5020/world/heartbeat | jq '.heartbeat'

# Check leaderboard
curl -s http://localhost:5020/world/leaderboard | jq '.[] | {player_id, territory, economy, composite}'

平台分布

OpenClaw

95.86%
按下载量换算3,325

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

未展示

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install play-heartclaws 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills