Skip to content

Commit a46224c

Browse files
feat: 增加 Claude Marketplace 集成 (#207)
* feat: add Claude marketplace support and standard skills directory * 为新增的 json 末尾添加了空行;将 README 文件中手动安装的版本提示信息改为 0.2.14 * refactor: rename .skills to skills and remove .skills directory
1 parent 8ec730d commit a46224c

19 files changed

Lines changed: 87 additions & 30 deletions

File tree

.claude-plugin/marketplace.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "antv-infographic",
3+
"owner": {
4+
"name": "AntV Visualization Team",
5+
"email": "pub_antv@antgroup.com"
6+
},
7+
"metadata": {
8+
"description": "Official AntV Infographic skills marketplace for Claude Code"
9+
},
10+
"plugins": [
11+
{
12+
"name": "antv-infographic-skills",
13+
"source": "./",
14+
"description": "An Infographic Generation and Rendering Framework, bring words to life!",
15+
"version": "0.2.14",
16+
"repository": "https://github.com/antvis/Infographic",
17+
"homepage": "https://infographic.antv.vision/",
18+
"license": "MIT",
19+
"keywords": [
20+
"antv",
21+
"infographic",
22+
"visualization"
23+
]
24+
}
25+
]
26+
}

.claude-plugin/plugin.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "antv-infographic-skills",
3+
"version": "0.2.14",
4+
"description": "An Infographic Generation and Rendering Framework, bring words to life!",
5+
"author": {
6+
"name": "AntV Visualization Team",
7+
"email": "pub_antv@antgroup.com"
8+
},
9+
"homepage": "https://infographic.antv.vision/",
10+
"repository": "https://github.com/antvis/Infographic",
11+
"license": "MIT",
12+
"keywords": [
13+
"antv",
14+
"infographic",
15+
"visualization"
16+
]
17+
}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
- name: 📦 Package skills
1919
run: zip -r ../skills.zip .
20-
working-directory: .skills
20+
working-directory: skills
2121

2222
- name: 🚀 Create release
2323
uses: softprops/action-gh-release@v2

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<a href="https://infographic.antv.vision/gallery">
3535
<img src="https://img.shields.io/badge/Gallery-13C2C2?style=for-the-badge" alt="Gallery" />
3636
</a>
37-
<a href="https://github.com/antvis/Infographic/tree/main/.skills">
37+
<a href="https://github.com/antvis/Infographic/tree/main/skills">
3838
<img src="https://img.shields.io/badge/Skills-FA8C16?style=for-the-badge" alt="Skills" />
3939
</a>
4040
<a href="https://infographic.antv.vision/ai">
@@ -121,12 +121,19 @@ AntV Infographic provides skills to integrate with AI agents:
121121

122122
### Claude Code
123123

124-
> We don't have a Claude marketplace entry yet, so install manually.
124+
> Claude marketplace is now available. You can install from marketplace, or keep using manual install.
125+
126+
```bash
127+
/plugin marketplace add https://github.com/antvis/Infographic.git
128+
/plugin install antv-infographic-skills@antv-infographic
129+
```
130+
131+
Manual install:
125132

126133
```bash
127134
set -e
128135

129-
VERSION=0.2.4 # Replace with the latest tag, e.g. 0.2.4
136+
VERSION=0.2.4 # Replace with the latest tag, e.g. 0.2.14
130137
BASE_URL=https://github.com/antvis/Infographic/releases/download
131138
mkdir -p .claude/skills
132139

@@ -141,8 +148,8 @@ rm -f skills.zip
141148
142149
```codex
143150
# Replace <SKILL> with the skill name, e.g. infographic-creator
144-
# https://github.com/antvis/Infographic/tree/main/.skills/<SKILL>
145-
$skill-installer install https://github.com/antvis/Infographic/tree/main/.skills/infographic-creator
151+
# https://github.com/antvis/Infographic/tree/main/skills/<SKILL>
152+
$skill-installer install https://github.com/antvis/Infographic/tree/main/skills/infographic-creator
146153
```
147154

148155
## 💬 Community & Communication

README.zh-CN.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<a href="https://infographic.antv.vision/gallery">
3535
<img src="https://img.shields.io/badge/%E7%A4%BA%E4%BE%8B-13C2C2?style=for-the-badge" alt="示例" />
3636
</a>
37-
<a href="https://github.com/antvis/Infographic/tree/main/.skills">
37+
<a href="https://github.com/antvis/Infographic/tree/main/skills">
3838
<img src="https://img.shields.io/badge/Skills-FA8C16?style=for-the-badge" alt="Skills" />
3939
</a>
4040
<a href="https://infographic.antv.vision/ai">
@@ -121,12 +121,19 @@ AntV Infographic 提供了多项能力,便于与 AI 大模型集成:
121121

122122
### Claude Code
123123

124-
> 我们暂未提供 claude marketplace,因此需要手动集成。
124+
> 已提供 Claude marketplace,可通过 marketplace 安装,也可继续手动集成。
125+
126+
```bash
127+
/plugin marketplace add https://github.com/antvis/Infographic.git
128+
/plugin install antv-infographic-skills@antv-infographic
129+
```
130+
131+
手动集成:
125132

126133
```bash
127134
set -e
128135

129-
VERSION=0.2.4 # 替换为最新版本号,例如 0.2.4
136+
VERSION=0.2.4 # 替换为最新版本号,例如 0.2.14
130137
BASE_URL=https://github.com/antvis/Infographic/releases/download
131138
mkdir -p .claude/skills
132139

@@ -141,8 +148,8 @@ rm -f skills.zip
141148
142149
```codex
143150
# 将 <SKILL> 替换为需要安装的 skill 名称,例如 infographic-creator
144-
# https://github.com/antvis/Infographic/tree/main/.skills/<SKILL>
145-
$skill-installer install https://github.com/antvis/Infographic/tree/main/.skills/infographic-creator
151+
# https://github.com/antvis/Infographic/tree/main/skills/<SKILL>
152+
$skill-installer install https://github.com/antvis/Infographic/tree/main/skills/infographic-creator
146153
```
147154

148155
## 💬 社区与交流

site/src/components/AIPlayground/Prompt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import rawSkillPrompt from '../../../../.skills/infographic-syntax-creator/references/prompt.md?raw';
1+
import rawSkillPrompt from '../../../../skills/infographic-syntax-creator/references/prompt.md?raw';
22

33
export const SYSTEM_PROMPT = rawSkillPrompt
44
.replace(/^---[\s\S]*?---\s*/, '')

site/src/components/AIPlayground/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ rm -f skills.zip
6666
`,
6767
codexTitle: 'Codex',
6868
codexCommands: `# 将 <SKILL> 替换为需要安装的 skill 名称,例如 infographic-creator
69-
# https://github.com/antvis/Infographic/tree/main/.skills/<SKILL>
70-
$skill-installer install https://github.com/antvis/Infographic/tree/main/.skills/infographic-creator
69+
# https://github.com/antvis/Infographic/tree/main/skills/<SKILL>
70+
$skill-installer install https://github.com/antvis/Infographic/tree/main/skills/infographic-creator
7171
`,
7272
},
7373
preview: {
@@ -153,8 +153,8 @@ unzip -q -o skills.zip -d .claude/skills
153153
rm -f skills.zip`,
154154
codexTitle: 'Codex',
155155
codexCommands: `# Replace <SKILL> with the skill name, e.g. infographic-creator
156-
# https://github.com/antvis/Infographic/tree/main/.skills/<SKILL>
157-
$skill-installer install https://github.com/antvis/Infographic/tree/main/.skills/infographic-creator
156+
# https://github.com/antvis/Infographic/tree/main/skills/<SKILL>
157+
$skill-installer install https://github.com/antvis/Infographic/tree/main/skills/infographic-creator
158158
`,
159159
},
160160
preview: {

site/src/content/learn/custom-items.en.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Data item development also has a certain level of complexity. AntV Infographic p
88

99
Item rules and templates are packaged as a skill. The key files are:
1010

11-
- `.skills/infographic-item-creator/SKILL.md`
12-
- `.skills/infographic-item-creator/references/item-prompt.md`
11+
- `skills/infographic-item-creator/SKILL.md`
12+
- `skills/infographic-item-creator/references/item-prompt.md`
1313

1414
They include the following:
1515

@@ -39,7 +39,7 @@ After generation, the AI will create the item file and update exports. You only
3939
If you prefer to paste the reference yourself, read the skill reference:
4040

4141
```bash
42-
cat .skills/infographic-item-creator/references/item-prompt.md
42+
cat skills/infographic-item-creator/references/item-prompt.md
4343
```
4444

4545
Paste the content into your AI chat, then describe your requirements and generate code.

site/src/content/learn/custom-items.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ title: 自定义数据项
88

99
数据项相关的规则与模板已整理为 skill 的参考文档,位于:
1010

11-
- `.skills/infographic-item-creator/SKILL.md`
12-
- `.skills/infographic-item-creator/references/item-prompt.md`
11+
- `skills/infographic-item-creator/SKILL.md`
12+
- `skills/infographic-item-creator/references/item-prompt.md`
1313

1414
其中包含以下内容:
1515

@@ -39,7 +39,7 @@ title: 自定义数据项
3939
如果你更偏好手动复制提示内容,可以直接读取参考文档:
4040

4141
```bash
42-
cat .skills/infographic-item-creator/references/item-prompt.md
42+
cat skills/infographic-item-creator/references/item-prompt.md
4343
```
4444

4545
将内容粘贴给 AI 后,描述需求并生成代码。

site/src/content/learn/custom-structure.en.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Structure development is relatively complex. AntV Infographic provides reusable
88

99
Structure rules and templates are packaged as a skill. The key files are:
1010

11-
- `.skills/infographic-structure-creator/SKILL.md`
12-
- `.skills/infographic-structure-creator/references/structure-prompt.md`
11+
- `skills/infographic-structure-creator/SKILL.md`
12+
- `skills/infographic-structure-creator/references/structure-prompt.md`
1313

1414
They include the following:
1515

@@ -39,7 +39,7 @@ After generation, the AI will create the structure file and update exports. You
3939
If you prefer to paste the reference yourself, read the skill reference:
4040

4141
```bash
42-
cat .skills/infographic-structure-creator/references/structure-prompt.md
42+
cat skills/infographic-structure-creator/references/structure-prompt.md
4343
```
4444

4545
Paste the content into your AI chat, then describe your requirements and generate code.

0 commit comments

Comments
 (0)