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:
- SDK Documentation: https://dev.sh-agilebot.com/docs/sdk/knowledge/docs.txt
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.txtIf 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.txtUsage Tips
- Clear Requirements: Clearly describe the functionality you want to implement
- Provide Context: Reference relevant documentation and examples
- Stepwise Implementation: Complex features can be generated step by step with AI
Notes
- Code generated by AI needs to be verified and tested
- Ensure code complies with project coding standards
- Code involving robot control must undergo security review