pc-style/openclaw-skills/blackjack
Claude Code and agent skill by pc-style/openclaw-skills
- community
Checking that the SKILL.md file is still in the repository.
Play blackjack with the agent as dealer. The agent manages game state, deals cards, and sends card images.
Install
npx vskill@latest install pc-style/openclaw-skills/blackjackSKILL.md
The same SKILL.md was published earlier as neversight/learn-skills.dev/blackjack.
Blackjack Skill
This skill enables the agent to play blackjack with users. The agent acts as the dealer, managing game state, dealing cards, and displaying card images.
Game Rules
- Standard blackjack rules apply
- Dealer hits on 16 or below, stands on 17 or above
- Blackjack (21 with 2 cards) pays 3:2
- Regular win pays 1:1
- Ace counts as 1 or 11 (whichever is better)
- Face cards (J, Q, K) count as 10
How to Play
When a user wants to play blackjack:
- Initialize a new game and deal 2 cards to player and 2 to dealer (one dealer card face down)
- Show the cards using the images in the
assets/cards/directory - Present "Hit" and "Stand" buttons (on Telegram) or ask player to type their choice
- Continue until player stands or busts
- Reveal dealer's hidden card and play dealer's hand
- Determine winner and display results
Telegram Integration
When playing on Telegram, use inline buttons for better UX:
For new game prompts:
Sending Card Images
Use the MEDIA: prefix to send card images from the assets directory:
Card Image Files
All card images are located in assets/cards/ with the naming pattern:
{rank}_{suit}.png(e.g.,ace_spades.png,10_hearts.png,jack_diamonds.png)card_back.pngfor face-down cards
Available ranks: ace, 2, 3, 4, 5, 6, 7, 8, 9, 10, jack, queen, king Available suits: hearts, diamonds, clubs, spades
Game State Management
Track the following for each game:
- Player's cards and total
- Dealer's cards and total
- Deck state (remaining cards)
- Game status (in_progress, player_bust, dealer_bust, player_wins, dealer_wins, push)
Example Interaction
User: "Let's play blackjack!"
Agent: "🃏 Starting a new game of Blackjack!
Your cards: MEDIA:assets/cards/7_hearts.png MEDIA:assets/cards/9_diamonds.png Your total: 16
Dealer's cards: MEDIA:assets/cards/king_clubs.png MEDIA:assets/cards/card_back.png Dealer showing: King (10)
Would you like to hit or stand?"
On Telegram, the agent should also send inline buttons for Hit/Stand actions.
Button Callback Handling
When user clicks a button, the callback data will be:
- "hit" - deal another card to player
- "stand" - end player's turn, reveal dealer cards
- "newgame" - start a fresh game
Always acknowledge the button press and update game state accordingly.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingblackjack/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/pc-style/openclaw-skills/blackjack)