Introduction

In model inference and agent development, when working with AntV visualization libraries (such as G2, G6, and L7), developers frequently need to consult official documentation, code examples, and best practices. xby-extract-antv-topic is a DeepSeek Harness (DSH) plugin designed to provide an AntV documentation protocol service. Through intelligent parsing and context retrieval, it helps models accurately understand and handle AntV-related technical requirements.

Plugin Introduction

This plugin is maintained by xby-skill and released under the MIT open-source license. It does not directly generate charts; instead, it acts as an intermediate layer between models and the AntV ecosystem, responsible for preprocessing user requirements and retrieving relevant documentation context, thereby improving the accuracy and efficiency of models when handling visualization tasks.

Core Features

The plugin provides the following core capabilities:

  1. set_xby_apikey
    Sets the API key in the chat. The key is persisted automatically and remains valid after the plugin is restarted.

  2. extract_antv_topic
    AntV intelligent assistant preprocessing tool. It is responsible for intelligently identifying, parsing, and constructing users’ visualization requirements. This tool is the first step for handling AntV technology stack issues. It can detect topics and intent and decompose complex tasks into manageable subtasks.

  3. query_antv_document
    AntV context retrieval assistant. It fetches relevant documentation, code examples, and best practices from official resources, and supports iterative queries for subtasks.

Installation and Enabling

Install it using the official DSH command-line tool:

dsh plugin --profile web add github:xby_skill/xby-extract-antv-topic

Usage Instructions

This plugin is suitable for the following scenarios:

  • Handling any AntV-related queries, involving libraries such as g2, g6, l7, x6, f2, s2, g, ava, and adc.
  • Creating charts, graphs, maps, or other visualization content.
  • Debugging errors, performance issues, or compatibility issues.
  • Understanding concepts or requesting code examples.
  • Implementing new features, modifying styles, refactoring code, or optimizing performance.
  • Exploring official documentation, code examples, design patterns, or advanced features.
  • Handling multi-step tasks that require subtask decomposition.
  • Even basic changes, such as “changing chart colors” or “updating legend position”.

Notes

  • Mandatory Invocation: For any AntV-related query (including simple questions), you must call extract_antv_topic, and it must always be called before the query_antv_document tool.
  • No Exceptions: Regardless of task complexity, as long as the libraries g2, g6, l7, x6, f2, s2, g, ava, or adc are involved, the relevant tools must be called.

Conclusion

xby-extract-antv-topic provides models with structured AntV context support. To learn more or view the source code, visit the GitHub repository.