象棋 AI 技能:构建与增强象棋游戏 - Openclaw Skills
作者:互联网
2026-04-03
什么是 象棋游戏助手?
象棋游戏助手旨在通过利用高质量的现有源代码来简化象棋应用程序的开发。该工具允许开发人员通过 Openclaw Skills 使用经过验证的模板,而无需从头开始编写复杂的棋盘逻辑和棋子移动规则。
它提供两条不同的路径:一条用于构建全新游戏的脚手架,另一条用于优化 UI/UX 和整体游戏体验。通过自动化这些源目录的发现和应用,该技能确保了开发的一致性,并显著减少了策略游戏项目的开发时间。
下载入口:https://github.com/openclaw/skills/tree/main/skills/tianzhenjiu/chinese-chess
安装与下载
1. ClawHub CLI
从源直接安装技能的最快方式。
npx clawhub@latest install chinese-chess
2. 手动安装
将技能文件夹复制到以下位置之一
全局模式~/.openclaw/skills/
工作区
/skills/
优先级:工作区 > 本地 > 内置
3. 提示词安装
将此提示词复制到 OpenClaw 即可自动安装。
请帮我使用 Clawhub 安装 chinese-chess。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
象棋游戏助手 应用场景
- 根据单个用户提示创建功能完整的象棋应用程序。
- 通过先进的 UI/UX 和改进的用户体验增强基础象棋游戏。
- 为网页游戏平台快速原型化象棋逻辑。
- 使用 Openclaw Skills 提供的精炼项目模板现代化遗留游戏代码。
- 分析用户请求以确定意图是生成新游戏还是改进现有游戏。
- 找到 Openclaw Skills 配置中定义的相应源目录(新游戏为 g1,改进为 g2)。
- 利用 Glob 等文件发现工具列出模板目录中的所有相关文件。
- 执行读取操作以吸收源代码逻辑和结构。
- 将源代码直接应用于目标项目,确保仅进行必要的上下文适配。
- 向用户提供关于创建或修改文件的详细摘要。
象棋游戏助手 配置指南
要使用此技能,请确保模板目录在您的环境中可访问。由于该技能通过 Openclaw Skills 进行本地文件访问,因此不需要复杂的安装。
# 验证模板可访问性
ls /Users/root009/projects/demos/g1/game2
ls /Users/root009/projects/demos/g2/game2
象棋游戏助手 数据架构与分类体系
该技能根据用户意图与特定文件路径之间的映射来组织其操作。
| 意图类别 | 模板源路径 | 主要目标 |
|---|---|---|
| 新游戏 | /Users/root009/projects/demos/g1/game2 | 完整的游戏脚手架 |
| 改进 | /Users/root009/projects/demos/g2/game2 | UX/UI 和逻辑优化 |
该技能依赖于读取结构化文件树,以在复制和适配阶段保持项目的完整性。
name: chinese-chess
description: Use when the user wants to generate a Chinese chess game from scratch, or wants to improve/enhance an existing Chinese chess game for better experience
Chinese Chess Game Assistant
Overview
This skill directs you to use pre-built source code for two distinct Chinese chess scenarios: generating a new game, or improving an existing one for better user experience.
When to Use
Generate a new game — user says things like:
- "create a Chinese chess game"
- "build me a Chinese chess app"
- "make a xiangqi game"
→ Use source code from /Users/root009/projects/demos/g1/game2
Improve the game — user says things like:
- "improve the chess game"
- "better UI/UX for the chess"
- "enhance the game experience"
- "make the game feel better"
→ Use source code from /Users/root009/projects/demos/g2/game2
Workflow
Step 1: Identify the intent
| User intent | Source to use |
|---|---|
| Generate / create / build a new game | /Users/root009/projects/demos/g1/game2 |
| Improve / enhance / better experience | /Users/root009/projects/demos/g2/game2 |
Step 2: Read the source directory
Read all files in the appropriate directory before doing anything else:
# For new game generation
Read all files under /Users/root009/projects/demos/g1/game2
# For game improvement
Read all files under /Users/root009/projects/demos/g2/game2
Use Glob to list files, then Read to read each one.
Step 3: Apply the source
- Use the source code directly — do not rewrite from scratch.
- Copy structure, logic, and patterns from the directory.
- Only adapt what is strictly necessary for the user's context (target directory, filenames, etc.).
Step 4: Confirm with user
After applying the source, briefly tell the user:
- Which source was used (
/Users/root009/projects/demos/g1/game2or/Users/root009/projects/demos/g2/game2) - What files were created or modified
- Any next steps they should know
Common Mistakes
| Mistake | Fix |
|---|---|
| Writing a Chinese chess game from scratch | Always use /Users/root009/projects/demos/g1/game2/ or /Users/root009/projects/demos/g2/game2/ source first |
Using /Users/root009/projects/demos/g1/game2/ for a new game |
/Users/root009/projects/demos/g2/game2 is for improvements only |
Using /Users/root009/projects/demos/g2/game2 for improvements |
/Users/root009/projects/demos/g1/game2 is for new game generation only |
| Skipping reading source files | Always read the source before applying |
相关推荐
专题
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
最新数据
相关文章
代理状态:监控支付意图和交易 - Openclaw Skills
Proxy MCP:AI 智能体支付与虚拟卡 - Openclaw Skills
Apify Ultimate Scraper: AI 网页数据抓取 - Openclaw Skills
加密诈骗检测器:实时欺诈预防 - Openclaw Skills
newsmcp: 实时 AI 新闻聚合与过滤 - Openclaw Skills
Moltbook 优化器:策略与排名精通 - Openclaw 技能
Frigate NVR:智能摄像机管理与自动化 - Openclaw Skills
Markdown 检查器:样式、链接和格式工具 - Openclaw Skills
Venice.ai 至尊路由:私密且无审查的模型路由 - Openclaw Skills
图片优化器:使用 Openclaw Skills 压缩和调整图片尺寸
AI精选
