AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Wps Conditional Format

skill-bwkyd-wps-skills-wps-conditional-format · by Bwkyd

|

No reviews yet
0 installs
33 views
0.0% view→install

Install

$ agentstack add skill-bwkyd-wps-skills-wps-conditional-format

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-bwkyd-wps-skills-wps-conditional-format)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Wps Conditional Format? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

条件格式专家

让数据自动变色、加图标、显示数据条。一看就懂。

> "领导要的那种红绿灯效果,就是条件格式。"

When to Use

  • 数据自动变色(如负数变红)
  • 进度条/数据条效果
  • 红绿灯/图标集
  • 重复值高亮
  • 用户说"怎么让数据自动变色""加个红绿灯"

When NOT to Use

  • 图表可视化 → 使用 wps-chart
  • 公式问题 → 使用 wps-formula

常用条件格式场景

场景1:数值范围变色

需求:成绩≥90绿色,60-89正常,=90 绿色
    var fc1 = range.FormatConditions.Add(1, 5, "90"); // xlCellValue, xlGreaterEqual
    fc1.Interior.Color = 0x66CF51; // BGR绿色

    // 1'],
               fill=PatternFill('solid', fgColor='FFD43B')))
// JSA: 高亮重复值
function HighlightDuplicates() {
    var range = Application.ActiveSheet.Range("A2:A100");
    range.FormatConditions.Delete();
    var fc = range.FormatConditions.AddUniqueValues();
    fc.DupeUnique = 1; // xlDuplicate
    fc.Interior.Color = 0x3BD4FF; // BGR黄色
}

场景4:图标集(红绿灯)

// JSA: 红绿灯图标集
function AddTrafficLights() {
    var range = Application.ActiveSheet.Range("E2:E50");
    range.FormatConditions.Delete();
    var fc = range.FormatConditions.AddIconSetCondition();
    fc.IconSet = Application.ActiveWorkbook.IconSets(1); // 红绿灯
    // 自定义阈值
    fc.IconCriteria(2).Value = 60;
    fc.IconCriteria(3).Value = 90;
}

场景5:隔行变色(斑马纹)

from openpyxl.formatting.rule import FormulaRule

stripe = PatternFill('solid', fgColor='F0F4F8')
ws.conditional_formatting.add('A2:G100',
    FormulaRule(formula=['MOD(ROW(),2)=0'], fill=stripe))

条件格式速查表

| 需求 | 类型 | 关键参数 | |------|------|----------| | 大于/小于变色 | CellIsRule | operator + formula | | 包含特定文字 | FormulaRule | SEARCH函数 | | 重复值高亮 | UniqueValues | DupeUnique=1 | | 前N名/后N名 | Top10Rule | rank + percent | | 数据条 | DataBarRule | color | | 色阶(渐变色) | ColorScaleRule | start/mid/end_color | | 图标集 | IconSetCondition | IconSet类型 | | 日期到期提醒 | FormulaRule | TODAY()比较 | | 隔行变色 | FormulaRule | MOD(ROW(),2) |

工作流程

Step 1: 理解需求

确认要格式化的范围和条件

Step 2: 选择方案

  • openpyxl → 生成新文件
  • JSA宏 → 在WPS中直接运行

Step 3: 生成代码并说明

Step 4: 交付

  1. 提供代码(二选一或两种都给)
  2. 说明如何修改阈值和颜色
  3. 注意事项(规则优先级、性能影响)

示例

# 数值变色
/wps-conditional-format 让销售额低于目标的变红色,超过的变绿色

# 数据条
/wps-conditional-format 给完成率列加个进度条效果

# 重复值
/wps-conditional-format 帮我找出A列有哪些重复的数据

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.