kcring-emotion

Use when the user wants to fetch and analyze emotion-related data from a remote MCP service (Kcring). The skill connects to the MCP server over a streamable HTTP transport, authenticates using a JWT Bearer token (stored locally after first use), and uses the MCP tool get_current_emotion_stress to obtain the user's current emotion and stress state. Triggered by requests like “get my emotion data,” “check my stress level,” “how is my mood,” “fetch emotion data,” “view mood status,” “emotion analysis,” “stress status,” or any mention of retrieving emotion/mood/stress data.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "kcring-emotion" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-5b9e470b8498eabb359d0180bc662f4eaf64da04f3c806775428c2755f9c91c5. Verify the upstream source and version against https://skillhub.cn/skills/org-75we1tjd/kcring-emotion-and-stress-information before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Use when the user wants to fetch and analyze emotion-related data from a remote MCP service (Kcring). The skill connects to the MCP server over a streamable HTTP transport, authenticates using a JWT Bearer token (stored locally after first use), and uses the MCP tool get_current_emotion_stress to obtain the user's current emotion and stress state. Triggered by requests like “get my emotion data,” “check my stress level,” “how is my mood,” “fetch emotion data,” “view mood status,” “emotion analysis,” “stress status,” or any mention of retrieving emotion/mood/stress data.

0 Downloads

Introduction source: third_party · org-75we1tjd · 1.0.1 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Translation pending; see source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
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.

Current listing version

1.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value65/100

Highlights

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

Areas to improve

  • description写错位置 Reported severity: Minor

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

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

Highlights

  • 触发词覆盖中英文关键表达,边界清晰,误触风险低
Structure and Standards90/100

Highlights

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

Areas to improve

  • SSE响应解析容错不足 Reported severity: Minor

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

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

Highlights

  • 覆盖 Token 不存在、401 过期等关键异常场景
  • 跨平台兼容性处理完善,文件权限管理得当
Evidence Verifiability (mean of the first four)82/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

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

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • clientapi.lunabeing.cn

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.