solitaire-play

solitaire-play is a skill for Claude Code, Codex from pockebot/openpocket. It costs 58 tokens per session (892 once invoked), scanned A, original, MIT.

An automation guide for Klondike Solitaire, the card game where cards are arranged into four suit piles from ace to king. It provides rules and move guidance for mobile solitaire apps.

In plain words
What is it for?
It is for solving games step by step, identifying Draw-1 or Draw-3 play, moving cards between tableau columns, and building the four foundations.
Why use it?
It helps choose legal moves and operate the app correctly, including card dragging, stock draws, and foundation moves.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/pockebot/openpocket/solitaire-play
Any agent
npx skills add pockebot/openpocket --skill solitaire-play
Clone the repo
git clone --depth 1 https://github.com/pockebot/openpocket

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for solitaire-play

README.md
[![agentmods](https://agentmods.dev/badge/skills/pockebot/openpocket/solitaire-play.svg)](https://agentmods.dev/skills/pockebot/openpocket/solitaire-play)
Your own site
<a href="https://agentmods.dev/skills/pockebot/openpocket/solitaire-play"><img src="https://agentmods.dev/badge/skills/pockebot/openpocket/solitaire-play.svg" alt="Measured on agentmods" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 892 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00058 $0.00892
Opus 5 $0.00029 $0.00446
Sonnet 5 $0.00012 $0.00178
Haiku 4.5 $0.00006 $0.00089

Measured 5d ago against content hash ccad80556d19, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

solitaire-play scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/solitaire-play/SKILL.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Solitaire Play

Use this skill to play standard Klondike Solitaire in mobile apps with deterministic and low-risk moves.

Preconditions

  • Confirm the game screen is visible (tableau columns, stock/waste, foundations).
  • Dismiss popups, ads, tutorials, and rate dialogs first.
  • Detect whether the app is Draw-1 or Draw-3 by tapping stock once and observing waste behavior.

Rules Primer (Klondike)

  • Goal: move all cards to 4 foundations (A -> K by suit).
  • Tableau build rule: descending rank with alternating colors (e.g., red 9 on black 10).
  • Only Kings (or King-led stacks) can move to empty tableau columns.
  • Face-down cards in tableau are revealed when the covering face-up card(s) are moved away.
  • Stock/Waste:
    • Draw-1: one card enters waste per stock tap.
    • Draw-3: three cards cycle per stock tap; only top waste card is playable.

Operation Mapping on Phone

Use available phone actions to emulate card interactions:

  • Single-card quick move:
    • Prefer tap on card if app supports auto-move to foundation/tableau.
  • Precise move (card/stack relocation):
    • Prefer drag(x1, y1, x2, y2, durationMs).
    • Recommended durationMs: 250-450.
  • Long press (if app requires hold before drag):
    • Use long_press_drag(x1, y1, x2, y2, holdMs, durationMs).
    • Recommended holdMs: 400-700; durationMs: 220-380.
  • Scrolling within menus/history:
    • Use swipe with long vertical distance.
  • Never rely on random gestures. Keep start/end points centered on visible card bodies.

Move Priority (Default Heuristic)

Apply this priority order each turn:

  1. Safe foundation moves:
    • Move Aces and Twos to foundation immediately.
    • Move higher cards to foundation when it does not block revealing facedown tableau cards.
  2. Reveal facedown cards:
    • Prefer tableau moves that uncover hidden cards over cosmetic rearrangement.
  3. Build/merge tableau stacks:
    • Create longer alternating descending stacks only when it enables future reveals or king placement.
  4. Use empty columns correctly:
    • Move a King (or King-led stack) to empty tableau columns when it helps reveal cards.
  5. Play waste efficiently:
    • Try waste top card to tableau first, then to foundation.
  6. Draw from stock:
    • Draw only when no productive tableau/foundation move exists.

Read the full file on GitHub · 91 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 91 lines · 58 tokens per session scan A ccad80556d19

Subscribe to this mod's changes

solitaire-play is a skill published in the GitHub repository pockebot/openpocket (841 stars, last pushed 1mo ago), licensed MIT. It adds 58 tokens to every session and 892 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

mobile-games

Mobile game development principles. Touch input, battery, performance, app stores.

vudovn/ag-kit · 18 tokens

sceneview

Build 3D and AR apps with the SceneView SDK in Jetpack Compose, SwiftUI (iOS/macOS/visionOS via SceneViewSwift), Web (Filament.js), Flutter and React Native. Use whenever the user asks for "3D in Compose", "AR with ARCore in Compose", a model viewer, or any cross-platform 3D/AR app where the dependency is…

sceneview/sceneview · 156 tokens

sceneview-ios

Build 3D and AR apps on Apple platforms (iOS, macOS, visionOS) with SceneViewSwift — the SwiftUI wrapper around RealityKit. Use whenever the user asks for "3D in SwiftUI", "AR with ARKit in SwiftUI", a model viewer for iOS, or any Apple-platform 3D/AR app where the dependency is the SceneViewSwift Swift Package from…

sceneview/sceneview · 148 tokens

build-mobile-threejs-games

Build, tune, or test a Three.js game for mobile web. Use for touch movement, action controls, target selection, touch inventory, safe areas, portrait/landscape layouts, responsive HUD, battery/performance budgets, and real mobile browser QA.

MengTo/Skills · 57 tokens

building-mobile-game

Build mobile games and game-like interactive experiences in React Native and Expo. Use when Codex is creating or refactoring arcade, puzzle, casual, action, physics-based, or animation-heavy gameplay, including Expo game setup with the with-reanimated template, sprite-sheet generation and extraction, frame-based…

Intelligent-Internet/ii-agent · 91 tokens

mobile-development

Use when targeting Android/iOS — export and signing, permissions, plugins, in-app purchases, ads, app lifecycle, device features, and mobile performance.

jame581/GodotPrompter · 33 tokens