/skills:chess <red-model> vs <black-model>from skills
Runs or records a Chinese chess (Xiangqi) match between two AI models using San Session Groups. Handles setup, board control, and game checkpoints.
Ships in skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
/chess GPT-6.2-Sol vs GPT-6.1-Sol
/chess openai/gpt-6.2-sol vs openai/gpt-6.1-sol
/chess 6.1 Sol xhigh 为红方,6.2 Sol xhigh 为黑方
The model left of vs plays Red and moves first; the model right of vs plays Black. Resolve display names through San's connected model catalog; a qualified provider/model disambiguates. If either side is missing or ambiguous, ask for that side only. The referee defaults to Red's model as a separate session unless explicitly specified. A complete matchup requests a new, uncapped game: prepare and start after both models pass preflight, then continue until an engine result or a genuinely obvious draw confirmed by the real referee. Resume requests have the same uncapped default. Respect explicit demo, capped, setup-only or dry-run scope; the user can stop at any time.
Use three independent San sessions. The red and black sessions choose moves and talk only to the referee through SendMessage; the referee alone operates the browser board. The board rules decide legality and whether there is a formal result. An early demo stop is not a draw or win.
Requires San with Session Groups, Python 3.8+ on a POSIX host, tmux, and Ego Lite (ego-browser). A dry run only describes the workflow; it does not start services or sessions.
Resolve each model by provider, model ID, and auth method through San's connected catalog. A provider/model can still exist under more than one auth method: use an explicitly requested route, prefer a shared connected route when unambiguous, or ask. Use a standard 32-piece start unless this is a short relay demo. Verify the effective reasoning effort in each session and record it in run.json. If the installed San cannot set an explicitly requested effort without writing global preferences, report the blocker and ask before using a different effort; do not use /think as a session-only override on versions where it persists globally. For a serious head-to-head, offer a second game with colors swapped; one game is not a model benchmark.
Put the run in a new durable directory, e.g. ~/Documents/San/Xiangqi/<date>-<match>. Use the scripts relative to this SKILL.md. Example (model IDs are examples, not implicit defaults):
python3 "$SKILL/scripts/match.py" prepare "$RUN" \
--red openai/gpt-6.2-sol --red-auth subscription \
--black openai/gpt-6.1-sol --black-auth subscription --setup standard
python3 "$SKILL/scripts/match.py" serve "$RUN"
python3 "$SKILL/scripts/match.py" tmux "$RUN"
Run serve in a managed background service; it listens only on localhost. Probe the actual board URL in run.json. A --referee provider/model override is optional. The launcher keeps model settings in three new working directories; do not change global provider defaults. It uses the tmux session chess: reuse it if present, create it only if absent (unless the user explicitly supplies --session). Each run gets a short unique window/group such as xq-a1b2c3d4; dates and model names belong in the durable directory and run.json, not the visible session/group name. Other windows are preserved. Re-running tmux for the same run reuses its verified role panes, never starts duplicate model sessions or replaces a foreign window.
In each of the three ready TUI panes, join the unique same group, using run.json's group and the respective role: /group join <group> --as referee, --as red, --as black. Trust only the exact isolated folders created for this match after checking any prompt. Use /group members to check membership and /group hold off before starting; do not dump the full /group help into all three panes. Send each pane only its setup from roles.md, without repeating the whole skill or operator checklist; verify all three answer ready. An actual short inference is required: a model name can appear in a status bar even when the account rejects calls. Do not silently replace a missing model or start with a failed preflight.
Use Ego Lite (ego-browser skill for the installed guide) to open the exact board_url in a named match TaskSpace; keep its ID. Do not reload a board in play. Verify the board with board.py --run "$RUN" --space "$SPACE" state, then use publish for the spectator page and mark opening for the opening screenshot. In a separate uncontrolled user tab/window, open watch_url for the clean recording feed. It stays in sync automatically; it does not take over the referee browser. Ego Lite's own agent-control bubble is browser UI, not something the web page can hide. The referee action uses the same UI buttons without native pointer labels.
window-size latest. Detached startup dimensions are only a fallback. Never force window-size manual or widen the tmux window beyond the client to make logs fit: that crops the right-hand player.tmux list-clients dimensions with the match window, and inspect pane widths. Both lower panes should differ by at most one column. To repair only the layout, without recreating sessions, changing group membership, or touching the board:
python3 "$SKILL/scripts/match.py" layout "$RUN"
This also works with older runs whose window is named match. If the terminal is still too narrow, suggest enlarging the actual terminal; do not fake extra columns.chess session while it contains other runs or user windows.PLAY/MOVE formats and the resume/finish procedure. Start only when the user requests play and both actual models passed preflight. A skill build, visual redesign, or spectator query is not itself a start command.第 8 步 · 黑方行棋 · 上一步 h0→h6 and 第 8 步 · 黑方 · 馬 h9→g7. The terminal may show only this title. The body carries the exact FEN and legal coordinates or the selected move and one brief Chinese explanation. Do not substitute public claims about a turn for model output or expose hidden reasoning.state shows ledger_status other than synced, stop requests and inspect recovery below. The referee does not select a move. From the accepted move's returned state, dispatch one request to the other player unless an engine terminal result, a confirmed obvious draw under the criteria below, or an explicit stop/cap ends play. Coordinates are a0 at Red's bottom left.in-progress, report referee-assessed obvious draw (engine: in-progress) with those grounds, never a formal engine draw, and do not alter the engine result or ledger to manufacture one.The bridge appends each verified move (time, side, move, FEN, public note, outcome) to events.jsonl in the run. Do not record acknowledgments, rejected duplicates, or hidden reasoning as moves. In addition, record a small set of human-useful points: opening, a visible tactical turn (first capture/check or meaningful exchange), pause or model issue, and final verdict. Note the step, what changed, and whether it is a referee assessment or engine result. Use mark <label> on a stable ply for a clean screenshot; don't screenshot every move. Preserve existing archives and make a second one after a resumed finish.
For a requested stop, explicit cap, or confirmed referee-assessed obvious draw, prevent future moves first (touch "$RUN/paused" and use referee /group hold on). Let any already accepted click settle; verify the actual displayed ply, then ask the real referee to evaluate without making or requesting another move. Use archive <label> to save the current image and position with complete move list. Include a short result.md in the run only as the match deliverable: roles, last accepted move, key moments, and either the actual engine result, an explicitly labeled referee-assessed obvious draw with objective grounds and engine: in-progress, or 已暂停,未判胜负 (演示结束,未判胜负 for a demo). A later user-authorized resume defaults to uncapped play, must recheck the saved board and handle at most one still-valid pending move; don't overwrite the earlier snapshot. See roles.md.
After an accidental reload or a closed tab, keep the run paused (touch "$RUN/paused", referee /group hold on). Keep the original run directory, restart its serve if needed, and reopen the exact board_url from run.json in Ego Lite. Use that TaskSpace ID:
python3 "$SKILL/scripts/board.py" --run "$RUN" --space "$SPACE" state
python3 "$SKILL/scripts/board.py" --run "$RUN" --space "$SPACE" restore
If an attempted click has an uncertain result, pause and run state before reopening or reloading. If it reports pending_ply, run restore on the same live board. It records the pending move only if the full move history and resulting position match the saved intent; it does not click or dispatch another move. If the intent cannot be verified, leave the run paused and report the blockage. Do not reset, retry the click, or edit the journal to proceed. Only type: "move" entries in events.jsonl count as accepted moves.
When there is no pending intent, restore replays only accepted moves from the original start, checks each FEN and result, and republishes the spectator view. It preserves notes and repetition history, does not duplicate entries, and neither sends PLAY nor unpauses the match. An unrecorded live move, different history, or damaged ledger is not overwritten. Do not load only the last FEN. Recovery requires compatible board assets and does not modify earlier archives. Resume dispatch only on user request, following roles.md.
Return the run location, screenshots, ledger and result. Distinguish actual end-to-end play, a fixture/UI rehearsal, and any blocked phase. The bundled board uses a simplified local rules profile: threefold repetition is a draw and the engine does not assign fault for perpetual check or chase. Report the actual local engine result, not tournament adjudication. No public chess account or external match server is required.
assets/board/LICENSE (opens in a new tab)assets/board/app.js (opens in a new tab)assets/board/index.html (opens in a new tab)assets/board/view.css (opens in a new tab)assets/board/watch.html (opens in a new tab)assets/board/wood-grain.svg (opens in a new tab)assets/board/xiangqi.js (opens in a new tab)evals/evals.json (opens in a new tab)references/roles.md (opens in a new tab)scripts/board.py (opens in a new tab)scripts/match.py (opens in a new tab)scripts/test_board.py (opens in a new tab)scripts/test_match.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub yanmxa/skills --plugin skills16 skills in this plugin
/animateMake a black-and-white comic-style animated product demo — a single HTML page of timed scenes (logo slam, terminal walkthroughs, sessions messaging each other, feature grids) that loops in the browser and renders to a crisp GIF/MP4 for a README or landing page. Use whenever the user wants an animated intro, demo video, product showcase, README GIF, "动画介绍 / 动图 / 宣传动画", or asks for a comic / manga / ink / hand-drawn look for a demo — even if they only say "make the intro video better" or "the README GIF looks dull"./auto-devAutonomous development workflow - understand an issue, plan changes, implement with change notes, and run an iterative verify-fix loop until passing. Use this skill when the user mentions auto dev, fix a bug, implement a feature, develop a fix, autonomous development, work on an issue, debug this, make it work, implement this change, help me fix this test, or wants an end-to-end code-change workflow. Do NOT trigger for code explanation or review requests where no code changes are needed./auto-researchGenerate a program.md for autonomous AI research experiments (Karpathy's autoresearch paradigm). Interviews user about codebase, metric, and constraints, then produces a tailored program for an AI agent to iterate autonomously./find-skillFind, compare, and optionally install agent skills from skills.sh, GitHub, and official sources. Use when someone asks what skills fit a task or project, wants to compare candidates, or asks to install a named skill. Installation requires explicit approval./gitGit workflow automation - commit/push with sign-off, create/list/compact/rebase PRs, and contribute to upstream repos. Use this skill whenever the user mentions PR, pull request, create PR, show my PRs, list PRs, squash commits, compact commits, rebase PR, commit and push, push updates, push changes, contribute to a repo, fork and submit, or wants to manage any aspect of Git operations./jiraJira operations — sprint board, my issues, create/update/close/link issues. Triggers on sprint, issues, create, update, close, link, or any ACM-xxx mention.