← 返回 Skills 市场
tianzhenjiu

Chinese Chess

作者 tianzhenjiu · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
406
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install chinese-chess
功能描述
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
使用说明 (SKILL.md)

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/game2 or /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
安全使用建议
This skill asks the agent to read entire absolute directories on the host (/Users/root009/...). Before installing, ask the author why those paths are required and whether the skill can instead bundle templates or fetch them from a public repo. Do not grant broad filesystem access or run this skill in an environment with sensitive files. If you still want to test it, run the agent in a strict sandbox with only a controlled test directory containing known templates, or modify SKILL.md to point to a safe, relative workspace path. If the skill came from an unknown source, prefer not to install it until the hardcoded paths are removed or explained.
功能分析
Type: OpenClaw Skill Name: chinese-chess Version: 1.0.0 The SKILL.md instructs the AI agent to read all files from hardcoded absolute paths on the host system (`/Users/root009/projects/demos/g1/game2` and `/Users/root009/projects/demos/g2/game2`). This capability allows the agent to access and process arbitrary local files outside the skill's own bundle, posing a significant information disclosure risk. While there are no explicit instructions for data exfiltration or malicious execution, the ability to read arbitrary files from the host filesystem is a high-risk behavior that could be exploited for sensitive data leakage or further prompt injection.
能力评估
Purpose & Capability
The stated purpose (generate or improve a Chinese chess game) could legitimately use existing templates, but the skill hardcodes two absolute local paths (/Users/root009/projects/demos/g1/game2 and /Users/root009/projects/demos/g2/game2). That ties the skill to a specific developer machine and is not appropriate or necessary for a general-purpose skill.
Instruction Scope
SKILL.md explicitly instructs the agent to 'read all files' under those absolute directories (use Glob then Read) before doing anything else. That grants broad filesystem access and could expose sensitive or unrelated user data; the instructions do not limit scope or justify why entire directories must be read.
Install Mechanism
No install spec and no code files are present, which lowers supply-chain risk. However, being instruction-only does not mitigate the instruction-level request to perform wide file reads on the host filesystem.
Credentials
The skill declares no required env vars or credentials but the runtime instructions require access to specific local filesystem paths. This mismatch (no declared filesystem/config requirements but explicit file I/O in instructions) is incoherent and increases the chance of unintended data access.
Persistence & Privilege
always:false and no install means it won't be force-included. Autonomous invocation is allowed by the platform default (not flagged alone). The skill does not request to modify other skills or global agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install chinese-chess
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /chinese-chess 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Chinese Chess Skill 1.0.0 - Introduces a new assistant for generating or improving Chinese chess (Xiangqi) games. - Clearly separates two workflows: creating a new game vs. enhancing an existing one. - Specifies which source code directories to use for each scenario. - Adds step-by-step instructions: intent identification, reading source files, application, and user confirmation. - Highlights common mistakes and how to avoid them.
元数据
Slug chinese-chess
版本 1.0.0
许可证
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Chinese Chess 是什么?

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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 406 次。

如何安装 Chinese Chess?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install chinese-chess」即可一键安装,无需额外配置。

Chinese Chess 是免费的吗?

是的,Chinese Chess 完全免费(开源免费),可自由下载、安装和使用。

Chinese Chess 支持哪些平台?

Chinese Chess 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Chinese Chess?

由 tianzhenjiu(@tianzhenjiu)开发并维护,当前版本 v1.0.0。

💬 留言讨论