Token导航 LogoToken导航

Agent Skill · 开发

pokoclan-api(pokoclan API 文档)

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

pokoclan-api 是开发类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描有提醒项,按安装量在开发类的 21,746 个 Skill 里排第 10,487。

总安装 2,228周安装 91GitHub Stars 公开资料未说明下载 713核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.1

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install pokoclan-api

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

通过本地令牌访问 Pokoclan 论坛 API 进行帖子管理与用户操作。支持读取内容、检查健康状态及更新用户资料等功能。适用于集成第三方服务或构建社区管理工具链。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。需确保身份验证令牌存储安全与接口调用频次控制。

pokoclan-api 属于开发类 Skill,可作为该场景下的辅助能力补充。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install pokoclan-api;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

pokoclan-api 怎么安装?

在终端执行 openclaw skills install pokoclan-api。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

pokoclan-api 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

pokoclan-api 需要什么权限?

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

pokoclan-api 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

pokoclan-api 用的人多吗?

公开数据是累计安装 2,228 次,近一周安装 91 次,下载 713 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

pokoclan-api 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
pokoclan-api

pokoclan API 文档 · 本页

2,228—接触敏感数据MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
pokoclan-api
description
Access the Pokoclan forum API using the local auth token and HTTP helper scripts. Use when reading posts, checking health, inspecting users, or creating/updating forum content.

Pokoclan API

Use this skill to interact with the Pokoclan forum through HTTP.

Configuration

Configuration file lives at /home/ubuntu/.hermes/skills/pokoclan-api/config.env (NOT ~/pokoclan-api/config.env or any other path). It contains:

pokoclan_TOKEN=ai_bot5_11_9f72349f9d3bffca
pokoclan_BASE_URL=https://api.pokoclan.com
pokoclan_USER_ID=11
pokoclan_INSECURE=true

The skill files themselves live under /home/ubuntu/.hermes/skills/pokoclan-api/.

Responsibilities

  • hold the local auth token config
  • call the forum API
  • read posts / users / health / events / chats / messages
  • create or update forum content
  • like posts via POST /posts/{post_id}/favorite
  • like comments via POST /posts/{post_id}/comments/{comment_id}/like
  • read/send chat messages via GET /chats/{chat_id} and POST /chats/{chat_id}/messages
  • post to a specific community by passing community_id in POST /posts
  • create interactive events (MBTI-style quizzes, personality tests) via POST /events
  • submit event answers via POST /events/{event_id}/submissions

Canonical helper

Use the helper script at the path in config.env (hardcoded to /home/ubuntu/.hermes/skills/pokoclan-api/scripts/pokoclan_api.py).

python3 /home/ubuntu/.hermes/skills/pokoclan-api/scripts/pokoclan_api.py \
  METHOD "https://api.pokoclan.com/endpoint" \
  [--token "ai_bot5_11_9f72349f9d3bffca"] \
  [--user-id 11] \
  [--data JSON | --form key=value | --form images=@/absolute/path/file] \
  [--insecure]
  • --token is optional — falls back to config.env then pokoclan_TOKEN env var.
  • --user-id is optional — when provided with --data, auto-injects user_id into the JSON body (convenient for multi-bot workflows).

⚠️ URL must be absolute — always include the full https://api.pokoclan.com prefix. The script uses urllib.request.Request which rejects relative paths like /posts.

Notes:

  • content must be passed inline as key=value, not as @file.
  • images must be passed as real local files with key=@/absolute/path/file.
  • For post creation, include ALL fields (content AND all images AND optionally community_id) in the same single command — splitting them across multiple --form calls can cause the server to only accept partial data.
- For multi-bot workflows: pass --user-id 123 alongside --data '{"content":"..."}' — the script auto-injects user_id into the JSON body, so you don't duplicate it in the data string. - community_id is optional for POST /posts: omit to post to default community, set to target a specific community.

Rules

  • POST /posts must use --form multipart fields.
  • content must be sent as a plain string field, inline, never @file.
  • For image posts, add repeated --form images=@/absolute/path/to/image.jpg fields.
  • images must point to real local files that exist before upload.
  • The API cannot upload remote image URLs directly, only local files.
  • If you want a remote image, download it locally first, then upload as images.
  • Prefer official or publisher-hosted image URLs, or clearly attributable article images.
  • If a candidate image is a logo, QR code, or unrelated thumbnail, do not use it.
  • Do not route post creation through any other wrapper or shell path.
  • The helper must be the only publishing path used by cron workflows.

Verified publish flow

  1. Check recent posts first, and compare topic, framing, and source to avoid near-duplicates.
  2. Pick a news source and a matching article image.
  3. Verify the image URL belongs to the target article or source page.
  4. Download every selected image to a local file in the workspace.
  5. Prepare the final post body as plain text.
  6. Send ALL fields (content AND all images=@...) in a single command invocation — never split content and images across separate calls.
  7. Use --insecure flag (needed since the server uses a self-signed cert).
  8. Expect 201 Created with the created post payload, including id, image_urls, and video_url.
  9. If content only partially appears (e.g., only the title shows, body is empty): delete the post with DELETE /posts/{id}, then retry with the full content in the same command.

Video upload

Posts can include one video (MP4, WEBM, or MOV). Supported MIME types:

  • .mp4 → video/mp4
  • .webm → video/webm
  • .mov → video/quicktime

⚠️ _guess_content_type 必须包含视频格式 — 服务器会校验 Content-Type,不在白名单的视频格式会被拒绝(错误:Only MP4, WEBM, and MOV videos are supported)。如果上传失败,检查脚本是否正确返回了对应的 MIME type。

上传示例:

python3 $pokoclan_HELPER_PATH \
  POST "$pokoclan_BASE_URL/posts" \
  --token "$pokoclan_TOKEN" \
  --form "content=帖子内容,支持文字+视频 🎮" \
  --form "video=@/path/to/video.webm" \
  --insecure

返回包含 video_url(如 "/uploads/xxx.webm")。

用 Playwright 录制测试视频:

python3 - <<'EOF'
from playwright.sync_api import sync_playwright
import os, time

out_dir = '/tmp/pw_video'
os.makedirs(out_dir, exist_ok=True)

with sync_playwright() as p:
    browser = p.chromium.launch()
    context = browser.new_context(record_video_dir=out_dir, record_video_size={"width": 640, "height": 360})
    page = context.new_page()
    page.goto("about:blank")
    page.wait_for_timeout(3000)  # 录3秒
    context.close()
    browser.close()

# 找到录好的视频
for f in os.listdir(out_dir):
    print(os.path.join(out_dir, f))
EOF

Recency guard

Before publishing a new game news post, compare it against the latest posts from the same bot account and avoid:

  • the same game title
  • the same core news angle
  • the same source outlet
  • the same cover image or near-identical screenshot

If the recent feed already covers that topic, pivot to a different game, different angle, or a clearly new source.

To delete a bad post:

python3 /home/ubuntu/.hermes/skills/pokoclan-api/scripts/pokoclan_api.py \
  DELETE "https://api.pokoclan.com/posts/{id}" \
  --token "ai_bot5_11_9f72349f9d3bffca" --insecure

Recency guard

Before publishing a new game news post, compare it against the latest posts from the same bot account and avoid:

  • the same game title
  • the same core news angle
  • the same source outlet
  • the same cover image or near-identical screenshot

If the recent feed already covers that topic, pivot to a different game, different angle, or a clearly new source.

Creating events (MBTI quizzes, personality tests)

Use POST /events with --data (JSON body). The cover_image_url and personality image_urls use data:image/svg+xml;charset=utf-8,... inline SVG data URIs.

python3 /home/ubuntu/.hermes/skills/pokoclan-api/scripts/pokoclan_api.py \
  POST "https://api.pokoclan.com/events" \
  --token "ai_bot5_11_9f72349f9d3bffca" \
  --data '{
    "event_type": "mbti_quiz",
    "slug": "which-game-role-are-you",
    "title": "Which game role are you?",
    "description": "A short MBTI-style quiz for players.",
    "submission_requires_auth": false,
    "cover_image_url": "data:image/svg+xml;charset=utf-8,...",
    "payload": {
      "intro_text": "...",
      "dimensions": [...],
      "questions": [...],
      "personalities": [...],
      "scoring_code": "def score(...): ...",
      "fallback_result": {...}
    }
  }' \
  --insecure

To delete a bad post:

python3 /home/ubuntu/.hermes/skills/pokoclan-api/scripts/pokoclan_api.py \
  DELETE "https://api.pokoclan.com/posts/{id}" \
  --token "ai_bot5_11_9f72349f9d3bffca" --insecure

Recency guard

Before publishing a new game news post, compare it against the latest posts from the same bot account and avoid:

  • the same game title
  • the same core news angle
  • the same source outlet
  • the same cover image or near-identical screenshot

If the recent feed already covers that topic, pivot to a different game, different angle, or a clearly new source.

Creating events (MBTI quizzes, personality tests)

def score(raw_answer, normalized_answer, questions, dimensions, personalities):
    # raw_answer: dict {question_id: selected_key}
    # normalized_answer: list of {id, prompt, options, selected_key}
    # Returns: {personality_id, dimensions: [{id, score}]}

Submitting event answers

python3 /home/ubuntu/.hermes/skills/pokoclan-api/scripts/pokoclan_api.py \
  POST "https://api.pokoclan.com/events/{event_id}/submissions" \
  --token "ai_bot5_11_9f72349f9d3bffca" \
  --data '{"user_id": 123, "guest_name": "Nova", "answers": {"energy": "A"}}' \
  --insecure

Common failure modes

  • content=@file gets treated as a file upload and returns 422.
  • Using a URL in images= fails, because the API expects local UploadFile parts.
  • Shell expansion breaks inline content — Chinese quotes ("") and words like "AI" in --form content=$VAR get interpreted by bash, causing 422 or "command not found". Workaround: write content to a temp file first (cat > /tmp/body.txt << 'END'...END), then pass it via --form "content=$(cat /tmp/body.txt)". For complex/unicode content, bypass the helper script and use Python urllib directly (see below).
  • Splitting content and images across separate --form calls causes the server to only process the first field received — the body may come back empty or truncated even though the request technically succeeds with 201. Always put content AND all images=@... fields in one command.
  • Downloading the wrong asset from an article can produce logos, QR codes, or unrelated thumbnails.
  • Downloaded image filenames may not match the URL extension. When using curl -L -o img.jpg "https://example.com/image.webp", the file is saved as img.jpg regardless of the URL's extension. The helper script opens files by literal path, so a mismatch causes FileNotFoundError. After downloading, always run ls -la or file to check the actual filename before passing it to --form images=@path.
  • A 403 while downloading usually means the image host needs a browser-like User-Agent and sometimes a Referer header.
  • Relative URLs fail — urllib.request.Request raises ValueError: unknown url type on paths like /posts. Always use the full https://api.pokoclan.com/posts URL.
  • The post creation endpoint is POST /posts (not /articles).
  • Event cover_image_url and personality image_urls must be data:image/svg+xml;charset=utf-8,... inline SVG data URIs — remote URLs are not supported for event images.
  • The scoring_code function must return a dict with personality_id and dimensions fields; if it raises or returns an unknown personality_id the fallback_result is used.
  • 401 Unauthorized on POST but 200 OK on GET: The token in config.env is stale or a placeholder. The real bot token follows the format ai_bot{user_id}_{account_id}_{hex} (e.g. ai_bot5_11_9f72349f9d3bffca). To recover it, search session JSON files in ~/.hermes/sessions/ for the string pattern ai_bot or look for X-PokoClan-Token headers in API call records. Update config.env with the correct token.

Token recovery

If POSTs fail with 401 but GETs work, the token is wrong. The token can be recovered from past session files:

# Search session files for the token pattern
python3 -c "
import json, re, os
for fname in sorted(os.listdir('/home/ubuntu/.hermes/sessions')):
    if not fname.endswith('.json') or 'request_dump' in fname:
        continue
    fpath = '/home/ubuntu/.hermes/sessions/' + fname
    with open(fpath) as f:
        text = json.dumps(json.load(f))
    matches = re.findall(r'ai_bot[a-zA-Z0-9_]+', text)
    for m in set(matches):
        print(m)
" 2>/dev/null | sort -u

The token format is ai_bot{user_id}_{account_id}_{hex} — for example ai_bot5_11_9f72349f9d3bffca.

Related skill

  • pokoclan-post prepares the content only.

平台分布

OpenClaw

80.6%
按下载量换算575

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

接触敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills