chart-rendering
ما الذي تفعله
تختار هذه المهارة نوع المخطط المناسب للسؤال، وترسمه كصورة بعنوان واضح وتسميات. وهي للأشخاص الذين يريدون صورة للتحليل بدلًا من جدول طويل.
متى تستخدمها
- ✓عندما تطلب مخططًا أو رسمًا بيانيًا لمجموعة أرقام.
- ✓عندما تحتوي النتيجة على صفوف كثيرة ويكون عرضها كصورة أسهل.
- ✓عندما تريد أن ترى كيف تتغير قيمة مع الوقت.
رابط المهارة
https://github.com/agentscope-ai/agentscope-java/blob/main/agentscope-examples/agents/agentscope-dataagent/src/main/resources/shared/agents/data-agent/skills/chart-rendering/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“ارسم لي عدد المشتركين الجدد كل شهر خلال السنة الماضية في مخطط خطي بعنوان واضح ومحاور مسماة.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تطابق هذه المهارة السؤال أولًا مع نوع المخطط، مثل الخطي لتغير القيم عبر الزمن أو العمودي لمقارنة الفئات. ثم تكتب نصًا قصيرًا يرسم المخطط ويحفظ الصورة والنص معًا.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Chart Rendering Skill
Repeatable SOP for turning a result set into a chart that actually communicates the point.
Steps
Match chart type to question. Decide before drawing:
Question shape Chart "How does X change over time?" Line (single series) or multi-line "Composition / share of total" Stacked bar, or 100% stacked area "Comparison across a small set of categories" Bar (horizontal if labels are long) "Relationship between two numeric variables" Scatter "Distribution of a single variable" Histogram or box plot "Cumulative total" Area If none fit, ask the user which view they want — do not default to "any chart will do".
Prepare the data. The query result from the [[sql-analysis]] Skill should already be tidy (one row per data point, one column per dimension). If not, reshape first using pandas (
pivot,melt,groupby). Save the cleaned frame toknowledge/cache/<topic>.csvso it can be re-rendered.Render with matplotlib. Write the script to a file under
scratch/charts/<topic>.pyand execute it viashell_run. Conventions:- Title — one sentence answering the question (not "Untitled chart").
- Axes — label both, include units (
Active users (count),Date (UTC)). - Legend — include only if there is more than one series.
- Colours — use the matplotlib default palette unless the user has a
stated brand colour in
knowledge/style.md. - Output — save as PNG (
bbox_inches='tight',dpi=150) underknowledge/charts/<topic>.png.
Show and explain. In the assistant reply, link the saved image with a markdown image embed (
) and write 2–3 sentences interpreting it — what the chart shows, the one thing the user should take away, and any caveat (incomplete latest data point, outliers excluded, etc.).Keep the script reproducible. The chart file is the artefact; the script under
scratch/charts/<topic>.pyis the source of truth. If the user asks for a tweak ("can we use a log y-axis?"), edit the script and re-run — do not regenerate from scratch.
Anti-patterns
- ❌ Pie charts with > 5 slices.
- ❌ Charting raw counts when proportions are what the user actually asked.
- ❌ A chart whose axes have no labels or unit.
- ❌ Embedding the image without 2 sentences of interpretation.
When to delegate
If the user wants a multi-chart dashboard with narrative around it (e.g. "build
me a weekly product health deck"), spawn the report-writer sub-agent —
this Skill is for individual charts.
الأسئلة الشائعة
ما أنواع المخططات التي تستخدمها؟
تستطيع استخدام الخطي والعمودي المكدس والعمودي والنقطي والهستوغرام والصندوقي والمساحي، حسب السؤال.
ماذا أحصل عليه في النهاية؟
تحصل على ملف صورة والنص الذي أنشأه.
ماذا لو لم يناسب أي نوع من المخططات؟
تسألك المهارة عن الشكل الذي تريده بدلًا من التخمين.
التفاصيل
الوصف الأصلي من المؤلف
Visualise the result of an analysis as a chart (line, bar, area, scatter, etc.). Use when the user asks to "plot...", "chart...", "show me the trend of...", "visualise...", or when a numerical result has more than ~10 rows and would be easier to read as a picture. Produces an image file plus the script that generated it.
الشعبية
- نجوم GitHub
- 6.2k
- الترتيب
- #14390
- الترخيص
- Apache-2.0
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
agentscope-java
6.2kيساعد وكيلك على كتابة كود Java غير محجوب للوكلاء باستخدام AgentScope، وهو إطار متعدد الوكلاء مبني على Project Reactor.
data-report
6.2kيساعد وكيلك على تلخيص مجموعة بيانات في تقرير يتضمن المتوسطات والمجاميع والمدى والاتجاهات، ويحفظه كملف Markdown.
data-transform
6.2kيساعد وكيلك على تحويل ملف بيانات بين صيغ مثل CSV وJSON، حتى تصبح البيانات قابلة للاستخدام في أدوات أخرى.
git-changelog
6.2kيساعد وكيلك على كتابة سجل التغييرات أو ملاحظات الإصدار من تاريخ Git، مرتبة في ميزات وإصلاحات وتغييرات أخرى.
مهارات مشابهة
gitcrawl
394kيتيح لوكيلك البحث في أرشيف محفوظ لمشكلات GitHub وطلبات السحب، وتجميع المكرر منها، والتحقق من حالتها الحالية على GitHub.
slacrawl
394kيتيح لوكيلك البحث في رسائل Slack داخل أرشيف محلي وعدّها، والتحقق من مدى حداثة الأرشيف، وتحديثه عند الحاجة.
goplaces
394kيساعد وكيلك على البحث عن الأماكن وعرض تفاصيلها وتقييماتها وتحديد أسمائها عبر Google Places، مع مخرجات JSON للسكربتات.