Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计异常

playdotfunplaydotfun 搜索

Agent Skill

playdotfun 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

921

周安装

38

GitHub Stars

2

下载量

301
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:playdotfun(playdotfun 搜索)
来源仓库:https://github.com/playdotfun/skills
仓库路径:skills/playdotfun
安装命令:
npx skills add https://github.com/playdotfun/skills --skill playdotfun
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/playdotfun/skills --skill playdotfun

简介

playdotfun 用于查找、检索和筛选相关信息,适合在需要快速定位关键词对应内容时使用。

  • 适用于游戏行业研究、技术方案调研或竞品情报收集等场景。
  • 通过 npx skills add 命令从 playdotfun 官方仓库安装,需确认是否涉及商业数据抓取。
  • 建议遵守平台规则,避免高频请求或用于非授权用途。
  • playdotfun 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

When to use

Use this skill whenever users need to integrate a game with Play.fun or fetch data from Play.fun. You can also use this skill to help guide users through different workflows of Play.fun.

How to use

When a user asks you to integrate a game with Play.fun, you MUST follow the integration workflow below. Do not skip steps. Create a task list to track progress through each phase.

Integration Workflow

When integrating a game (new or existing) with Play.fun, follow these phases in order. Create tasks for each step and complete them sequentially.

Phase 1: Authentication

Before any authenticated operation, verify credentials are set up.

  1. Check auth status — Run node skills/scripts/playfun-auth.js status to see if credentials exist
  2. Set up credentials if missing — Follow the Auth Setup guide. Start the callback server and instruct the user to authenticate via their browser
  3. Verify credentials work — Use the test_connection MCP tool to confirm access. Save the returned user ID — this is the API key that goes in the <meta name="x-ogp-key"> tag later

Do NOT proceed to Phase 2 until credentials are verified.

Phase 2: Build the Game

  1. Build or modify the game — Create/update the game code. Do NOT add any Play.fun SDK integration yet — get the core game working first. Use safe area insets in your layout: backgrounds and canvas should fill the full viewport (100vw × 100vh), while all game UI (HUD, buttons, controls) must use var(--ogp-safe-top-inset, 0px) and var(--ogp-safe-bottom-inset, 0px) for margin/padding. For canvas games, read the insets via JS and offset UI drawing. See Safe Area Layout
  2. Test the game works standalone — Open in browser and verify gameplay functions correctly without SDK (safe area variables fall back to 0px)

Phase 3: Register the Game on Play.fun

  1. Choose a game name and description — Ask the user or generate a fun, descriptive name
  2. Prepare a game image — Find an existing image or generate a placeholder. ⚠️ CRITICAL: You MUST follow the Image Safety Rules exactly or you will crash. The short version: (1) get/create an image file on disk, (2) run ./skills/scripts/image-to-base64.sh <image> --data-uri --file /tmp/game_image_b64.txt, (3) Read the text file with the Read tool, (4) pass the string to register_game. NEVER output base64 to stdout. NEVER read binary image files with the Read tool.
  3. Deploy the game to get a public URL — If the game needs hosting, use the GitHub Pages Deploy guide. The game URL must be publicly accessible
  4. Register the game — Use the MCP register_game tool with: name, description, gameUrl, platform, base64Image, and anti-cheat limits (see Best Practices for limit recommendations based on game type). Save the returned id (game UUID) — this is the game ID that goes in sdk.init({gameId}) later
  5. Confirm registration — Use the MCP get_my_games tool to verify the game appears in the user's game list

Do NOT proceed to Phase 4 until you have a valid gameId from registration.

Phase 4: Integrate the Play.fun SDK

  1. Choose SDK approach — Ask the user or decide based on their needs:

- Browser SDK (Reference) — For prototypes, demos, game jams. No server-side validation - Server SDK (Reference) — For production games with token rewards and anti-cheat - Hybrid (Reference) — Both Browser widget + Server validation (recommended for production)

  1. Add the SDK with real credentials — Follow the chosen SDK reference. For Browser SDK integration:

- Add meta tag: <meta name="x-ogp-key" content="your-api-key" /> — value is the creator API key (user UUID from dashboard), NOT the gameId or gameKey - Add script: <script src="https://sdk.play.fun"></script> - Use OpenGameSDK class (NOT PlayFunSDK) - Use defensive patterns: typeof guard, sdkReady flag, sdk && sdkReady checks, try/catch, score > 0 check (see Browser SDK Snippets) - Init with game ID: sdk.init({gameId: 'your-game-id'}) — this is the id field from the register_game response, NOT the API key

  1. Wire up scoring — Integrate sdk.addPoints() during gameplay and sdk.endGame() at game end (for Browser SDK) or server-side savePoints() + sdk.refreshPointsAndMultiplier() (for Hybrid)
  2. Test SDK integration — Open the game, verify the Play.fun widget appears, play a round, and confirm points are submitted

Phase 5: Deploy and Verify

  1. Re-deploy with SDK integration — Push updated code to the hosted URL
  2. Update game registration if URL changed — Use MCP update_game tool if the game URL changed
  3. Final verification — Play the game at its public URL, verify points save, check the leaderboard with MCP get_game_leaderboard
  4. Playcoin launch (optional) — The launch_playcoin MCP tool requires Privy wallet auth and will fail with HMAC credentials. Direct the user to launch via their game page on the Play.fun dashboard instead

Quick Reference

ResourceDescription
API ReferenceComplete API endpoint reference
API AuthenticationHMAC-SHA256 authentication guide
SDK Best PracticesSDK selection and anti-cheat configuration
Server SDK ReferenceServer-side SDK reference
Browser SDK ReferenceBrowser SDK reference
Hybrid SDK ReferenceBrowser + Server combined reference
Features (Streaks & Multipliers)Built-in engagement features
MCP QuickstartMCP tools for game registration and management
GlossaryPlay.fun terms and concepts
Auth SetupCredential setup guide
GitHub Pages DeployFree game hosting via GitHub Pages
Game Upload RulesRequired fields and image guidelines
Server SDK SnippetsCopy-paste server code examples
Browser SDK SnippetsCopy-paste browser code examples

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.1%
按下载量换算103

Claude

29.63%
按下载量换算89

Cursor

19.83%
按下载量换算60

Gemini CLI

8.9%
按下载量换算27

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills