Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问许可证需确认审计通过

messaging-apimessaging API 文档

Agent Skill

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

总安装

1,098

周安装

44

GitHub Stars

公开资料未说明

下载量

356
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/abgne/line-dev --skill messaging-api

简介

用于辅助 API 设计、接口文档和请求响应结构梳理,适合生成 OpenAPI 草稿。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 中的前后端联调和集成说明任务。
  • 使用时需确认真实业务语义、鉴权方式和错误处理规则,避免凭空补字段。
  • 建议从现有代码、schema 或接口样例中提取事实,确保文档准确性。
  • 涉及分页和错误码时应结合实际实现和业务需求进行核对。

SKILL.md

LINE Messaging API

Do not answer LINE API questions from memory — LINE updates APIs frequently and training data is unreliable. Always consult the references below.

Reference for building, reviewing, and debugging LINE Bots and LINE Messaging API integrations.

Workflow

Build

  1. Read references/api-common.md (rate limits, forward compatibility, error handling)
  2. Load the relevant reference for the feature being implemented
  3. For architecture or design choices, consult references/experts.md for directional guidance
  4. Write code following specs and constraints from references

Review / Debug

  1. Read references/api-common.md (rate limits, error codes)
  2. Load relevant references for the code being reviewed
  3. Cross-check code against specs (size limits, token expiry, counting rules, required fields)
  4. For design pattern concerns, consult references/experts.md
  5. Report violations with reference to specific constraints

Environment Variables

LINE_CHANNEL_ACCESS_TOKEN=Bot access token
LINE_CHANNEL_SECRET=Channel secret (webhook signature verification)

Common Specifications

Read references/api-common.md before writing any LINE bot code. Contains rules that affect all API interactions: forward compatibility (don't use strict schemas — LINE adds fields without notice), rate limits, error handling, retry policy, and logging recommendations.

Webhook

  • Verification: x-line-signature header (HMAC-SHA256, base64, key = Channel Secret)
  • Body: {"destination": "U...", "events": [...]}
  • Bot server must return 200

Signature Verification (pseudocode)

channel_secret = ENV['LINE_CHANNEL_SECRET']
signature = request.headers['x-line-signature']
body = request.body   # raw bytes, do NOT parse/reformat before verification

digest = HMAC_SHA256(key = channel_secret, message = body)
expected = Base64.encode(digest)

if signature != expected:
    return 403  # reject — not from LINE

events = JSON.parse(body)['events']
for event in events:
    handle(event)
return 200
  • Never deserialize or re-format the body before verification
  • Use UTF-8 encoding exclusively
  • Official SDKs handle this automatically — use them when possible

Full event types, properties, and webhook settings → references/webhook-events.md

Message Sending

All require Authorization: Bearer {channel access token}:

ModeEndpointPurpose
ReplyPOST /v2/bot/message/replyReply to user (requires one-time replyToken)
PushPOST /v2/bot/message/pushSend to a specific user/group at any time
MulticastPOST /v2/bot/message/multicastSend to multiple users (max 500)
BroadcastPOST /v2/bot/message/broadcastSend to all friends
  • Max 5 messages per request
  • Domain: api.line.me (general) / api-data.line.me (content upload)

Message objects → references/message-objects.md Full sending API (Narrowcast, statistics, validation, etc.) → references/message-sending.md

Flex Message

Three-layer structure:

Container (Bubble / Carousel)
  └── Block (Header / Hero / Body / Footer)
       └── Component (Box / Button / Image / Video / Icon / Text / Span / Separator)

Minimal Flex Message:

{
  "type": "flex", "altText": "Notification",
  "contents": {
    "type": "bubble",
    "body": {
      "type": "box", "layout": "vertical",
      "contents": [{"type": "text", "text": "Hello Flex!", "weight": "bold"}]
    }
  }
}

Full component specs, layout, video → references/flex-message.md Official Flex Message Simulator examples → assets/examples/

Reference Index

FileTopic
references/api-common.mdRead first. Rate limits, error handling, forward compatibility
references/webhook-events.mdWebhook event types and JSON structure
references/message-objects.mdMessage objects, Quick Reply, sender customization
references/action-objects.mdAction objects (postback, URI, datetimepicker, etc.)
references/message-sending.mdReply/Push/Multicast/Narrowcast/Broadcast, statistics
references/flex-message.mdFlex Message components, layout, styles
references/rich-menu.mdRich Menu CRUD, tab switching, display priority
references/user.mdUser profile, follower IDs, account link
references/group-chat.mdGroup/Room messaging and member APIs
references/audience.mdAudience management (create/add/get/delete)
references/insights.mdDelivery, follower, and interaction insights
references/channel-token.mdChannel access token lifecycle
references/coupon.mdCoupon CRUD, reward types, sending
references/url-schemes.mdLINE URL schemes for deep linking
references/experts.mdExpert domain routing and 17 specialist profiles
assets/examples/Flex Message JSON examples (11 showcases)

SDK

Official SDKs: Python | Node.js | Go | Java | PHP | Ruby

Other languages: use LINE OpenAPI specs with OpenAPI Generator.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

38.71%
按下载量换算138

Claude

29.78%
按下载量换算106

Cursor

19.35%
按下载量换算69

Gemini CLI

9.78%
按下载量换算35

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills