# Excel Orchestrate

> |

- **Type:** Skill
- **Install:** `agentstack add skill-yuyy2004-excel-skills-excel-orchestrate`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [YuYY2004](https://agentstack.voostack.com/s/yuyy2004)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [YuYY2004](https://github.com/YuYY2004)
- **Source:** https://github.com/YuYY2004/excel-skills/tree/main/claude/skills/excel-orchestrate

## Install

```sh
agentstack add skill-yuyy2004-excel-skills-excel-orchestrate
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

> This skill is a **meta-skill** — it does not directly operate on Excel, but orchestrates the existing 16 skills. Follows the "Decompose→Report→Confirm→Execute" four-step approach.
> 本技能是**元技能**——不直接操作 Excel，而是编排已有的 16 个技能。遵循"拆分→报告→确认→执行"四步。

# Excel Task Orchestration / Excel 任务编排

## Workflow / 工作流程

```
User Complex Requirements / 用户复杂需求
    │
    ▼
[0] Scout First / 勘察先行 → Call excel-scout to locate target columns, show current values
    │
    ▼
[1] Parse Requirements / 解析需求 → Match scout results, decompose into independent sub-tasks
    │
    ▼
[2] Match Skills / 匹配技能 → Each sub-task maps to an existing skill
    │
    ▼
[3] Output Report / 输出报告 → Table showing execution plan (order, skill, input, expected output)
    │
    ▼
[4] User Confirms / 用户确认 → After confirmation, call skills one by one
    │
    ▼
[5] Summarize Results / 汇总结果 → Report status after each step completes
```

## 已有技能速查 / Available Skills Quick Reference

| 分类 | 技能 | 能干什么 |
|------|------|------|
| 🔍 查 | `scout` | 操作前勘察——定位目标列、展示当前值 |
| | `find-duplicates` | 扫描重复行 |
| | `filter` | 按条件筛选行 |
| | `validate` | 数据质量检查 |
| 🗑️ 删 | `delete` | 删除行/列 |
| | `deduplicate` | 去重 |
| ✏️ 改 | `insert` | 插入行/列 |
| | `replace` | 查找替换 |
| | `mapping-replace` | 按映射表批量替换 |
| | `regex-clean` | 正则清理（提取/删除/替换） |
| | `date-to-text` | 日期转文本 |
| | `format` | 设置格式 |
| 📊 整 | `sort` | 排序 |
| | `split` | 按列拆分文件 |
| | `merge` | 合并多个文件 |
| | `freeze` | 冻结窗格 |
| 📋 基 | `safe-workflow` | 安全四步法 |

## 拆分原则 / Decomposition Principles

1. **依赖关系**：合并/筛选在前，改值/格式化在后
2. **文件来源**：先搞定输入（merge），再处理内容
3. **同类合并**：多个 mapping-replace 可以一次 XML 处理完成
4. **大文件优先 XML**：>10MB 的行操作自动走 XML 方案
5. **不可逆操作靠后**：删除类操作确认后再执行

## 报告格式 / Report Format

```
任务拆分报告 / Task Decomposition Report
═══════════════

原始需求: [用户原话]

执行计划:
| 序号 | 步骤 | 技能 | 输入 | 预期输出 |
|------|------|------|------|------|
| 1 | 合并28个文件 | excel-merge | 1000万-5000万/ | 单一xlsx |
| 2 | 日期列插文本 | excel-date-to-text | 合并结果 | 6个新列 |
| 3 | 类型→数字 | excel-mapping-replace | 合并结果 | 列值替换 |
| 4 | 国别→代码 | excel-mapping-replace | 合并结果 | 列值替换 |
| 5 | 新兴产业清理 | excel-regex-clean | 合并结果 | 列值清理 |

预计耗时: ~30分钟
风险点: 合并时需处理sharedStrings引用断裂

确认执行? (yes/no)
```

## 执行 / Execution

用户确认后，按顺序执行每步。每步完成后报告状态：

```
[1/5] excel-merge... done (451s, 333669行)
[2/5] excel-date-to-text... done (771s, 6列)
[3/5] excel-mapping-replace... done (697s)
[4/5] excel-mapping-replace... (已合并到第3步)
[5/5] excel-regex-clean... (已合并到第3步)

全部完成 / All Complete, 输出 / Output: 测试文件/终极合并.xlsx
```

## 注意事项

1. **先报告再执行**：拆分结果必须让用户看到并确认
2. **步骤间传递文件**：上一步的输出是下一步的输入，自动管理文件路径
3. **同类操作合并**：多个 mapping-replace 和 regex-clean 可一次 XML 处理，减少读盘次数
4. **失败处理**：某步失败时暂停，删除损坏产物，从备份恢复，询问用户是否继续或修改方案
5. **sharedStrings 警告**：如果涉及 merge + mapping-replace，提醒 sharedStrings 转换问题
6. **每步自动备份**：每个子任务执行前自动备份（时间戳命名），全部成功后仅保留最新3份

## Source & license

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

- **Author:** [YuYY2004](https://github.com/YuYY2004)
- **Source:** [YuYY2004/excel-skills](https://github.com/YuYY2004/excel-skills)
- **License:** MIT

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

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-yuyy2004-excel-skills-excel-orchestrate
- Seller: https://agentstack.voostack.com/s/yuyy2004
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
