- Home
- Skills
- Agents & Orchestration
- Golang Developer (agent)
Golang Developer (agent)
Golang Developer (agent): Go concurrency patterns, interfaces, error handling, testing, and module management
$6
Golang Developer (agent)
Example session with this skill installed
Implement a concurrent worker pool in Go for processing a queue of image resize jobs. Include error handling and follow the Laravel Company coding standards.
- Read your context and instructions
- Compiled the golang developer agent
I will implement a concurrent worker pool for image resizing using Go concurrency patterns, ensuring alignment with your project's coding standards.
Implementation Details
package worker
import (
"context"
"fmt"
"sync"
)
// Job represents an image resizing task
type Job struct {
ID string
Path string
Width int
}
// Result carries the outcome of a resize operation
type Result struct {
JobID string
Error error
}
// WorkerPool manages concurrent processing of image jobs
type WorkerPool struct {
workerCount int
jobQueue chan Job
results chan Result
wg sync.WaitGroup
}
func NewWorkerPool(count int) *WorkerPool {
return &WorkerPool{
workerCount: count,
jobQueue: make(chan Job, count*2),
results: make(chan Result, count*2),
}
}
func (p *WorkerPool) Start(ctx context.Context) {
for i := 0; i < p.workerCount; i++ {
p.wg.Add(1)
go p.worker(ctx)
}
}
func (p *WorkerPool) worker(ctx context.Context) {
defer p.wg.Done()
for {
select {
case <-ctx.Done():
return
case job, ok := <-p.jobQueue:
if !ok {
return
}
p.results <- p.process(job)
}
}
}
func (p *WorkerPool) process(job Job) Result {
// Logic for image resizing would go here
if job.Path == "" {
return Result{JobID: job.ID, Error: fmt.Errorf("invalid path")}
}
return Result{JobID: job.ID, Error: nil}
}
Summary
Created a thread-safe worker pool using sync.WaitGroup and channel-based communication.
Assumptions
- The image processing library is already initialized.
- Graceful shutdown is handled via the provided context.
Risks and open questions
- Channel buffer size is set to 2x worker count; high bursts may block producers.
- Memory usage should be monitored if processing very large images concurrently.
Verification
- Run
go test ./worker/...to verify pool lifecycle. - Validate that zero-byte paths return the expected error via the results channel.
Next steps
- Define the specific image processing library (e.g., imaging or bimg) to be used in the
processmethod. - Add a metrics collector to the
WorkerPoolto track throughput.
Connects securely to your tools. The creator never sees your data.
About this skill
Writing Go code that follows idiomatic patterns is difficult, especially when integrating with existing Laravel ecosystems or complex module structures. This skill applies the specialized Laravel Company Golang Developer prompt to ensure your Go services adhere to strict concurrency, error handling, and testing standards.
What it does
- Idiomatic Go Implementation produces code utilizing Go interfaces, concurrency patterns, and proper error handling.
- Module Management handles dependency injection and Go module configuration following project standards.
- Structured Validation lists all assumptions and risks before delivering code to prevent silent failures.
- Cross-Stack Consistency applies Laravel-aligned coding standards when Go services interact with PHP/Laravel backends.
- Automated Testing generates comprehensive tests alongside logic to ensure verifiable results.
How it works
- The agent analyzes your requirements and restates the goal to confirm understanding.
- It identifies missing inputs and explicitly lists assumptions instead of guessing.
- A execution plan is created based on the source prompt's constraints and coding standards.
- The agent generates the Go implementation, checking against security guidelines and architectural principles.
- You receive a structured response including a summary, implementation details, and verification steps.
Frameworks & tools
This skill is designed for Go (Golang) development with specific alignment for projects using Laravel, PHP, and standard Go module structures.
Why this beats prompting it yourself
Generic prompts often produce "Java-style" Go or ignore project-specific Laravel conventions. This skill enforces a specific output contract and workflow that mandates assumption-checking and risk assessment before any code is written.
Use cases
- Implement Go microservices that follow Laravel architectural principles.
- Refactor existing Go functions to use proper interface abstractions.
- Generate concurrent Go routines with safe synchronization and error propagation.
- Scaffold new Go modules with standard directory structures and test suites.
Known limitations
Does not perform destructive filesystem actions or live builds without explicit permission. Requires manual verification of generated test results.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 6 days ago
Permissions
What's inside
Frequently Asked Questions
New in Agents & Orchestration
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.