AGENT SKILL

excel

Read, inspect, query, generate, and manipulate Excel spreadsheets (.xlsx, .xls) and CSV/TSV data files. Use for extracting tables, analyzing formulas, summarizing data, and performing data transformations.

License 许可
MIT
最近更新
2026-10-16
Stars
★ 2
Forks
0

01 前言 Front Matter

name
excel
description
Read, inspect, query, generate, and manipulate Excel spreadsheets (.xlsx, .xls) and CSV/TSV data files. Use for extracting tables, analyzing formulas, summarizing data, and performing data transformations.
argument-hint
Path to Excel or CSV file, or description of spreadsheet operations
user-invocable
true
disable-model-invocation
false

03 SKILL.md 正文

Excel & Spreadsheet Processing

Purpose

Inspect, extract, query, analyze, and generate Excel spreadsheets (.xlsx, .xls) and tabular datasets (.csv, .tsv).

Use this skill when:

  • Reading or extracting contents and tables from .xlsx / .xls spreadsheets
  • Analyzing financial models, data tables, metrics, or schema in sheets
  • Querying, filtering, transforming, or aggregating tabular data
  • Generating clean .xlsx spreadsheets or converting between CSV/JSON and Excel
  • Auditing formulas, cell coordinates, and multi-sheet workbooks

Extraction & Inspection Strategies

1. Built-in Core Text Extraction

When attached to the NPC session or referenced in conversation:

  • .xlsx files are automatically decompressed and rendered into Markdown tables with sheet names, columns, and rows.
  • Clickable file references (path/to/data.xlsx) open directly in the VS Code preview tab.

2. Python (pandas / openpyxl) for Deep Analysis

For programmatic operations, filtering, grouping, or creating spreadsheets, execute short Python scripts using the bash tool:

import pandas as pd

# Load all sheets or a specific sheet
excel_file = "data.xlsx"
xls = pd.ExcelFile(excel_file)
print("Sheets:", xls.sheet_names)

df = pd.read_excel(excel_file, sheet_name=xls.sheet_names[0])
print("Shape:", df.shape)
print("Columns:", df.columns.tolist())
print(df.head(10).to_string())

3. Node.js for Fast JSON/CSV Transformations

For lightweight Node scripting without Python dependencies:

  • Use Node's built-in zlib or read CSV directly with string split/regex.
  • Extract XML chunks from xl/worksheets/sheet1.xml and xl/sharedStrings.xml.

Best Practices

  1. Never load unbounded rows into context: Inspect the shape and headers first (df.info(), df.head(10)).
  2. Formula Integrity: Distinguish calculated values (<v>) from formulas (<f>) when auditing spreadsheet logic.
  3. Data Types: Verify date parsing, floating-point precision, and formatted percentages.
  4. Export Cleanly: When generating Excel reports, include clear column headers and auto-adjusted column widths.

04 同仓库更多 Skills

sridhar-mani
sridhar-mani/npc-code

troubleshoot

Investigate unexpected chat agent behavior by analyzing direct debug logs in JSONL files. Use when users ask why something happened, why a request was slow, why tools or subagents were used or skipped, or why instructions/skills/agents did not load.

★ 2
sridhar-mani
sridhar-mani/npc-code

project-setup-info-local

Comprehensive setup steps to help the user create complete project structures in a VS Code workspace; this tool is designed for full project initialization and scaffolding, not for creating individual files. When to use this tool: user wants to create a new complete project from scratch; setting up entire project frameworks (TypeScript projects, React apps, Node.js servers, etc.); initializing Model Context Protocol (MCP) servers with full structure; creating VS Code extensions with proper scaffolding; setting up Next.js, Vite, or other framework-based projects; user asks for "new project", "create a workspace", "set up a [framework] project"; need to establish a complete development environment with dependencies, config files, and folder structure. When NOT to use this tool: creating single files or small code snippets; adding individual files to existing projects; making modifications to existing codebases; user asks to "create a file" or "add a component"; simple code examples or demonstrations; debugging or fixing existing code. This tool provides complete project setup including: folder structure creation; package.json and dependency management; configuration files (tsconfig, eslint, etc.); initial boilerplate code; development environment setup; build and run instructions. Use other file creation tools for individual files within existing projects.

★ 2
sridhar-mani
sridhar-mani/npc-code

project-setup-info-context7

Comprehensive setup steps to help the user create complete project structures in a VS Code workspace. This tool is designed for full project initialization and scaffolding, not for creating individual files. When to use this tool: when the user wants to create a new complete project from scratch; when setting up entire project frameworks (TypeScript projects, React apps, Node.js servers, etc.); when initializing Model Context Protocol (MCP) servers with full structure; when creating VS Code extensions with proper scaffolding; when setting up Next.js, Vite, or other framework-based projects; when the user asks for "new project", "create a workspace", or "set up a [framework] project"; when you need to establish a complete development environment with dependencies, config files, and folder structure. When NOT to use this tool: when creating single files or small code snippets; when adding individual files to existing projects; when making modifications to existing codebases; when the user asks to "create a file" or "add a component"; for simple code examples or demonstrations; for debugging or fixing existing code. This tool provides complete project setup including folder structure creation, package.json and dependency management, configuration files (tsconfig, eslint, etc.), initial boilerplate code, development environment setup, and build and run instructions. Use other file creation tools for individual files within existing projects.

★ 2
sridhar-mani
sridhar-mani/npc-code

pdf

Read, extract text, extract tables, and summarize PDF documents. Use for examining specifications, reports, papers, and user manuals.

★ 2
sridhar-mani
sridhar-mani/npc-code

open-research

Conduct autonomous multi-source academic, technical, and open-web research using ArXiv, Wikipedia, and web endpoints. Use for architecture investigations, algorithm discovery, literature review, and synthesizing citations into structured research dossiers.

★ 2
sridhar-mani
sridhar-mani/npc-code

install-vscode-extension

How to install a VS Code extension from an extension ID. Useful when the user wants to add new capabilities to their VS Code environment by installing extensions.

★ 2