kcring-emotion

当用户想从远程 MCP 服务(Kcring)获取并分析情绪相关数据时使用。该技能通过可流式 HTTP 连接到 MCP 服务器,使用 JWT Bearer 令牌进行身份验证(首次使用后本地存储),并利用 MCP 工具 get_current_emotion_stress 获取用户当前的情绪和压力状态。适用于诸如“获取我的情绪数据”“检查我的压力水平”“我的心情如何”“获取情绪数据”“查看心情状态”“情绪分析”“压力状况”或任何提及情绪/心情/压力数据检索的请求。

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "kcring-emotion":https://skillpi.com/zh/skills/deepskill-5b9e470b8498eabb359d0180bc662f4eaf64da04f3c806775428c2755f9c91c5。安装前核对上游来源和版本:https://skillhub.cn/skills/org-75we1tjd/kcring-emotion-and-stress-information。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

skillhub.cn

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

当用户想从远程 MCP 服务(Kcring)获取并分析情绪相关数据时使用。该技能通过可流式 HTTP 连接到 MCP 服务器,使用 JWT Bearer 令牌进行身份验证(首次使用后本地存储),并利用 MCP 工具 get_current_emotion_stress 获取用户当前的情绪和压力状态。适用于诸如“获取我的情绪数据”“检查我的压力水平”“我的心情如何”“获取情绪数据”“查看心情状态”“情绪分析”“压力状况”或任何提及情绪/心情/压力数据检索的请求。

0 下载

介绍来源: third_party · org-75we1tjd · 1.0.1 参考来源

SkillPi 解读

能完成的任务
This skill should be used when the user wants to fetch and analyze emotion-related data from a remote MCP service (Kcring). It connects to an MCP server via Streamable HTTP transport, authenticates with a JWT Bearer token (stored locally after first use), and retrieves the user's current emotion and stress status using the MCP tool `get_current_emotion_stress`. Triggers include requests like 'get my emotion data', 'check my stress level', 'how is my mood', '获取情绪数据', '查看心情状态', '情绪分析', '压力状况', or any mention of emotion/mood/stress data retrieval.
适合谁
User asks to check, view, or analyze their current emotion or mood status User asks about their stress level User mentions "情绪数据", "心情状态", "压力状况", "emotion data", "mood status", "stress level", "情绪分析" User wants to know how they're feeling right now (emotion-wise)
输入和输出
来源文档未说明。
软件、账号及付费要求
来源文档未说明。
限制与区别
来源文档未说明。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: kcring-emotion
description: "This skill should be used when the user wants to fetch and analyze emotion-related data from a remote MCP service (Kcring). It connects to an MCP server via Streamable HTTP transport, authenticates with a JWT Bearer token (stored locally after first use), and retrieves the user's current emotion and stress status using the MCP tool `get_current_emotion_stress`. Triggers include requests like 'get my emotion data', 'check my stress level', 'how is my mood', '获取情绪数据', '查看心情状态', '情绪分析', '压力状况', or any mention of emotion/mood/stress data retrieval."
agent_created: true

Kcring Emotion Data Skill

Purpose

Retrieve the user's current emotion and stress status from a remote MCP server (Kcring) using the MCP Streamable HTTP transport protocol. The JWT token is stored locally after the user provides it once, so subsequent uses do not require re-entering the token unless it expires.

Zero runtime dependencies — uses only curl (pre-installed on macOS and Windows 10+) and WorkBuddy's built-in Read/Write/Bash tools. No Python, Node.js, or external scripts required. Works cross-platform (macOS, Linux, Windows).

Server Configuration

Property Value
MCP Endpoint https://clientapi.lunabeing.cn/mcp/
Transport Streamable HTTP (JSON-RPC 2.0 over POST)
Response Format SSE (text/event-stream)
Auth Header Authorization: Bearer <JWT_TOKEN>
Protocol Version 2024-11-05
Server Name mindrest v1.0.0
Token Storage ~/.workbuddy/skills/kcring-emotion/.token

IMPORTANT: The endpoint URL must include the trailing slash (/mcp/). Without it, the server returns a 301 redirect and the POST body is lost, resulting in a 400 error.

MCP Tool: get_current_emotion_stress

This is the only tool exposed by the server.

Property Value
Tool Name get_current_emotion_stress
Description Get the authenticated user's current emotion and stress status
Parameters timezone (optional, string, IANA timezone, e.g. Asia/Shanghai)
Returns Current emotion status, stress status, summary, and status guide

Emotion Status Values

Status Score Range Description
tired < 15 疲惫
restless 15-29 紧绷
tense 30-44 烦闷
calm 45-59 平静
relaxed 60-74 放松
energetic 75-89 愉悦
excited >= 90 激动

Stress Status Values

Status Score Range Description
good < 30 压力较低
normal 30-69 压力中等
bad >= 70 压力较高

Cross-Platform Notes

This skill is designed to work on macOS, Linux, and Windows. Key differences:

Concern macOS / Linux Windows
curl command curl curl.exe (avoid PowerShell's curl alias)
Token file path ~/.workbuddy/skills/kcring-emotion/.token %USERPROFILE%\.workbuddy\skills\kcring-emotion\.token
File permissions chmod 600 after saving Not applicable (NTFS handles ACLs)

WorkBuddy handles this automatically: Use Read/Write tools for token file operations (cross-platform), and use Bash tool for curl commands. When constructing curl commands, detect the OS and use curl on macOS/Linux or curl.exe on Windows.

When to Use

  • User asks to check, view, or analyze their current emotion or mood status
  • User asks about their stress level
  • User mentions "情绪数据", "心情状态", "压力状况", "emotion data", "mood status", "stress level", "情绪分析"
  • User wants to know how they're feeling right now (emotion-wise)

Token Persistence Flow

┌──────────────────┐     ┌──────────────────┐     ┌──────────────────┐
│ Read .token file │───▶ │ TOKEN_FOUND?     │───▶ │ Initialize MCP   │
│ (Read tool)      │     └──────┬───────────┘     │ + Call tool      │
└──────────────────┘            │ No              └──────┬───────────┘
                          ┌─────▼──────┐                 401?
                          │ Ask user   │           ┌─────▼──────────┐
                          │ for JWT    │           │ Ask for new    │
                          │ token      │           │ JWT token      │
                          └─────┬──────┘           └─────┬──────────┘
                                │ Write .token           │ Write .token
                                │ (Write tool)           │ (Write tool)
                                └────────────────────────┘
                                         │
                                ┌────────▼─────────┐
                                │ Initialize MCP   │
                                │ + Call tool      │
                                └──────────────────┘

How to Use

All operations use WorkBuddy's built-in tools (Read, Write, Bash). No scripts or runtimes needed.

Step 1: Check if a token is already stored

Use the Read tool to try reading the token file at:

  • macOS/Linux: ~/.workbuddy/skills/kcring-emotion/.token

  • Windows: %USERPROFILE%\.workbuddy\skills\kcring-emotion\.token

  • If Read succeeds and the file has non-empty content: TOKEN_FOUND — proceed to Step 3.

  • If Read fails (file does not exist): TOKEN_NOT_FOUND — proceed to Step 2.

Step 2: Ask user for JWT token and save it (first time only)

Ask the user: "请提供你的 JWT 认证 token,我会安全地存储它供后续使用。"

Once the user provides the token, save it using the Write tool:

  • Write the token value to the token file path above.

After writing, on macOS/Linux only, use the Bash tool to set file permissions:

chmod 600 ~/.workbuddy/skills/kcring-emotion/.token

On Windows, skip this step (file permissions are managed by NTFS).

Important: Never echo or print the token value in the final response to the user.

Step 3: Initialize MCP session

  1. Use the Read tool to read the token file and obtain the JWT token value.
  2. Use the Bash tool to run curl. Embed the token value directly in the command.

macOS / Linux:

curl -s -i -X POST "https://clientapi.lunabeing.cn/mcp/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Authorization: Bearer <TOKEN_VALUE>" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"kcring-emotion-skill","version":"1.0.0"}}}'

Windows (PowerShell):

curl.exe -s -i -X POST "https://clientapi.lunabeing.cn/mcp/" -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" -H "Authorization: Bearer <TOKEN_VALUE>" -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"kcring-emotion-skill","version":"1.0.0"}}}'

Replace <TOKEN_VALUE> with the actual token read from the file.

Parse the response:

  • The -i flag includes HTTP headers in the output. Look for Mcp-Session-Id: in the headers — save this value for subsequent requests.
  • The body is SSE format: lines starting with data: contain JSON-RPC responses. Look for "result" with "serverInfo": success. If HTTP status is 401: token expired, go to Step 6.

Step 4: Call the MCP tool get_current_emotion_stress

Use the Bash tool to run curl with the tools/call method. Include the Mcp-Session-Id header from Step 3.

macOS / Linux:

curl -s -X POST "https://clientapi.lunabeing.cn/mcp/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Authorization: Bearer <TOKEN_VALUE>" \
  -H "Mcp-Session-Id: <SESSION_ID>" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_current_emotion_stress","arguments":{"timezone":"Asia/Shanghai"}}}'

Windows (PowerShell):

curl.exe -s -X POST "https://clientapi.lunabeing.cn/mcp/" -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" -H "Authorization: Bearer <TOKEN_VALUE>" -H "Mcp-Session-Id: <SESSION_ID>" -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_current_emotion_stress","arguments":{"timezone":"Asia/Shanghai"}}}'

Replace <TOKEN_VALUE> and <SESSION_ID> with actual values. Use the user's timezone if known (e.g., Asia/Shanghai for China). The timezone parameter is optional — omit it to use the server default.

Step 5: Handle token expiration

If any curl response indicates HTTP 401 (the response body contains "error" or the -i header output shows 401):

  1. Inform the user that the JWT token has expired
  2. Ask the user to provide a new JWT token
  3. Save the new token (Step 2)
  4. Retry the MCP request (Steps 3-4)

Step 6: Parse SSE response

The MCP server responds with SSE format (text/event-stream). The response looks like:

event: message
data: {"jsonrpc":"2.0","id":2,"result":{"content":[{"type":"text","text":"{...}"}],"structuredContent":{...}}}

WorkBuddy should:

  1. Find lines starting with data: in the raw output
  2. Extract the JSON payload after the data: prefix
  3. Parse the JSON to access result.structuredContent (preferred — it's already structured JSON) or result.content[0].text (fallback — parse the text field as JSON)

Step 7: Present and Analyze Results

After fetching the data, parse the structuredContent (or content[0].text parsed as JSON). The response contains:

{
  "emotion_status_data": {
    "status": "energetic",       // mood: calm|energetic|restless|tense|excited|relaxed|tired
    "score": 86,                 // 0-100
    "description": ""            // optional additional text
  },
  "stress_status_data": {
    "status": "good",            // severity: good(<30)|normal(30-69)|bad(>=70)
    "score": 26,                 // 0-100
    "description": ""            // optional additional text
  },
  "last_updated_at": "2026-07-23 14:59:30",
  "summary": "慢慢来,你已经在路上了。",
  "status_guide": {
    "emotion_status": { ... },   // reference guide for emotion status values
    "stress_status": { ... }     // reference guide for stress status values
  }
}

Presentation guidance:

  1. Display the summary prominently — it's a personalized insight from the service
  2. Show emotion status: status name (translated to Chinese if needed), score, and description
  3. Show stress status: status name (translated to Chinese if needed), score, and description
  4. Show last updated time so the user knows data freshness
  5. Add context using the status_guide to explain what the status values mean
  6. Visualize if appropriate: use the Visualizer to render a simple gauge or status indicator showing emotion score and stress score side by side
  7. Provide insights: compare emotion and stress scores, note any correlations, offer encouraging or supportive commentary based on the summary

Quick Reference: curl Command Template

All MCP requests use POST to https://clientapi.lunabeing.cn/mcp/ (trailing slash required).

OS curl command
macOS/Linux curl -s -i -X POST "https://clientapi.lunabeing.cn/mcp/" -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" -H "Authorization: Bearer <TOKEN>" -H "Mcp-Session-Id: <SESSION>" -d '<JSON_BODY>'
Windows curl.exe -s -i -X POST "https://clientapi.lunabeing.cn/mcp/" -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" -H "Authorization: Bearer <TOKEN>" -H "Mcp-Session-Id: <SESSION>" -d '<JSON_BODY>'
Operation JSON-RPC Body
Initialize {"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"kcring-emotion-skill","version":"1.0.0"}}}
Call tool {"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_current_emotion_stress","arguments":{"timezone":"Asia/Shanghai"}}}

Note: After initialize, the server returns a Mcp-Session-Id header. Include it in all subsequent requests. If the server does not return a session ID, omit the header.

Security Notes

  • On macOS/Linux, the token file is set to 0600 permission. On Windows, file ACLs are managed by the OS.
  • Never log, print, or expose the JWT token in plain text in the final response to the user
  • The token is only used in the Authorization header for MCP requests
  • If the token is invalid or expired, inform the user and ask them to provide a new one
  • Do not include the token value in any output file or conversation message
  • When using the Bash tool, construct the curl command with the token embedded directly — avoid shell variables that would be visible in process listings

API Reference

For detailed MCP protocol request/response examples, refer to references/api_docs.md.

当前收录版本

1.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值65/100

亮点

  • 提供真实情绪与压力状态获取功能,满足健康监测长尾需求
  • 零运行时依赖,仅使用系统预装 curl 和平台内置工具,跨平台兼容性好
触发精准85/100

待提升项

  • description写错位置 原报告严重程度:轻微

    顶层 frontmatter 中 description 字段为空,实质触发描述位于 skill_body 内部

    改进建议:将触发描述移至顶层 frontmatter 的 description 字段,保持规范一致性

亮点

  • 触发词覆盖中英文关键表达,边界清晰,误触风险低
结构规范90/100

亮点

  • 执行流程分步清晰,含完整端到端示例和跨平台命令模板
  • frontmatter 完整,文档结构规范,便于理解与执行
执行可靠88/100

待提升项

  • SSE响应解析容错不足 原报告严重程度:轻微

    未明确说明当 SSE 响应格式异常或 JSON 解析失败时的降级处理方案

    改进建议:建议增加对 SSE 解析失败的异常处理,如重试机制或用户提示

亮点

  • 覆盖 Token 不存在、401 过期等关键异常场景
  • 跨平台兼容性处理完善,文件权限管理得当
证据可验 (前四项均值)82/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • clientapi.lunabeing.cn

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

来源文档未说明。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。