微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

Quotly Style Sticker

Quotly Style Sticker · v1.4.0
安全 unknown 级 作者 sakullla 公开目录收录
1k 下载 0 安装 4.5k 收藏 1 浏览

简介

Quotly Style Sticker

原始描述

Generate QuotLy-style stickers from forwarded messages and return one MEDIA path for auto-send. Use when users ask to create quote stickers from selected for...

通过你的 Agent 添加

安装目录:quotly-style-sticker/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/quotly-style-sticker/
Codex CLI~/.codex/skills/quotly-style-sticker/
DeepSeek Harness~/.agents/skills/quotly-style-sticker/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: quotly-style-sticker description: Generate QuotLy-style stickers from forwarded messages and return one MEDIA path for auto-send. Use when users ask to create quote stickers from selected forwarded messages or quoted messages in groups.

QuotLy Style Sticker

How To Call (Agent)

  1. Build payload with selected_messages only.
  2. Run:
    • python3 scripts/openclaw_quote_autoreply.py --input <json-file-or->
  3. Use tool-emitted MEDIA: for delivery.
  4. Final assistant text must be empty.

Input

  • Required: selected_messages (array, must not be empty)
  • Each item structure:
    {
      "message": {
        "message_id": 2002,
        "text": "Forwarded message content",
        "forward_from": {
          "type": "hidden_user",  // optional, indicates hidden user
          "id": 123456789,        // optional, user id
          "first_name": "张",     // required, first name or nickname
          "last_name": "三",      // optional, last name
          "avatar_url": "",       // optional, avatar url or base64 data (from user profile or platform API)
          "status_url": ""        // optional, status url or base64 data (from user profile or platform API)
        }
      },
      // Optional: override message fields
      "overwrite_message": {
        "text": "哈哈哈哈哈",
        "forward_from": {
          "avatar_url": "",       // from user profile or platform API
          "status_url": ""        // from user profile or platform API
        },
        "entities": [  // optional, text formatting entities
          {"type": "bold", "offset": 0, "length": 4},
          {"type": "italic", "offset": 5, "length": 4}
        ]
      }
    }
    
  • Optional canvas: width, height, scale, max_width, border_radius, picture_radius, background_color

Entities (Text Formatting)

The skill supports Telegram-style message entities for text formatting:

[
  {"type": "bold", "offset": 0, "length": 5},
  {"type": "italic", "offset": 6, "length": 6},
  {"type": "url", "offset": 13, "length": 15, "url": "https://example.com"}
]

Supported types: mention, hashtag, cashtag, bot_command, url, email, phone_number, bold, italic, underline, strikethrough, spoiler, code, pre, text_link, text_mention, custom_emoji

Entity fields:

  • type (required) - entity type
  • offset (required) - UTF-8 offset in text
  • length (required) - UTF-8 length
  • url (optional) - for text_link type
  • user (optional) - for text_mention type
  • language (optional) - for pre type
  • custom_emoji_id (optional) - for custom_emoji type

Field Mapping

  • Quote text:
    • overwrite_message.text > message.text
  • Name/avatar:
    • overwrite_message.forward_from > message.forward_from
  • Text formatting (entities):
    • overwrite_message.entities > message.entities > message.caption_entities

Output

  • stdout includes:
    • Quote sticker generated.
    • MEDIA:<absolute-path-to-webp>

Environment Variables

  • QUOTLY_API_URL - QuotLy API endpoint (default: https://bot.lyo.su/quote/generate).
  • QUOTLY_API_ALLOW_HOSTS - Comma-separated list of allowed API hosts (e.g., bot.lyo.su). When set, the skill will only contact hosts in this list.
  • QUOTLY_AUDIT_LOG - Set to 1, true, or yes to enable audit logging to stderr.

Security Notes

  • This skill sends message content to an external API to generate stickers.
  • SSRF Protection: Multiple layers of protection are implemented:
    • Hostname validation blocks internal/private IPs, localhost, and metadata endpoints
    • DNS rebinding protection: resolves hostnames and validates resolved IPs
    • Path traversal prevention: blocks .. and suspicious path patterns
    • URL credentials stripping: removes username/password from URLs
  • Request Limits: Maximum payload size 1MB, maximum response size 10MB
  • Audit Logging: Enable with QUOTLY_AUDIT_LOG=1 to log API requests and responses for security monitoring
  • In sensitive environments, always set QUOTLY_API_ALLOW_HOSTS to restrict which hosts the skill can contact.
  • Avatar and status URLs from user input are passed to the rendering service; ensure input comes from trusted sources.

Reply Rule

  • Do not output any final text.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill