Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

review-salience-xlsx审查 salience XLSX

Agent Skill

review-salience-xlsx 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

282

周安装

12

GitHub Stars

公开资料未说明

下载量

99
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/timlai666/skills --skill review-salience-xlsx

简介

review-salience-xlsx 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词快速定位候选结果时使用。

  • 它适用于 Excel 数据分析、信息聚合和线索筛选等研究检索类任务场景。
  • 通过关键词、任务场景或来源线索调用,可结合仓库 README 核验具体用法。
  • 安装前建议确认权限范围和维护状态,注意是否会触发联网或文件读写操作。
  • 可通过 npx skills add 命令从指定 GitHub 仓库安装使用。

SKILL.md

Review Salience → PCA → K-means Customer Segmentation

Full pipeline from a review corpus to customer segments:

  1. Score every review on every attribute (salience 0–7) → review × attribute matrix
  2. Reduce attributes to latent dimensions via PCA
  3. Segment reviews into customer groups via iterative K-means

Each stage is independently useful. Run only the stages the user needs.

For the Excel output format, read references/xlsx-format.md. For PCA and K-means implementation details, read references/pca-kmeans.md. For a worked example (safety-eyewear, 923 reviews, 30 attributes, 4 clusters), read references/worked-example.md.

Salience measures *how prominently* a reviewer mentions an attribute — not sentiment. Each cell is an integer 0–7:

ScoreMeaning
0Attribute not mentioned at all
1–3Slight or indirect mention
4Neutral or ambiguous mention
5–6Clearly and explicitly mentioned
7Strongly and fully emphasised

For the Excel output format, read references/xlsx-format.md. For PCA and K-means implementation details, read references/pca-kmeans.md. For a worked example (safety-eyewear corpus, 923 reviews, 30 attributes, 4 clusters), read references/worked-example.md.


Concepts

Attribute catalog

A frozen, ordered list of attributes produced upstream (e.g. by the review-scoring-docx skill). Each attribute has an id (zero-padded, e.g. 01) and a label. The catalog must not change after scoring begins.

Scorer

The component that reads one review and returns N integers. This skill is scorer-agnostic: Claude reads and scores by default, but the architecture supports swapping in any external scorer without changing the rest of the pipeline. See Scorer contract below.

Salience matrix

A table with one row per review and one column per attribute, plus metadata columns (review_id, product, review_text). Column names follow the pattern s01, s02sN. This is the input to both PCA and K-means.

PC scores matrix

Produced by PCA on the standardised salience matrix. Shape: (n_reviews, n_components). Each column is a latent dimension (e.g. "整體使用價值感", "場景創新適應力"). This matrix is the direct input to K-means clustering.

Customer segments

K-means groups applied to the PC scores matrix. Each review (= each customer voice) is assigned to exactly one segment. The iterative pruning rule ensures no segment is smaller than 5% of the total corpus.


Workflow

Step 0 — Locate required skills

Check your available skills for an xlsx skill (covers .xlsx or spreadsheet creation) and a docx skill if Word output is needed. Read their SKILL.md files before writing any output code.

Step 1 — Ingest reviews

Load all reviews for each product. Never truncate. Accept all languages.

import csv

def load_reviews(filepath):
    candidates = ['body', 'Body', 'review', 'text', 'content']
    with open(filepath, encoding='utf-8', errors='replace') as f:
        reader = csv.DictReader(f)
        col = next((c for c in candidates if c in reader.fieldnames), None)
        if col is None:
            raise ValueError(f"No text column found. Headers: {reader.fieldnames}")
        return [r[col].strip() for r in reader
                if r[col].strip() and len(r[col].strip()) > 15]

Print a per-product count summary before proceeding.

Step 2 — Confirm the attribute catalog

Either receive the catalog from upstream or rediscover it by reading the corpus. Freeze as an ordered list before scoring starts:

ATTRS = [
    ("01", "attribute label 1"),
    ("02", "attribute label 2"),
    # ...
]

Step 3 — Score reviews ← scorer swap point

This is the scorer contract boundary. Anything that satisfies the contract below can replace Claude's built-in scoring.

Scorer contract

Input: a single review string (any language) Output: a list of integers, one per attribute, in catalog order, each 0–7

Built-in scorer (Claude reads semantically): Read each review, understand its meaning, assign scores. No keyword matching. See references/worked-example.md for calibration examples.

External scorer (n8n / API / other): See references/external-scorer.md for integration patterns.

scores = {}
for pid, reviews in all_reviews.items():
    scores[pid] = []
    for review_text in reviews:
        scores[pid].append(score_one_review(review_text, ATTRS))

Save progress incrementally if corpus > 200 reviews.

Step 4 — Build salience Excel

See references/xlsx-format.md for exact sheet layout, colour scheme, and openpyxl patterns. Two sheets: full matrix + product summary.

Step 5 — PCA (if requested)

Read references/pca-kmeans.md → Section A before writing any PCA code.

Key steps:

  1. Standardise: X_std = StandardScaler().fit_transform(X)
  2. Fit PCA: use Kaiser criterion (eigenvalue > 1) to choose n_components
  3. Compute factor loadings: loadings = components_.T × sqrt(eigenvalues_)
  4. Name each PC by its dominant loadings (|≥ 0.30|)
  5. Save PC scores matrix for clustering: PC = pca.fit_transform(X_std)

Step 6 — K-means segmentation (if requested)

Read references/pca-kmeans.md → Section B before writing any clustering code.

Key steps:

  1. Scan K=2–9 for Elbow + Silhouette
  2. Pick starting K (favour interpretability over peak silhouette if gap is small)
  3. Run iterative pruning: remove clusters < 5% of corpus, decrement K, refit
  4. After convergence: call km.predict(ALL_reviews) — never discard pruned reviews
  5. Name clusters by PC centroid pattern and top attribute means

Step 7 — Output

  • Save .xlsx to /mnt/user-data/outputs/
  • Save .docx to /mnt/user-data/outputs/ (if Word output was requested)
  • Call present_files for every output file
  • Write a prose summary: total reviewed, cluster sizes + names, top finding per cluster

Hard rules

  1. Never truncate reviews. Every valid review (> 15 chars) must be scored and clustered.
  2. All languages count. Do not filter by language.
  3. Catalog is frozen before scoring. No mid-run additions or reordering.
  4. Integer scores only. Each salience cell is a whole number 0–7.
  5. Scorer is swappable. The pipeline must not assume Claude is the scorer.
  6. Never discard pruned reviews. After iterative pruning converges, use km.predict() on the full corpus to assign every review — including those removed during pruning — to the nearest final centroid.
  7. Use absolute column widths. Percentage widths break in Google Sheets.
  8. Present with present_files. Never ask the user to navigate to the file.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

32.22%
按下载量换算32

Claude

30.42%
按下载量换算30

Cursor

18.52%
按下载量换算18

Gemini CLI

9.55%
按下载量换算9

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills