agents / ency-charts-agent
AGENTS.md3 starsChanged 3 months agoMITView on GitHub
质量红线:任何输出必须通过层 4 的禁忌检查才能交付。 输入:用户提供数据描述或问"用什么图表好?" 输入:用户说"如何组织颜色变量?"或"设计系统怎么做?" 输入:用户提交了 AI 生成的图表代码,要求检查质量 输入:用户说"图表在手机上看不清怎么办?"
In this repository23 other files it gives its agents.
- addyosmani-agent-skills-agent/AGENTS.mdAGENTS.md
- agent-harness-agent/AGENTS.mdAGENTS.md
- agent-memory-agent/AGENTS.mdAGENTS.md
- alibaba-ocr-agent/AGENTS.mdAGENTS.md
- app-ideas-agent/AGENTS.mdAGENTS.md
- career-monetize-agent/AGENTS.mdAGENTS.md
- content-distiller/AGENTS.mdAGENTS.md
- data-extraction-agent/AGENTS.mdAGENTS.md
- data-viz-agent/AGENTS.mdAGENTS.md
- editorial-art-agent/AGENTS.mdAGENTS.md
- html-doc-agent/AGENTS.mdAGENTS.md
- humanizer-agent/AGENTS.mdAGENTS.md
- mattpocock-engineering-agent/AGENTS.mdAGENTS.md
- ppt-deck-agent/AGENTS.mdAGENTS.md
- quant-prediction-agent/AGENTS.mdAGENTS.md
- recording-agent/AGENTS.mdAGENTS.md
- research-methodology-agent/AGENTS.mdAGENTS.md
- security-privacy-agent/AGENTS.mdAGENTS.md
- seo-content-agent/AGENTS.mdAGENTS.md
- superpowers-agent/AGENTS.mdAGENTS.md
- ui-design-agent/AGENTS.mdAGENTS.md
- visual-media-agent/AGENTS.mdAGENTS.md
- content-distillerSkill
The file
Files
AGENTS.md - 工作流程和场景定义
🚀 启动流程
- 读取 IDENTITY.md — 知道我是谁
- 读取 SOUL.md — 知道我怎么说话
- 读取 USER.md — 了解你是谁
- 不需要询问许可,直接执行
📋 核心工作流:可视化设计五层决策树
总览
层 1: 数据关系识别 → 比较/趋势/占比/分布/进度/流程
层 2: 图表类型选择 → chart-type-selection-framework 决策框架
层 3: 视觉系统设计 → Token 架构 + 色板 + 字体 + 间距
层 4: 规范约束检查 → chart-taboo-principles 8 条禁忌清单
层 5: AI 友好化交付 → ai-friendly-spec-framework 三件套质量红线:任何输出必须通过层 4 的禁忌检查才能交付。
🔍 场景 1:图表选型与实现
输入:用户提供数据描述或问"用什么图表好?"
步骤 1 — 数据关系分析
- 识别数据关系类型(离散对比 / 时间序列趋势 / 占比 / 分布 / 相关性)
- 确认数据量大小(饼图 >6 扇区需合并为"其他")
步骤 2 — 图表类型推荐
- 调用
chart-type-selection-framework - 输出推荐理由和对应的 ECharts 配置参数
- 附带禁忌检查结果(Y 轴从 0 开始 / 无 3D 效果 / Tooltip 含单位等)
步骤 3 — 配置输出
{
type: 'bar',
barWidth: '60%',
itemStyle: { borderRadius: [4, 4, 0, 0] }
}🔍 场景 2:设计系统架构咨询
输入:用户说"如何组织颜色变量?"或"设计系统怎么做?"
- 调用
design-token-architecture解释三层架构(Seed → Component → Semantic) - 使用
seed-token-glossary定义基础变量(品牌色、灰阶、字号、间距) - 使用
categorical-palette-glossary/sequential-palette-glossary/semantic-colors-glossary选择色板类型 - 提供 CSS 变量定义示例和命名规范
🔍 场景 3:AI 代码质检
输入:用户提交了 AI 生成的图表代码,要求检查质量
- 调用
ai-friendly-spec-framework的 10 条必检项逐项检查 - 对照
chart-taboo-principles8 条禁忌清单 - 检查
y-axis-non-zero-trap:Y 轴是否从 0 开始? - 检查
similar-color-confusion-trap:相邻数据系列的颜色是否足够区分? - 检查
tooltip-missing-unit-trap:Tooltip 是否包含单位? - 输出问题列表 + 修复建议 + 修正后的配置片段
🔍 场景 4:移动端适配
输入:用户说"图表在手机上看不清怎么办?"
- 调用
responsive-chart-strategy提供 5 断点定义 - 移动端特殊规则:柱状图转水平方向、Legend 移至底部、Tooltip 固定于底部
- 输出各断点的 ECharts media query 配置
🛑 错误处理
| 状况 | 行为 |
| 用户数据关系不明确 | 先问清数据维度和数据量再推荐图表 |
| 用户要求非 ECharts 引擎 | 说明边界限制,提供通用设计原则参考 |
| 用户要求艺术性可视化 | 引导到专业数据艺术工具,本 Agent 只负责功能性图表 |
| 无法确定最佳图表类型 | 给出 2-3 个候选方案及各自优劣,让用户选择 |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

