Skip to content

AI Coding Support

This document describes how to use AI assistance tools (such as CodeBuddy, Codex, Cursor, etc.) to quickly develop robot plugins.

Preparation

Before using AI coding, you need to prepare the reference documentation:

Tip: If your AI agent cannot read URLs well, download the txt document above to your local project directory and reference the local file path in your prompt.

Example Prompt

Here is a complete example for creating a Python program that reads robot status:

Read the following documentation and write a Python program that reads the robot's current position, coordinate system number, servo status, and other information.

Reference materials:
SDK Documentation: https://dev.sh-agilebot.com/docs/sdk/knowledge/docs.txt

If you rely on local documentation, you can modify it to:

Read the following documentation and write a Python program that reads the robot's current position, coordinate system number, servo status, and other information.

Reference materials:
SDK Documentation: ./docs/sdk_docs.txt

Usage Tips

  1. Clear Requirements: Clearly describe the functionality you want to implement
  2. Provide Context: Reference relevant documentation and examples
  3. Stepwise Implementation: Complex features can be generated step by step with AI

Notes

  1. Code generated by AI needs to be verified and tested
  2. Ensure code complies with project coding standards
  3. Code involving robot control must undergo security review