Token导航 LogoToken导航TokenDH.com
研究检索执行命令clawhub未标认证来源可访问clear审计通过

demo-slap演示掌掴

Agent Skill

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

总安装

13,272

周安装

553

GitHub Stars

1

下载量

4,424
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:demo-slap(演示掌掴)
来源仓库:https://github.com/damirikys/demo-slap
安装命令:
openclaw skills install demo-slap
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

ClawHubOpenClaw
openclaw skills install demo-slap

简介

demo-slap 使用 Demo-Slap API 从 CS2 演示文件中提取精彩片段和电影式集锦。

  • 支持 Leetify 集成和比赛历史回退选择机制,提升内容质量。
  • 通过 clawhub 安装并使用 openclaw skills install demo-slap 命令部署。
  • 需上传 .dem 文件并提供可选的比赛 ID 以增强识别精度。
  • 建议验证输出片段是否符合赛事规则和版权要求。

SKILL.md

name
demo-slap
description
Generate CS2 highlights and fragmovies from demos using the Demo-Slap API, with optional Leetify integration and Demo-Slap match history fallback to select recent matches. Use when a user asks to record a highlight, render a clip, make a fragmovie, clip a round, or turn a CS2 demo into MP4 video.
metadata

Demo-Slap Highlight Skill

Generate MP4 highlights and fragmovies from CS2 demos.

This skill is designed for OpenClaw environments where background jobs, local helper scripts, and chat-aware delivery are available. It uses Python 3 scripts and the requests package for HTTP API access.

Expected runtime inputs:

  • Required: DEMOSLAP_API_KEY
  • Optional: LEETIFY_API_KEY
  • Optional deployment helper: DEMO_SLAP_WATCHDOG_JOB_ID

Scripts

Run bundled scripts relative to the skill root, usually from scripts/.

Demo-Slap

ScriptPurpose
demo_slap_matches.pyList recent matches from Demo-Slap /public-api/matches
demo_slap_resolve.pyTry to resolve replay/demo URL from Demo-Slap match history by index; fail clearly if the API exposes only jobId
demo_slap_match_pick.pyPick a Demo-Slap match by index and return structured match info including jobId
demo_slap_analyze.pySubmit a demo for analysis, poll until done, output highlights JSON
demo_slap_render.pyRender one or more highlights, poll until done, output clip URL
demo_slap_common.pyShared utilities (config, API calls, state)

Leetify

ScriptPurpose
leetify/leetify_matches.pyList recent matches
leetify/leetify_resolve.pyResolve replay URL by username + match index
leetify/leetify_save_id.pySave username -> Steam64 ID mapping
leetify/leetify_common.pyShared Leetify utilities

Match source selection

  • Prefer Leetify for recent match discovery when LEETIFY_API_KEY is available.
  • If LEETIFY_API_KEY is not configured but DEMOSLAP_API_KEY is available, use Demo-Slap match history from /public-api/matches.
  • Swagger: https://api-doc.demo-slap.net/
  • Treat Demo-Slap match history as the fallback discovery path for listing matches and selecting an existing analyzed match or replay context before analyze/render.

Runtime files

Use these files as optional local runtime state during execution:

  • data/state.json
  • data/highlights.json
  • data/history.log
  • data/steam_ids.json
  • data/config.json

These files are runtime helpers for local operation and are not required to understand or inspect the skill package itself.

state.json tracks the current operation:

{
  "status": "idle|analyzing|rendering|done|error",
  "job_id": "...",
  "render_job_id": "...",
  "chat_id": "telegram:182314856",
  "clip_urls": {"highlight_id": "https://..."},
  "progress": "polling 3/30",
  "last_completed_op": "analyze|render",
  "notification": {
    "sent": false,
    "sent_at": null,
    "last_attempt_at": null,
    "error": null
  },
  "updated_at": "ISO timestamp"
}

Workflow

1. Find the match

Preferred path when LEETIFY_API_KEY is available:

python3 scripts/leetify/leetify_matches.py <USERNAME> [--limit 10]

Fallback path when LEETIFY_API_KEY is missing but DEMOSLAP_API_KEY is available:

python3 scripts/demo_slap_matches.py [<USERNAME>] [--limit 10]
  • uses Demo-Slap /public-api/matches
  • use the Demo-Slap swagger docs at https://api-doc.demo-slap.net/ if schema details are needed
  • if <USERNAME> is provided and mapped, filter matches to that player's Steam ID when possible
  • after the user picks a match, run:
python3 scripts/demo_slap_match_pick.py [<USERNAME>] --match-index <N>
  • treat the returned jobId as the primary handle for downstream Demo-Slap operations

2. Resolve replay URL

Preferred path when using Leetify:

python3 scripts/leetify/leetify_resolve.py <USERNAME> --match-index <N>

When using Demo-Slap fallback:

python3 scripts/demo_slap_match_pick.py [<USERNAME>] --match-index <N>
  • use the returned jobId as the selected match identifier
  • if demoUrl is present, you may still use analyze-by-URL
  • if demoUrl is absent, skip URL resolution and continue by API endpoints that accept the existing analyze jobId
  • use GET /public-api/analyze/{jobId}/status and GET /public-api/analyze/{jobId}/data to inspect existing highlights
  • if the user wants clips and highlights already exist, render directly from that jobId

3. Analyze in background

python3 -u scripts/demo_slap_analyze.py --url '<REPLAY_URL>' --username <USERNAME> --chat-id <CHAT_ID>

Run with exec(background: true) and keep the returned process/session id.

Optional deployment-specific watchdog pattern for OpenClaw environments:

  • Use a watchdog only when background analyze/render work benefits from periodic delivery checks.
  • Reuse an existing deployment watchdog when available instead of assuming a new persistent scheduler entry is always needed.
  • If a deployment chooses to create or enable a watchdog through the built-in cron tool, keep it scoped to the active run and disable it again after terminal delivery.
  • A 2 minute interval is a reasonable default.
  • Use scripts/demo_slap_watchdog.sh status|tail|job only as a local helper for inspecting runtime state, logs, or deployment-specific job references.
  • Treat data/state.json and data/highlights.json as the source of truth during runtime.

Agent workflow:

  1. Choose the match source:

- Leetify if LEETIFY_API_KEY exists - Demo-Slap /public-api/matches if LEETIFY_API_KEY is missing and DEMOSLAP_API_KEY exists

  1. If using Leetify, resolve the replay URL and run analyze
  2. If using Demo-Slap fallback, pick a match and inspect the returned jobId
  3. If the selected Demo-Slap match already has analyze data, continue by jobId instead of forcing analyze-by-URL
  4. Use or enable a deployment watchdog only when long-running analyze/render work benefits from it
  5. Launch analyze or render and save the returned process/session id when applicable
  6. Let the watchdog deliver the result when a deployment uses one
  7. Disable the watchdog again after terminal delivery

4. Render in background

# Single highlight
python3 -u scripts/demo_slap_render.py <JOB_ID> <HIGHLIGHT_ID> --chat-id <CHAT_ID>

# Fragmovie
python3 -u scripts/demo_slap_render.py <JOB_ID> <ID1> <ID2> ... --fragmovie --chat-id <CHAT_ID>

Run with exec(background: true) and keep the returned process/session id.

Optional deployment-specific watchdog pattern for OpenClaw environments:

  • Use a watchdog only when background analyze/render work benefits from periodic delivery checks.
  • Reuse an existing deployment watchdog when available instead of assuming a new persistent scheduler entry is always needed.
  • If a deployment chooses to create or enable a watchdog through the built-in cron tool, keep it scoped to the active run and disable it again after terminal delivery.
  • A 2 minute interval is a reasonable default.
  • Use scripts/demo_slap_watchdog.sh status|tail|job only as a local helper for inspecting runtime state, logs, or deployment-specific job references.
  • Treat data/state.json and data/highlights.json as the source of truth during runtime.

Agent workflow:

  1. Enable or reuse a deployment watchdog only when needed for the active run
  2. Launch render and save the returned process/session id
  3. Poll process output for the Estimated finish: line and tell the user the ETA if present
  4. Let the watchdog deliver the result when one is in use
  5. Disable the watchdog again after terminal delivery

Critical: set <CHAT_ID> from inbound metadata of the originating request. Treat hardcoded chat identifiers as local examples only, not as a reusable default.

5. Check status

Read data/state.json.

Setup

Map username to Steam ID

python3 scripts/leetify/leetify_save_id.py <USERNAME> <STEAM_64_ID>

Configure API keys

Prefer environment variables:

  • DEMOSLAP_API_KEY - required
  • LEETIFY_API_KEY - optional, only for Leetify-backed match discovery
  • DEMO_SLAP_WATCHDOG_JOB_ID - optional deployment-specific helper for watchdog inspection scripts

Source selection rules:

  • If LEETIFY_API_KEY exists, use Leetify for match discovery.
  • If LEETIFY_API_KEY is absent but DEMOSLAP_API_KEY exists, use Demo-Slap /public-api/matches for match discovery.
  • DEMOSLAP_API_KEY is always required for analyze/render.

Optional local fallback for controlled self-hosted setups: put them in data/config.json.

Support

For access and support, please join our Discord community: https://discord.gg/8nfh26W9wQ

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

OpenClaw

93.99%
按下载量换算4,158

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install demo-slap 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills