Skills Plugins MCP Prompt Model 博客 我的中心

charts

Generate inline chart images (PNG) for embedding in chat responses. Use this skill when you need to create bar, line, or area charts for data visualization in chat.

DeepseekModel 官方收录技能 质量 优秀 · 90 v1.0.0

获取

https://deepseekmodel.com/api/download.php?id=builderio-agent-native-templates-analytics-builder-skills-charts-skill-md&format=skill
下载 .skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name charts description Generate inline chart images (PNG) for embedding in chat responses. Use this skill when you need to create bar, line, or area charts for data visualization in chat. Chart Generation How It Works Charts are generated server-side as PNG images using chartjs-node-canvas (Chart.js) and served via /api/media/ . The generate-chart script renders charts and returns a fully qualified URL for embedding in chat markdown. Script Usage pnpm action generate-chart -- type =bar --title= "Title" --labels= '["A","B","C"]' --data= '[1,2,3]' --color= "#18B4F4" Parameters Param Values Default --type bar , line , area bar --title Chart title (keep SHORT) required --subtitle Optional subtitle — avoid unless needed — --labels JSON array of x-axis labels required --data JSON array of numbers, OR array of {label, data, color} for multi-series required --color Primary hex color #18B4F4 --theme dark , light auto from media/theme.json --stacked true for stacked bars false --filename Output filename (no ext) auto from title --width / --height Image dimensions 800x400 Output { filename, url, width, height } — the url is fully qualified with cache buster. Color Palette Color Hex Use Blue #18B4F4 Default/primary for all charts Purple #8b5cf6 Secondary Green #22c55e Tertiary Amber #f59e0b Indigo #6366f1 Red #ef4444 Teal #14b8a6 Orange #f97316 Style Preferences (from Steve) Minimal text on chart — short title only, no subtitle Stats and context in chat text around the chart, not on the image Large fonts: title 22px, axis 13px Few axis labels: maxTicksLimit 8 on x-axis, 5 on y-axis No rotated labels (maxRotation: 0) Good pattern: **Example Corp Product Usage — Last 30 Days** ![ chart ]( https://...your-app.example.com/api/media/chart.png?v=123 ) **528 messages** over 18 active days | Peak: **89** (Feb 14) QuickChart Inline Styling (for non-script charts) When using QuickChart ( https://quickchart.io/chart/create ) with Chart.js v2: Background: #09090b (zinc-950) Grid: horizontal only, dashed [3,3] , color #27272a Axis ticks: #52525b , 11px Title: #fafafa , 16px bold Legend: #a1a1aa , 11px Default bar/line color: #18B4F4 (primary blue) Tooltips: bg #09090b , border #27272a , text #fafafa Multi-Series & Stacked Charts Use --stacked=true flag Pass data as --data='[{"label":"User A","data":[...],"color":"#..."}]' Script sets stack: "stack1" on all datasets Key Gotchas Relative paths do NOT work — chat UI is on a different origin. Always use the fully qualified URL from script output (uses APP_ORIGIN ) Cache busting ( ?v=<timestamp> ) auto-appended chartjs-node-canvas depends on canvas native module — pnpm.onlyBuiltDependencies must include "canvas" . If not built, run pnpm rebuild canvas Theme auto-detected from media/theme.json (set by the sidebar toggle via the set-theme action)
Agent 识别该技能的关键词,点击任意一个即可复制。

该技能未提供触发词。

下载的 .skill 包内含以下字段。
字段 说明
format格式标识(skill/v1)
skill_id技能唯一 ID
name技能名称
version版本号
description技能描述
category所属分类(数组)
trigger_words触发词列表
tags标签列表
source来源标识
source_url来源链接(本页地址)
exported_at导出时间(每次下载生成)
system_prompt系统提示词正文
model_config模型参数:provider / model / temperature / max_tokens / top_p
examples示例
install_guide各平台导入说明(Coze / Dify / Claude / 自定义框架)
同一份技能可按不同平台格式导出。
.skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用 下载
.skillpro 增强格式,额外含脚本 / 工具 / 依赖 / 钩子占位 下载
.json 纯 JSON 导出,只含 system_prompt 与模型参数 下载
Coze 带 frontmatter 的 Markdown,Coze 平台导入用 下载
Dify Dify DSL,创建应用后直接导入 下载

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

验证码 --

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。