Skip to content

feat: 增加 Claude Marketplace 集成 - #207

Merged
Aarebecca merged 3 commits into
antvis:mainfrom
balabalabalading:feat/claude-marketplace-integration
Feb 25, 2026
Merged

Aarebecca merged 3 commits into
antvis:mainfrom
balabalabalading:feat/claude-marketplace-integration

Conversation

@balabalabalading

Copy link
Copy Markdown
Contributor

变更内容

  1. 新增 Claude Marketplace 相关清单文件:marketplace.json 与 plugin.json。
    使用以下 owner信息:
    "owner": {
    "name": "AntV Visualization Team",
    "email": "pub_antv@antgroup.com"
    },

  2. 更新文档中的 Claude Code 安装说明,新增 Marketplace 安装方式并保留手动兜底方案:
    README.md
    README.zh-CN.md

  3. 在仓库根目录新增标准 skills 目录,内容由现有 .skills 复制而来,同时保留原有 .skills 不变。
    Claude Marketplace/Plugin 的标准结构期望使用项目根目录的 skills 文件夹,但是现有项目中已经将 skills 保存在 /.skills 文件夹中。我不知道这样保存的原因,因此请注意审查这个改动点。

校验结果

  • 已在仓库根目录执行官方校验命令:claude plugin validate .
  • 校验结果:Validation passed。
Copilot AI review requested due to automatic review settings February 16, 2026 04:39
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @balabalabalading, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

此拉取请求旨在通过集成Claude Marketplace来增强AntV Infographic项目,使其技能更易于发现和安装。通过引入必要的配置文件和更新文档,用户现在可以通过Marketplace便捷地安装Infographic技能,同时项目结构也得到了标准化,以更好地支持Claude插件生态系统。

Highlights

  • Claude Marketplace集成: 新增了Claude Marketplace相关的配置文件(marketplace.json和plugin.json),用于集成AntV Infographic技能。
  • 文档更新: 更新了英文和中文的README文档,增加了通过Claude Marketplace安装AntV Infographic技能的说明,并保留了手动安装的备用方案。
  • 技能目录标准化: 创建了项目根目录下的skills文件夹,并将原有的.skills内容复制到新目录,以符合Claude Marketplace/Plugin的标准结构。
Changelog
  • .claude-plugin/marketplace.json
    • 新增了Claude Marketplace的配置,定义了AntV Infographic技能市场。
  • .claude-plugin/plugin.json
    • 新增了Claude插件的配置,描述了AntV Infographic技能。
  • README.md
    • 更新了Claude Code的安装说明,增加了Marketplace安装方式。
  • README.zh-CN.md
    • 更新了Claude Code的中文安装说明,增加了Marketplace安装方式。
  • skills/infographic-creator/SKILL.md
    • 新增了Infographic创建技能的定义和使用规范。
  • skills/infographic-item-creator/SKILL.md
    • 新增了Infographic数据项组件生成技能的定义。
  • skills/infographic-item-creator/references/item-prompt.md
    • 新增了详细的Infographic数据项组件生成规范文档。
  • skills/infographic-structure-creator/SKILL.md
    • 新增了Infographic结构组件生成技能的定义。
  • skills/infographic-structure-creator/references/structure-prompt.md
    • 新增了详细的Infographic结构组件生成规范文档。
  • skills/infographic-syntax-creator/SKILL.md
    • 新增了Infographic语法生成技能的定义。
  • skills/infographic-syntax-creator/references/prompt.md
    • 新增了详细的Infographic语法生成规范文档。
  • skills/infographic-template-updater/SKILL.md
    • 新增了Infographic模板更新技能的定义。
Activity
  • 作者提交了拉取请求,旨在集成Claude Marketplace并标准化技能目录。
  • 作者已在仓库根目录执行了官方校验命令 claude plugin validate .。
  • 校验结果显示 "Validation passed",表明插件配置符合要求。
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

您好,感谢您的贡献!本次 PR 成功地为项目集成了 Claude Marketplace。

主要反馈点如下:

  1. 代码重复:新增的 skills 目录是 /.skills 目录的副本,这会带来维护性问题。建议将内容从 /.skills 迁移到 skills 并删除旧目录,以避免未来更新时出现不一致。
  2. 文件格式:新添加的两个 JSON 配置文件(marketplace.json 和 plugin.json)末尾缺少换行符,建议添加。

整体来看,这是一个很棒的功能增强。请参考具体的代码审查评论进行修改。

Comment on lines +1 to +4
---
name: infographic-creator
description: 基于给定文字内容创建精美信息图。当用户请求创建信息图时使用。
---

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

这个文件以及整个 skills 目录的内容是 /.skills 目录的副本。正如您在 PR 描述中提到的,这是一个值得关注的改动点。代码和文档的重复会带来严重的维护问题:未来对 skill 的任何更新都必须在两个地方同步进行,这很容易出错并导致不一致。

为了保持代码库的健康和可维护性,强烈建议消除这种重复。最佳实践是将 /.skills 的所有内容 迁移 到 skills 目录,然后删除 /.skills。如果项目中有其他地方引用了旧路径,需要一并更新。如果因为某些未知原因必须保留 /.skills,可以考虑使用符号链接来避免内容重复。

Comment thread .claude-plugin/marketplace.json Resolved
Comment thread .claude-plugin/plugin.json Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

本 PR 为仓库增加 Claude Marketplace 集成所需的标准清单文件,并在根目录新增 skills/ 目录以满足 Marketplace/Plugin 的期望结构,同时更新 README 的 Claude Code 安装说明以支持 Marketplace 安装方式并保留手动兜底。

Changes:

  • 新增 .claude-plugin/marketplace.json 与 .claude-plugin/plugin.json,提供 Marketplace/Plugin 元数据。
  • 新增根目录 skills/(从现有 .skills/ 复制)以适配 Claude Marketplace 的标准结构。
  • 更新 README.md 与 README.zh-CN.md,补充 Marketplace 安装命令并保留手动安装兜底。

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
skills/infographic-template-updater/SKILL.md Marketplace 目录下的模板更新工作流说明
skills/infographic-syntax-creator/references/prompt.md 语法生成参考提示词(含模板列表/规则)
skills/infographic-syntax-creator/SKILL.md 语法生成 skill 的简要工作流与硬约束
skills/infographic-structure-creator/references/structure-prompt.md 结构组件生成参考提示词
skills/infographic-structure-creator/SKILL.md 结构组件生成 skill 的简要工作流
skills/infographic-item-creator/references/item-prompt.md Item 组件生成参考提示词
skills/infographic-item-creator/SKILL.md Item 组件生成 skill 的简要工作流
skills/infographic-creator/SKILL.md 信息图生成/渲染 skill(语法与 HTML 渲染流程)
README.md 增加 Claude Marketplace 安装方式说明
README.zh-CN.md 增加 Claude Marketplace 安装方式说明(中文)
.claude-plugin/plugin.json Claude Plugin 元数据(author/homepage/repo 等)
.claude-plugin/marketplace.json Claude Marketplace 清单(owner + plugins 列表)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Output is a single `plain` code block; no extra text.
- First line is `infographic <template-name>`.
- Use two-space indentation; key/value pairs are `key value`; arrays use `-`.
- Compare templates (`compare-*`) must have exactly two root nodes with children.

Copilot AI Feb 16, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里将所有 compare-* 模板都约束为“必须两个根节点且 children 挂载”,这与当前模板集合不符(例如 compare-swot、compare-quadrant-* 都不是二元结构)。建议把约束收窄到 compare-binary-* 与 compare-hierarchy-left-right-*(或直接引用 references/prompt.md 中的更精确规则),避免生成错误语法。

Suggested change
- Compare templates (`compare-*`) must have exactly two root nodes with children.
- Binary compare templates (`compare-binary-*`, `compare-hierarchy-left-right-*`) must have exactly two root nodes with children; other compare templates must follow the structure rules in `references/prompt.md`.
Copilot uses AI. Check for mistakes.
Comment on lines +65 to +71
- `hierarchy-structure` → `items`(每一项对应一个独立层级,每一层级可以包含子项,最多可嵌套 3 层)
- `hierarchy-*` → 单一 `root`(树结构,通过 `children` 嵌套);
- `relation-*` → `nodes` + `relations`;简单关系图可省略 `nodes`,在 relations 中用箭头语法
- `chart-*` → `values`(数值统计,可选 `category`)
- 不确定时再用 `items` 兜底
- `compare-binary-*` / `compare-hierarchy-left-right-*` 二元模板:必须两个根节点,所有对比项挂在这两个根节点的 children
- `hierarchy-*`:使用单一 `root`,通过 `children` 嵌套(不要重复 `root`)

Copilot AI Feb 16, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

本段把 hierarchy-structure 映射为使用 items 字段,但后文示例却在 infographic hierarchy-structure 下使用 root/children。建议统一规则与示例:要么将示例改为 items,要么把该示例模板名改为某个 hierarchy-tree-*(使用 root),并相应调整文字说明。

Suggested change
- `hierarchy-structure` → `items`(每一项对应一个独立层级,每一层级可以包含子项,最多可嵌套 3 层)
- `hierarchy-*` → 单一 `root`(树结构,通过 `children` 嵌套);
- `relation-*` → `nodes` + `relations`;简单关系图可省略 `nodes`,在 relations 中用箭头语法
- `chart-*` → `values`(数值统计,可选 `category`)
- 不确定时再用 `items` 兜底
- `compare-binary-*` / `compare-hierarchy-left-right-*` 二元模板:必须两个根节点,所有对比项挂在这两个根节点的 children
- `hierarchy-*`:使用单一 `root`,通过 `children` 嵌套(不要重复 `root`)
- `hierarchy-structure` → 单一 `root`(树结构,通过 `children` 嵌套,适用于结构型分层)
- `hierarchy-tree-*` / 其他 `hierarchy-*` → 单一 `root`(树结构,通过 `children` 嵌套);
- `relation-*` → `nodes` + `relations`;简单关系图可省略 `nodes`,在 relations 中用箭头语法
- `chart-*` → `values`(数值统计,可选 `category`)
- 不确定时再用 `items` 兜底
- `compare-binary-*` / `compare-hierarchy-left-right-*` 二元模板:必须两个根节点,所有对比项挂在这两个根节点的 children
- `hierarchy-structure` / `hierarchy-tree-*` / 其他 `hierarchy-*`:使用单一 `root`,通过 `children` 嵌套(不要重复 `root`)
Copilot uses AI. Check for mistakes.
- SWOT → `compare-swot`
- 层级结构(树图)→ `hierarchy-tree-*`
- 数据图表 → `chart-*`
- 象限分析 → `quadrant-*`

Copilot AI Feb 16, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里建议使用 quadrant-*,但仓库里 quadrant-* 命名在代码中已标注为兼容/Deprecated(当前主命名为 compare-quadrant-*)。建议将推荐前缀改为 compare-quadrant-*,并在需要时说明旧 quadrant-* 仅用于兼容。

Suggested change
- 象限分析 → `quadrant-*`
- 象限分析 → `compare-quadrant-*`(`quadrant-*` 仅为兼容用法)
Copilot uses AI. Check for mistakes.
Comment thread README.md Resolved
Comment thread README.zh-CN.md Resolved
Comment on lines +47 to +55
- 主数据字段选择(只用一个,避免混用):
- `list-*` → `lists`
- `sequence-*` → `sequences`(可选 `order asc|desc`)
- `compare-*` → `compares`(支持 `children` 分组对比),可包含多个对比项
- `hierarchy-structure` → `items`(每一项对应一个独立层级,每一层级可以包含子项,最多可嵌套 3 层)
- `hierarchy-*` → 单一 `root`(树结构,通过 `children` 嵌套);
- `relation-*` → `nodes` + `relations`;简单关系图可省略 `nodes`,在 relations 中用箭头语法
- `chart-*` → `values`(数值统计,可选 `category`)
- 不确定时再用 `items` 兜底

Copilot AI Feb 16, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里同样将 hierarchy-structure 映射为使用 items 字段,但下方“hierarchy-* 模版”示例却用 infographic hierarchy-structure + root/children。建议统一:将该示例的数据字段改为 items,或把示例模板名改为某个 hierarchy-tree-* 并保留 root。

Copilot uses AI. Check for mistakes.
Comment on lines +17 to +19
- `.skills/infographic-creator/SKILL.md` in the "Available Templates" list.
- `site/src/components/AIPlayground/Prompt.ts` in the template list.
- `.skills/infographic-syntax-creator/references/prompt.md` in the template list.

Copilot AI Feb 16, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

skills 目录是为 Marketplace 的标准结构新增的,但这里的工作流仍只提示去更新 .skills/... 下的清单文件,容易导致后续只维护隐藏目录而让 Marketplace 使用的 skills/... 逐渐漂移。建议把引用路径改为 skills/...(或明确要求同时更新两个目录,并说明哪个是 source of truth)。

Suggested change
- `.skills/infographic-creator/SKILL.md` in the "Available Templates" list.
- `site/src/components/AIPlayground/Prompt.ts` in the template list.
- `.skills/infographic-syntax-creator/references/prompt.md` in the template list.
- `skills/infographic-creator/SKILL.md` in the "Available Templates" list.
- `site/src/components/AIPlayground/Prompt.ts` in the template list.
- `skills/infographic-syntax-creator/references/prompt.md` in the template list.
Copilot uses AI. Check for mistakes.
@balabalabalading

Copy link
Copy Markdown
Contributor Author

Review 中关于 skills 和 /.skills 文件夹重复的问题,等待项目审查员给出明确建议后再考虑修改方案。
Review 中关于 SKILL 文档内容本身的建议,不在本次 PR 范围内,未做修改。

@Aarebecca

Aarebecca commented Feb 25, 2026 •

Copy link
Copy Markdown
Contributor

@balabalabalading 可以直接将 .skills 改为 skills 目录,与主流约定保持一致

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 46.20%. Comparing base (5a1a633) to head (5655ab1).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #207      +/-   ##
==========================================
+ Coverage   46.18%   46.20%   +0.01%     
==========================================
  Files         338      338              
  Lines       27047    27049       +2     
  Branches     2221     2220       -1     
==========================================
+ Hits        12492    12497       +5     
+ Misses      14544    14541       -3     
  Partials       11       11              
Flag Coverage Δ
infographic 46.20% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
@balabalabalading

Copy link
Copy Markdown
Contributor Author

将 .skills 改为了 skills 目录,涉及以下改动点:

改动类型 文件
发布流程 release.yml — working-directory 指向 skills
站点构建 Prompt.ts — import 路径更新
站点组件 index.tsx — 中英文 Codex 命令更新
README README.md、README.zh-CN.md — 徽章链接 + Codex 安装命令更新
Learn 文档 custom-items.md、custom-items.en.md、custom-structure.md、custom-structure.en.md — 文件路径示例更新
技能内部说明 SKILL.md — 工作流引用路径更新
删除 .skills/ 目录(9 个文件)全部删除

@Aarebecca

@Aarebecca
Aarebecca merged commit a46224c into antvis:main Feb 25, 2026
1 check passed
Aarebecca pushed a commit to xxMudCloudxx/Infographic that referenced this pull request Feb 25, 2026
* feat: add Claude marketplace support and standard skills directory

* 为新增的 json 末尾添加了空行;将 README 文件中手动安装的版本提示信息改为 0.2.14

* refactor: rename .skills to skills and remove .skills directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants