SuperAPI AI Directory

go-agent-development

Coding & development

View repository

Updated 10-16 04:39

About this skill

Go Agent development

Applicable scenarios

  • Writing or modifying Go Agent code
  • Handling API communication between the Agent and the backend
  • Implementing task processing, concurrent execution, error recovery, and logging
  • Developing build machine-side auxiliary tools

Inapplicable scenarios

  • Backend Kotlin / Java microservice development
  • Dispatch scheduling strategy design
  • Worker task execution details

Quick guidance

  1. This skill focuses on Go-side development habits and implementation approaches, and does not replace agent-module-architecture 's architectural perspective.
  2. When writing Go Agent code, prioritize stability: error handling, logging, retries, cleanup, and concurrency boundaries must be thought through first.
  3. Processes, tasks, network calls, and goroutine lifecycles should be considered together; do not modify only a local function.
  4. If the issue is the Agent's overall operating form, Ask, upgrade, or host-side链路, look in conjunction at agent-module-architecture。
  5. If the issue is scheduling resource selection, look in conjunction at dispatch-module-architecture。

High-signal rules

  • Go Agent code leans more toward host-side stability and long-running capability
  • Once network calls and background goroutines get out of control, the impact is usually greater than that of business logic errors
  • Logs must help locate problems, not merely leave surface symptoms

Key pitfalls

  • Only changing the happy path, without adding error recovery and resource cleanup
  • Goroutines are easy to start, but exits and exception recovery are not managed
  • Mixing host-side problems with scheduling / Worker problems

Further reading

  • If you are looking at the Agent architecture: also see agent-module-architecture
  • If you are looking at scheduling boundaries: also see dispatch-module-architecture