Plant Identification: Calling the Little Sheep Plant Identification API via Image URLs or Base64 in an Agent

Introduction

Performing plant identification in conversational Agents usually involves letting users upload images for the model to “visually inspect” the scientific name, or writing an HTTP client to connect to a recognition service. The former lacks verifiable data sources, while the latter requires integrating key management, parameter agreements, and return structures into the Agent workflow. “Plant Recognition” on SkillHub (identifier @org-rn88lg3j/xby-plant-recognition) condenses these steps into a SKILL.md and Python tool scripts: the Agent selects the tool and sends the image according to the documentation, returning structured results via the Xiaobenyang MCP interface.

The following introduces the positioning, capability boundaries, and installation and usage methods of this Skill.

What is this

“Plant Recognition” is an enterprise-source Skill released by Xiaobenyang Technology. The current version is 1.0.0, and it is classified as education on SkillHub. One-sentence capability: Identify the name based on a plant image, or provide information such as family, genus, species, or subspecies.

Official page: https://www.skillhub.cn/skills/org-rn88lg3j/xby-plant-recognition
API resource address: https://api.skillhub.cn/org-rn88lg3j/xby-plant-recognition

SkillHub metadata indicates that an API key must be configured (requires_api_key=true); the package’s SKILL.md also requires configuring XBY_APIKEY and forbids fabricating recognition results when a key is missing.

Core Features

Verified capabilities all come from the SKILL.md and scripts/tools.py within the Skill package:

  1. Image URL Recognition: Call scripts.tools.plant_recognition, required parameter dataUrl (image file link address).
  2. Image Base64 Recognition: Call scripts.tools.plant_recognition_for_data_base64, required parameter dataBase64 (Base64 encoding of the image file).
  3. Unified Return Structure: The tool returns a dict containing success, message, and raw (original API JSON). The documentation requires the Agent to organize the raw data before presenting it to the user.
  4. Routing Workflow: The Large Language Model (LLM) is responsible for understanding intent, selecting tools, and completing parameters; the Python layer requests Xiaobenyang MCP via scripts.call_api (default base_url is https://mcp.xiaobenyang.com).

Installation and Activation

Install SkillHub CLI

If not yet installed, follow the official installation instructions:

command -v skillhub && skillhub --version

To install when not installed:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

For full details, see: https://skillhub.cn/install/skillhub.md

Install this Skill

When installing, you must use --dir to point to the current Agent’s skills directory; otherwise, the default path of ./skills/ may not be recognized. The identifier provided on the official page is @org-rn88lg3j/xby-plant-recognition, and the CLI command is:

skillhub install xby-plant-recognition --namespace org-rn88lg3j --dir <你的 Agent skills 目录>

Common directory examples (from SkillHub installation documentation):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ in the project

After installation, restart or refresh the skills directory as required by the Agent you are using.

Configure API Key

This Skill requires a key to be configured:

  • XBY_APIKEY in environment variables or the project root .env
  • Key acquisition entry: https://xiaobenyang.com (see SKILL.md in the package)
  • When a key is missing for the first time, the documentation requires the Agent to ask the user for the key and call scripts.config.set_api_key(api_key) to persist it to .env

The Skill depends on Python packages (see requirements.txt in the package); dependencies should be installed in environments where scripts.tools needs to be called directly.

Typical Usage

The workflow defined in SKILL.md can be summarized as:

  1. Check if scripts.config.settings.api_key is empty; if so, ask the user and set_api_key.
  2. Select the tool based on whether the user provides an image link or Base64.
  3. Call the corresponding function using keyword arguments.
  4. Read result["raw"], organize it, and reply.

Image URL:

from scripts.tools import plant_recognition

result = plant_recognition(dataUrl="https://example.com/plant.jpg")
# result["success"], result["message"], result["raw"]

Image Base64:

from scripts.tools import plant_recognition_for_data_base64

result = plant_recognition_for_data_base64(dataBase64="<base64 字符串>")

In environments like Cursor, users typically only need to describe their requirements in natural language and attach an image or link; after enabling the Skill, the Agent should select the tool according to the rules above, rather than searching for or guessing the species name on its own when a key is missing.

Suitable Scenarios and Notes

Suitable for:

  • Scenarios such as education, popular science, and outdoor observation that require plant identification with connectable backend APIs in conversations.
  • Teams or individuals who already hold a Xiaobenyang API key and wish to integrate recognition capabilities into the Agent toolchain.

Limitations and Notes:

  1. A Xiaobenyang API key is required; when a key is missing, the Skill explicitly requires that no fabricated data be provided.
  2. Choose one of the two input methods: a publicly accessible dataUrl, or a complete dataBase64; if a parameter is missing, the user should be asked for clarification.
  3. The source is enterprise, and the review and update pace may differ from pure community Skills; the version is based on SkillHub and version: 1.0.0 in the package.
  4. SkillHub statistics show this Skill has a score of 100,000 and has been downloaded approximately 704 times (data at the time of scraping); installation counts are subject to the platform display.

Conclusion

“Plant Recognition” turns “upload image -> call API -> parse raw” into an executable specification for Agents, suitable for performing genus-species level image identification in environments like Cursor, Claude Code, and Codex, provided XBY_APIKEY is configured.

  • SkillHub page: https://www.skillhub.cn/skills/org-rn88lg3j/xby-plant-recognition
  • API address: https://api.skillhub.cn/org-rn88lg3j/xby-plant-recognition
  • Installation instructions: https://skillhub.cn/install/skillhub.md
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye