mcpField
G
gplay-review-management

gplay-review-management

github.com/tamtom营销与增长52375 次安装13 周前更新
代码仓库

关于 gplay-review-management

使用 gplay 命令行监控并回复 Google Play 应用评价的技能,适用于应用支持和运营人员。提供评价检索、筛选、回复,以及分析和监控示例流程。

主要功能

  1. 01列出评价并分页
  2. 02按评分、日期和语言筛选
  3. 03查看并回复单条评价
  4. 04翻译评价文本
  5. 05分析评分和评价主题

适用场景

  1. 01查找近期低分评价
  2. 02回复指定用户评价
  3. 03追踪提及崩溃或退款的评价
  4. 04汇总评分及常见词语

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/tamtom/gplay-cli-skills --skill gplay-review-management

安装后在 Claude Code 中输入/gplay-review-management确认已加载。

详细介绍

Google Play 评论管理

需要监控并回复用户评论时,请使用此技能。

列出评论

获取所有评论
gplay reviews list --package com.example.app
使用分页获取所有评论
gplay reviews list --package com.example.app --paginate
表格输出(易于阅读)
gplay reviews list \
  --package com.example.app \
  --output table

筛选评论

按评分筛选
# Get 1-star reviews
gplay reviews list --package com.example.app \
  | jq '.reviews[] | select(.rating == 1)'

# Get 5-star reviews
gplay reviews list --package com.example.app \
  | jq '.reviews[] | select(.rating == 5)'

# Get reviews with 3 stars or less
gplay reviews list --package com.example.app \
  | jq '.reviews[] | select(.rating <= 3)'
按日期筛选
# Reviews from last 7 days
DATE_7_DAYS_AGO=$(date -u -v-7d +%Y-%m-%dT%H:%M:%SZ)
gplay reviews list --package com.example.app \
  | jq --arg date "$DATE_7_DAYS_AGO" \
    '.reviews[] | select(.comments[0].userComment.lastModified.time > $date)'
按语言筛选
# English reviews only
gplay reviews list --package com.example.app \
  | jq '.reviews[] | select(.comments[0].userComment.language == "en")'
机器翻译的评论文本

使用内置的 --translation-language 标志获取 Google 翻译后的评论文本,而不是阅读原文:

gplay reviews list --package com.example.app --translation-language en-US
筛选包含关键词的评论
# Find reviews mentioning "crash"
gplay reviews list --package com.example.app \
  | jq '.reviews[] | select(.comments[0].userComment.text | contains("crash"))'

获取特定评论

gplay reviews get \
  --package com.example.app \
  --review REVIEW_ID

回复评论

gplay reviews reply \
  --package com.example.app \
  --review REVIEW_ID \
  --text "Thank you for your feedback! We've fixed this issue in version 1.2.3."

自动回复评论

回复未回复的一星评论的脚本
#!/bin/bash

PACKAGE="com.example.app"

# Get all unreplied 1-star reviews
gplay reviews list --package $PACKAGE --paginate \
  | jq -r '.reviews[] | select(.rating == 1 and (.comments | length == 1)) | .reviewId' \
  | while read REVIEW_ID; do
    echo "Replying to review: $REVIEW_ID"
    gplay reviews reply \
      --package $PACKAGE \
      --review "$REVIEW_ID" \
      --text "Thank you for your feedback. We're sorry to hear about your experience. Please email [email protected] so we can help resolve this issue."
  done

评论分析

按评分统计评论数量
gplay reviews list --package com.example.app --paginate \
  | jq '[.reviews[] | .rating] | group_by(.) | map({rating: .[0], count: length})'
计算平均评分
gplay reviews list --package com.example.app --paginate \
  | jq '[.reviews[].rating] | add / length'
评论中最常见的词语
gplay reviews list --package com.example.app --paginate \
  | jq -r '.reviews[].comments[0].userComment.text' \
  | tr '[:upper:]' '[:lower:]' \
  | tr -s ' ' '\n' \
  | sort | uniq -c | sort -rn | head -20

监控特定问题

查找与崩溃相关的评论
gplay reviews list --package com.example.app --paginate \
  | jq '.reviews[] | select(.comments[0].userComment.text | test("crash|freeze|hang"; "i"))'
查找提及竞争对手的评论
gplay reviews list --package com.example.app --paginate \
  | jq '.reviews[] | select(.comments[0].userComment.text | test("competitor_name"; "i"))'
查找包含退款请求的评论
gplay reviews list --package com.example.app --paginate \
  | jq '.reviews[] | select(.comments[0].userComment.text | test("refund|money back"; "i"))'

监控仪表板

创建一个简单的评论仪表板:

#!/bin/bash
PACKAGE="com.example.app"

echo "=== Review Dashboard ==="
echo ""

# Total reviews
TOTAL=$(gplay reviews list --package $PACKAGE --paginate | jq '.reviews | length')
echo "Total reviews: $TOTAL"

# Rating distribution
echo ""
echo "Rating distribution:"
gplay reviews list --package $PACKAGE --paginate \
  | jq -r '.reviews[] | .rating' \
  | sort | uniq -c | sort -rn

# Avg rating
AVG=$(gplay reviews list --package $PACKAGE --paginate \
  | jq '[.reviews[].rating] | add / length')
echo ""
echo "Average rating: $AVG"

# Unreplied reviews
UNREPLIED=$(gplay reviews list --package $PACKAGE --paginate \
  | jq '[.reviews[] | select(.comments | length == 1)] | length')
echo ""
echo "Unreplied reviews: $UNREPLIED"

# Recent 1-star
echo ""
echo "Recent 1-star reviews:"
gplay reviews list --package $PACKAGE \
  | jq -r '.reviews[] | select(.rating == 1) | "\(.comments[0].userComment.lastModified.time): \(.comments[0].userComment.text)"' \
  | head -5

定时检查评论

每日评论检查(cron)
# Add to crontab
0 9 * * * /path/to/check-reviews.sh
check-reviews.sh
#!/bin/bash
PACKAGE="com.example.app"

# Get unreplied 1-star and 2-star reviews
UNREPLIED=$(gplay reviews list --package $PACKAGE \
  | jq '[.reviews[] | select(.rating <= 2 and (.comments | length == 1))] | length')

if [ "$UNREPLIED" -gt 0 ]; then
  echo "⚠️  You have $UNREPLIED unreplied negative reviews!"
  # Send notification (email, Slack, etc.)
fi

与支持系统集成

将评论转发至支持邮箱:

#!/bin/bash
# Get reviews mentioning "support" or "help"
gplay reviews list --package com.example.app --paginate \
  | jq -r '.reviews[] | select(.comments[0].userComment.text | test("support|help"; "i")) |
    "Review ID: \(.reviewId)\nRating: \(.rating)\nText: \(.comments[0].userComment.text)\n---"' \
  | mail -s "Support Reviews" [email protected]

评论

支持 Markdown