تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

xpr-structured-data

بواسطة paulgnz

Git & GitHub
—لم يُقيَّم بعد
تقييمك

موجز

CSV parsing, JSON-to-CSV conversion, and SVG chart generation.

الوصف

ما الذي تفعله هذه المهارة

Provides tools for parsing CSV files, converting JSON to CSV, and generating SVG charts. Handles common edge cases like mixed delimiters, quoted fields, and multi-series data. Designed to be combined with other skills in a workflow.

Auto-detects delimiters and handles embedded newlines and quotes without manual pre-processing.

متى تستخدمها

  • Parse a tab-separated export from a database into structured JSON
  • Convert API response data into a CSV file for a client
  • Generate a bar chart from quarterly sales figures
  • Reorder or filter columns when exporting data to CSV
  • Embed a line chart into a PDF report as a base64 image

مثال على سير العمل

الإدخال

User asks: 'Here is a CSV of monthly revenue. Can you chart it and give me a CSV of just the top 5 months?'

الوكيل
  1. 1

    Call parse_csv on the uploaded CSV text to get a JSON array

  2. 2

    Sort the resulting array by revenue value descending

  3. 3

    Slice the top 5 rows

  4. 4

    Call json_to_csv on the top 5 rows to produce output CSV

  5. 5

    Call generate_chart with a bar chart config using the top 5 labels and values

  6. 6

    Return the CSV text and embed the chart using the data_uri in markdown

الإخراج

A filtered CSV of the top 5 months and an embedded bar chart visualization

التثبيت

clawhub install paulgnz/xpr-structured-data

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط