mcpField
S
syncfusion-flutter-excel

syncfusion-flutter-excel

github.com/syncfusionDocuments288 installsUpdated 1w ago
Repository

About syncfusion-flutter-excel

A code-generation skill for Flutter developers using Syncfusion Flutter XlsIO to create, edit, and save `.xlsx` workbooks with Dart. It consults reference files for the project's target platform and does not create or run standalone scripts.

Key features

  1. 01Generate workbook and worksheet code
  2. 02Handle cell formatting, formulas, and data
  3. 03Create charts and insert images
  4. 04Import and export data and CSV
  5. 05Configure protection, validation, and page setup

Use cases

  1. 01Generate Excel examples for a Flutter project
  2. 02Write platform-specific workbook saving code
  3. 03Implement spreadsheet charts, formatting, or protection

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/syncfusion/document-sdk-skills --skill syncfusion-flutter-excel

After installing, type/syncfusion-flutter-excelin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

README.md
references/
cell-data.md
cell-formatting.md
charts-basics.md
charts-types.md
conditional-formatting-advanced.md
conditional-formatting-basics.md
culture.md
data-filtering.md
data-import.md
data-validation.md
formulas.md
hyperlinks.md
images.md
named-ranges.md
number-formats.md
page-setup.md
rows-columns-manipulation.md
security.md
tables.md
workbook.md
worksheet.md

Details

From the project README

Excel Document Processing Using Syncfusion Flutter XlsIO Library

Overview

Create, edit, and save Excel workbooks (.xlsx) using the Syncfusion Flutter XlsIO library. This skill supports generating Dart code snippets for Flutter projects targeting mobile, web, and desktop platforms.

Key Capabilities

  • Create & Edit: Workbooks, worksheets, cells, rows, columns, cell formatting, styles, formulas, named ranges, charts, images, hyperlinks, data validation, conditional formatting
  • Data Management: Import data (lists, typed data, hyperlinks, images), export data, advanced filtering (text, custom, date, dynamic, color filters), freeze panes, show/hide rows/columns
  • Advanced Features: RTL layout for international support, CSV export, template-based operations, data validation rules (text, list, number, date, decimal, custom)
  • Charts & Visualization: Create and configure all chart types (pie, bar, column, line, stacked, 3D, specialized), customize elements (title, legends, labels, positioning)
  • Security: Password protection, worksheet/workbook encryption, cell protection with unlock options
  • Page Setup: Margins, page breaks, print areas, page orientation, headers/footers

Prerequisites

  • Flutter SDK installed
  • Add dependencies to pubspec.yaml:
    dependencies:
      syncfusion_flutter_xlsio: ^33.1.44
      syncfusion_officechart: ^33.1.44
    
  • Use the latest compatible package versions from pub.dev or Syncfusion documentation.
  • Run: flutter pub get
  • Import in Dart code:
    import 'package:syncfusion_flutter_xlsio/xlsio.dart';
    import 'package:syncfusion_officechart/officechart.dart';
    

Quick Start Example

Generate Dart Code

User: "Show me how to create an Excel workbook with multiple sheets" Result: Dart code snippet displayed (no files created)


Mode: Generate Dart Code for the User's Flutter Project

Trigger keywords: "show me how", "how to", "how can I", "how do I", "provide code", "provide an example", "give an example", "demonstrate", "code snippet", "sample code", "example", "sample", "give me", "show me", "main.dart", "example code", "generate code for", "codesnippet".

Workflow:

Step 1 — Detect the Platform and Suggest the Correct Package
  • Inspect the workspace project files (pubspec.yaml, main.dart, etc.) to identify the Flutter platform target (mobile, web, desktop).
  • Tell the user to add syncfusion_flutter_xlsio to their pubspec.yaml before generating any code.
Step 2 — Generate Code from Reference Files Only

Do NOT invent, guess, or suggest any API, class, method, or property not explicitly present in the reference files.

  • Read the relevant references/*.md file(s) for the requested feature
  • Build Dart code strictly from the APIs and snippets found in those files
  • Use the correct save/launch pattern for the target platform:
    • Mobile → getApplicationSupportDirectory() + OpenFile.open()
    • Desktop → getApplicationSupportDirectory() + OpenFile.open()
    • Web → base64 + JavaScript download or web package approach
  • Do not create or run any standalone Dart script

Code References

All snippets are in the references/ folder:

FileContents
references/workbook.mdCreate, save/dispose, async operations, RTL layout, CSV export
references/worksheet.mdCreate, access, tab color, sizing, freeze panes, page setup
references/cell-data.mdAdd text, numbers, dates, and other data types to cells; create hyperlinks
references/hyperlinks.mdAdd URL and mailto hyperlinks
references/named-ranges.mdCreate and use named ranges in formulas
references/data-filtering.mdText, custom, date, dynamic, and color filters
references/cell-formatting.mdCreate styles, apply globally, merge/unmerge cells, built-in styles
references/number-formats.mdNumber, currency, percentage, date, time, accounting, scientific, fraction, text formats
references/rows-columns-manipulation.mdInsert, delete, auto-fit, show/hide rows and columns; set width/height; number formats
references/formulas.mdEnable calculations, apply formulas, access values, nested functions, and 25+ functions (general, logical, text, time, lookup, statistical, math)
references/charts-basics.mdCreate charts, customize elements (title, legends, labels, positioning)
references/charts-types.mdAll chart types (pie, bar, column, line, stacked, markers, 3D, specialized)
references/images.mdInsert, resize, flip, and rotate images (JPEG, PNG) in worksheets
references/security.mdProtect workbooks and worksheets with passwords, unlock cells for editing
references/conditional-formatting-basics.mdCell value, text, date, unique/duplicate, top/bottom, above/below average formatting
references/conditional-formatting-advanced.mdColor scales, icon sets, data bars, custom icons with visual analytics
references/data-import.mdImport lists, typed data, hyperlinks, and images into worksheets
references/data-validation.mdText, time, list, number, decimal, date, and custom formula validation rules
references/tables.mdCreate, style, and manage Excel tables with built-in themes
references/culture.mdCulture/locale settings for dates, times, numbers, and currency formatting
references/page-setup.mdPage setup and print settings (orientation, margins, page breaks, print area)

Rules

  • Do NOT create or run temp scripts — this skill only generates code for user projects (Mode 1)
  • Generate code strictly from reference files — never invent APIs or methods
  • Always include proper imports: import 'package:syncfusion_flutter_xlsio/xlsio.dart'; and import 'package:syncfusion_officechart/officechart.dart';
  • For mobile/desktop apps: Use getApplicationSupportDirectory() + OpenFile.open() for file saving
  • For web apps: Use base64 + JavaScript download or web package approach
  • Always call workbook.dispose() after saving to release memory
  • Save workbooks synchronously using saveSync() or asynchronously using save()
  • Remind users to add syncfusion_flutter_xlsio and syncfusion_officechart to pubspec.yaml before using generated code

Comments

Markdown supported