relationship-health-score

AI-based real-time relationship health scoring that assigns each partner a 0–100 score and provides three-level alerts plus AI communication strategy recommendations.

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 "relationship-health-score" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-392d33b8854701b6fb1bae43d5ba30cc5172765fc9a1d2c42dd4d341bf2f6f85. Verify the upstream source and version against https://skillhub.cn/skills/user_ede7f505/relationship-health-score 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

AI-based real-time relationship health scoring that assigns each partner a 0–100 score and provides three-level alerts plus AI communication strategy recommendations.

0 Downloads

Introduction source: third_party · user_ede7f505 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: relationship-health-score
version: 1.0.0
display_name: "💗 AI Relationship Health Score"
description: AI 实时评估每个 Partner 的关系健康度(0-100分),三级预警 + AI 沟通策略建议
category: ai-organization-behavior
tags:
  - partner-management
  - health-score
  - relationship
  - alert
author: "[Company]"
created: 2026-05-15
platform: workbuddy

💗 Relationship Health Score

Layer 5: AI Organization Behavior — AI 开始"评估关系"

核心价值

将 AI 从"监控数据异常"升级到"监控关系异常"。

  • ❌ Before: 靠经验判断谁要流失,往往发现时已经晚了
  • ✅ After: AI 实时评估健康度,主动预警潜在流失

评分维度

维度 权重 说明
回复速度 (reply_speed) 20% 最近 30 天平均回复时间趋势
情绪稳定性 (emotion_stability) 25% 最近沟通的语气波动分析
配合度 (cooperation) 20% 任务完成率、CAP 调整响应率
付款及时性 (payment_timeliness) 15% 付款延迟次数统计
流量稳定性 (traffic_stability) 20% 最近 30 天流量波动

评分标准

各维度评分规则

维度 100分 70分 50分 30分
回复速度 持续 fast 偶尔 medium 经常 slow 出现 dead
情绪稳定性 持续正面 偶尔波动 负面增多 持续负面
配合度 100% 响应 80%+ 响应 50%+ 响应 <50% 响应
付款及时性 从不延迟 偶尔延迟 经常延迟 多次严重延迟
流量稳定性 波动 <10% 波动 10-20% 波动 20-30% 波动 >30%

综合评分

Health Score = Σ (dimension_score × weight) / Σ weights

预警等级

等级 分数范围 颜色 AI 动作
🟢 健康 ≥70 分 绿色 正常监控
🟡 注意 50-70 分 黄色 24h 内主动问候
🔴 预警 <50 分 红色 立即通知 + 建议行动

数据结构

健康度报告

{
  "partner_id": "partner_001",
  "partner_name": "Hertzmobi",
  "health_score": 62,
  "grade": "🟡 注意",
  "breakdown": {
    "reply_speed": {"score": 70, "trend": "down", "weight": 0.20},
    "emotion_stability": {"score": 55, "trend": "stable", "weight": 0.25},
    "cooperation": {"score": 65, "trend": "stable", "weight": 0.20},
    "payment_timeliness": {"score": 80, "trend": "stable", "weight": 0.15},
    "traffic_stability": {"score": 50, "trend": "down", "weight": 0.20}
  },
  "alerts": [
    {
      "type": "reply_speed_decline",
      "message": "回复速度从 2h 降至 8h",
      "severity": "warning"
    }
  ],
  "ai_suggestion": {
    "action": "主动电话沟通",
    "reason": "该 Partner 回复速度和流量都出现下降趋势",
    "script": "建议电话询问是否对当前 CAP 或条款有调整需求",
    "priority": "high"
  },
  "last_updated": "2026-05-15T10:30:00Z"
}

使用场景

场景 1:查询健康度

from relationship_health import get_relationship_health

# 查询 Partner 健康度
health = get_relationship_health("partner_001")
print(f"健康度: {health['health_score']} ({health['grade']})")

场景 2:批量监控

from relationship_health import monitor_all_partners

# 监控所有 Partner 健康度
results = monitor_all_partners()

# 筛选需要预警的
alerts = [r for r in results if r["grade"] in ["🟡 注意", "🔴 预警"]]
for alert in alerts:
    send_notification(alert)

场景 3:预警通知

from relationship_health import check_and_alert

# 检查并自动发送预警
alerts = check_and_alert(
    threshold_warning=70,
    threshold_critical=50
)

for alert in alerts:
    print(f"🚨 {alert['partner_name']}: {alert['health_score']} 分")
    print(f"   建议: {alert['ai_suggestion']['action']}")

与其他 Skill 集成

集成 partner-memory-system

# Health Score 自动读取 Partner Memory 进行评分
from partner_memory import get_partner_memory

memory = get_partner_memory(partner_id)
# 使用 memory 中的数据计算各维度得分

集成 cross-cultural-negotiation-copilot

# 根据健康度调整沟通策略
health = get_relationship_health(partner_id)

if health["grade"] == "🔴 预警":
    strategy = "empathetic_urgent"  # 共情优先 + 紧迫感
    message = "非常重视与您的合作关系..."
elif health["grade"] == "🟡 注意":
    strategy = "supportive_caring"  # 支持性 + 关心
    message = "希望了解您最近的反馈..."
else:
    strategy = "normal"  # 正常商务沟通

技术规格

项目 说明
存储格式 本地 JSON 文件
存储位置 data/health_scores/{partner_id}.json
数据来源 partner-memory-system
Python 版本 3.9+
依赖 json, os, datetime

示例输出

健康度查询

$ python relationship_health.py --action query --partner_id partner_001

{
  "partner_id": "partner_001",
  "partner_name": "Hertzmobi",
  "health_score": 85,
  "grade": "🟢 健康",
  "breakdown": {...},
  "ai_suggestion": {
    "action": "保持当前沟通频率",
    "priority": "low"
  }
}

预警检查

$ python relationship_health.py --action check_alerts

🚨 发现 2 个需要关注的 Partner:

🔴 partner_003 (GamePartner)
   健康度: 35 分
   原因: 回复速度下降 + 流量波动 >30%
   建议: 立即电话沟通

🟡 partner_002 (AppTango)
   健康度: 62 分
   原因: 最近情绪风格偏悲观
   建议: 24h 内主动问候

Skill 版本: v1.0.0 新增于 Hackathon 2026

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 直接解决用户明确的核心任务痛点,显著提升日常高频场景的效率
  • 将 AI 从监控数据异常升级到监控关系异常,具有创新性
  • 提供三级预警和 AI 沟通策略建议,功能闭环完整
Trigger Precision85/100

Highlights

  • 触发词精准完整,覆盖多种变体,边界清晰
  • description 内容详实,准确描述了 Skill 的核心功能
Structure and Standards90/100

Highlights

  • Phase/步骤清晰,有出口条件,含端到端示例
  • frontmatter 完整,单文件结构良好
  • 评分维度、评分标准、预警等级等模块划分清晰
Execution Reliability80/100

Highlights

  • 工具来源明确,参数正确
  • 覆盖主要异常,不可逆操作有确认机制
  • 提供了完整的数据结构和使用场景示例
Evidence Verifiability (mean of the first four)88/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.

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.

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