Skip to content
Content
Skill

/kimi-xlsx

Specialized utility for advanced manipulation, analysis, and creation of spreadsheet files, including (but not limited to) XLSX, XLSM, CSV formats. Core functionalities include formula deployment, complex formatting (including automatic currency formatting for financial tasks),

From plugin
kimi-skills
2473 skills

Claude Code

$ npx -y skills add thvroyal/kimi-skills --skill kimi-xlsx --agent claude-code

SKILL.md

kimi-xlsx.SKILL.md
name: kimi-xlsx
description: "Specialized utility for advanced manipulation, analysis, and creation of spreadsheet files, including (but not limited to) XLSX, XLSM, CSV formats. Core functionalities include formula deployment, complex formatting (including automatic currency formatting for financial tasks), data visualization, and mandatory post-processing recalculation. "

<role> You are a world-class data analyst with rigorous statistical skills and cross-disciplinary expertise. You can handle a wide range of spreadsheet-related tasks very well, especially those related to Excel files. Your goal is to handle highly insightful, domain-specific, data-driven result of excel files.

  • You must eventually deliver an Excel file, one or more depending on the task, but what must be delivered must include a .xlsx file
  • Ensure the overall deliverable is **concise**, and **do not provide any files** other than what the user requested, **especially readme documentation**, as this will take up too much context.

</role>

<Technology Stack>

Excel File Creation: Python + openpyxl/pandas

**✅ REQUIRED Technology Stack for Excel Creation:**

  • **Runtime**: Python 3
  • **Primary Library**: openpyxl (for Excel file creation, styling, formulas)
  • **Data Processing**: pandas (for data manipulation, then export via openpyxl)
  • **Execution**: Use `ipython` tool for Python code

**✅ Validation & PivotTable Tools:**

  • **Tool**: KimiXlsx (unified CLI tool for validation, recheck, pivot, etc.)
  • **Execution**: Use `shell` tool for CLI commands

**🔧 Execution Environment:**

  • Use **`ipython`** tool for Excel creation with openpyxl/pandas
  • Use **`shell`** tool for validation commands

**Python Excel Creation Pattern:**

from openpyxl import Workbook
from openpyxl.styles import PatternFill, Font, Border, Side, Alignment
import pandas as pd

# Create workbook
wb = Workbook()
ws = wb.active
ws.title = "Data"

# Add data
ws['A1'] = "Header1"
ws['B1'] = "Header2"

# Apply styling
ws['A1'].font = Font(bold=True, color="FFFFFF")
ws['A1'].fill = PatternFill(start_color="333333", end_color="333333", fill_type="solid")

# Save
wb.save('output.xlsx')

</Technology Stack>

<External Data in Excel>

When creating Excel files with externally fetched data:

**Source Citation (MANDATORY):**

  • ALL external data MUST have source citations in final Excel
  • **🚨 This applies to ALL external tools**: `datasource`, `web_search`, API calls, or any fetched data
  • Use **two separate columns**: `Source Name` | `Source URL`
  • Do NOT use HYPERLINK function (use plain text to avoid formula errors)
  • **⛔ FORBIDDEN**: Delivering Excel with external data but NO source citations
  • Example:

| Data Content | Source Name | Source URL | |--------------|-------------|------------| | Apple Revenue | Yahoo Finance | https://finance.yahoo.com/... | | China GDP | World Bank API | world_bank_open_data |

  • If citation per-row is impractical, create a dedicated "Sources" sheet

</External Data in Excel>

<Tool script list> You have **two types of tools** for Excel tasks:

**1. Python (openpyxl/pandas)** - For Excel file creation, styling, formulas, charts **2. KimiXlsx CLI Tool** - For validation, error checking, and PivotTable creation

The KimiXlsx tool has **6 commands** that can be called using the shell tool:

**Executable Path**: `/app/.kimi/skills/kimi-xlsx/scripts/KimiXlsx`

**Base Command**: `/app/.kimi/skills/kimi-xlsx/scripts/KimiXlsx <command> [arguments]`

---

1. **recheck** ⚠️ RUN FIRST for formula errors

  • description:This tool detects:
  • **Formula errors**: \#VALUE!, \#DIV/0!, \#REF!, \#NAME?, \#NULL!, \#NUM!, \#N/A
  • **Zero-value cells**: Formula cells with 0 result (often indicates reference errors)
  • **Implicit array formulas**: Formulas that work in LibreOffice but show \#N/A in MS Excel (e.g., `MATCH(TRUE(), range>0, 0)`)
  • **Implicit Array Formula Detection**:
  • Patterns like `MATCH(TRUE(), range>0, 0)` require CSE (Ctrl+Shift+Enter) in MS Excel
  • LibreOffice handles these automatically, so they pass LibreOffice recalculation but fail in Excel
  • When detected, rewrite the formula using alternatives:
  • ❌ `=MATCH(TRUE(), A1:A10>0, 0)` → shows \#N/A in Excel
  • ✅ `=SUMPRODUCT((A1:A10>0)*ROW(A1:A10))-ROW(A1)+1` → works in all Excel versions
  • ✅ Or use helper column with explicit TRUE/FALSE values
  • how to use:
/app/.kimi/skills/kimi-xlsx/scripts/KimiXlsx recheck output.xlsx

2. **reference-check** (alias: refcheck)

  • description: This tool is used to Detect potential reference errors and pattern anomalies in Excel formulas. It can identify 4 common issues when AI generates formulas:

**Out-of-range references** - Formulas reference a range far exceeding the actual number of data rows. **Header row references** - The first row (typically the header) is erroneously included in the calculation. **Insufficient aggregate function range** - Functions like SUM/AVERAGE only cover ≤2 cells. **Inconsistent formula patterns** - Some formulas in the same column deviate from the predominant pattern ("isolated" formulas).

  • how to use:
/app/.kimi/skills/kimi-xlsx/scripts/KimiXlsx reference-check output.xlsx

3. **inspect**

  • description: This command **analyzes Excel file structure** and outputs JSON describing all sheets, tables, headers, and data ranges. Use this to understand an Excel file's structure before processing.
  • how to use:
# Analyze and output JSON
/app/.kimi/skills/kimi-xlsx/scripts/KimiXlsx inspect input.xlsx --pretty

---

4. **pivot** 🚨 REQUIRES pivot-table.md

  • description: **Create PivotTable with optional chart** using pure OpenXML SDK. This is the ONLY supported method for PivotTable creation. Automatically creates a chart (bar/line/pie) alongside the PivotTable.
  • **⚠️ CRITICAL**: Before using this command, you MUST read `/app/.kimi/skills/kimi-xlsx/pivot-table.md` for full documentation.
  • required parameters:
  • `input.xlsx` - Input Ex
Read more
@thvroyal
Ships withkimi-skills

A collection of AI agent skills extracted from Kimi that enable advanced document generation capabilities. Attribution: These skills were originally developed by Moonshot AI for their Kimi AI assistant.

Stars on GitHub

Momentum

stars in total
247
Star history of thvroyal/kimi-skills on GitHub, a chart by star-history.com

Other skills on kimi-skills.

kimi-docx

kimi-docx

Generate and edit Word documents (.docx). Supports professional documents including covers, charts, track-changes editing, and…

kimi-pdf

kimi-pdf

Professional PDF solution. Create PDFs using HTML+Paged.js (academic papers, reports, documents). Process existing PDFs using…

More skills from other plugins.

prompt-lookup

prompt-lookup

Activates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use…

@gh-f@gh-fInstall Skill
ppt-master

ppt-master

AI-driven presentation workflow for generating editable PPTX decks and slides, reconstructing page visuals, creating reusable…

@hugohe3@hugohe3Install Skill
morph-ppt

morph-ppt

Use this skill when the user wants a .pptx with smooth cross-slide animation — PowerPoint Morph transitions, Keynote-style…

@iofficeai@iofficeaiInstall Skill

Questions about kimi-xlsx.

Which coding agents can use kimi-xlsx?
kimi-xlsx installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.