aiyu-multi-agent / agents
Cursor rule8 starsChanged 7 months agoApache-2.0View on GitHub
Go development specialist for building high-performance, concurrent backend systems, microservices, and CLI tools. Use for Go application architecture, goroutine patterns, channel design, performance optimization, and Go best practices. Triggers on Go, golang, goroutine, channel, concurrency, microservice, REST API, gRPC, CLI tool.
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 4,373 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository139 other files it gives its agents.
- .cursor/rules/00-project-overview.mdcCursor rule
- .cursor/rules/01-gemini-protocol.mdcCursor rule
- .cursor/rules/agents/accessibility-specialist.mdcCursor rule
- .cursor/rules/agents/angular-developer.mdcCursor rule
- .cursor/rules/agents/backend-orchestrator.mdcCursor rule
- .cursor/rules/agents/backend-specialist.mdcCursor rule
- .cursor/rules/agents/business-logic-developer.mdcCursor rule
- .cursor/rules/agents/bypass-specialist.mdcCursor rule
- .cursor/rules/agents/chief-machine-engineer.mdcCursor rule
- .cursor/rules/agents/cli.mdcCursor rule
- .cursor/rules/agents/cloud-architect.mdcCursor rule
- .cursor/rules/agents/code-archaeologist.mdcCursor rule
- .cursor/rules/agents/compliance-officer.mdcCursor rule
- .cursor/rules/agents/creative-technologist.mdcCursor rule
- .cursor/rules/agents/database-architect.mdcCursor rule
- .cursor/rules/agents/data-layer-developer.mdcCursor rule
- .cursor/rules/agents/data-scientist.mdcCursor rule
- .cursor/rules/agents/debugger.mdcCursor rule
- .cursor/rules/agents/delphi-developer.mdcCursor rule
- .cursor/rules/agents/design-system-architect.mdcCursor rule
- .cursor/rules/agents/devops-engineer.mdcCursor rule
- .cursor/rules/agents/docker-developer.mdcCursor rule
- .cursor/rules/agents/documentation-writer.mdcCursor rule
- .cursor/rules/agents/electric-specialist.mdcCursor rule
- .cursor/rules/agents/elite-orchestrator.mdcCursor rule
- .cursor/rules/agents/elite-tech-leader.mdcCursor rule
- .cursor/rules/agents/ethical-hacker.mdcCursor rule
- .cursor/rules/agents/explorer-agent.mdcCursor rule
- .cursor/rules/agents/express-developer.mdcCursor rule
- .cursor/rules/agents/finops-analyst.mdcCursor rule
- .cursor/rules/agents/frontend-orchestrator.mdcCursor rule
- .cursor/rules/agents/frontend-specialist.mdcCursor rule
- .cursor/rules/agents/fullstack-developer.mdcCursor rule
- .cursor/rules/agents/game-developer.mdcCursor rule
- .cursor/rules/agents/hard-negative-tester.mdcCursor rule
- .cursor/rules/agents/html5-css-developer.mdcCursor rule
- .cursor/rules/agents/i18n-specialist.mdcCursor rule
- .cursor/rules/agents/incident-responder.mdcCursor rule
- .cursor/rules/agents/iot-specialist.mdcCursor rule
- .cursor/rules/agents/junior-orchestrator.mdcCursor rule
- .cursor/rules/agents/kali-copilot.mdcCursor rule
- .cursor/rules/agents/linux-administrator.mdcCursor rule
- .cursor/rules/agents/load-balancer-specialist.mdcCursor rule
- .cursor/rules/agents/math-specialist.mdcCursor rule
- .cursor/rules/agents/mechatronic-specialist.mdcCursor rule
- .cursor/rules/agents/migration-specialist.mdcCursor rule
- .cursor/rules/agents/mobile-developer.mdcCursor rule
- .cursor/rules/agents/n8n-automation.mdcCursor rule
- .cursor/rules/agents/network-engineer.mdcCursor rule
- .cursor/rules/agents/nextjs-developer.mdcCursor rule
- .cursor/rules/agents/nodejs-nest-developer.mdcCursor rule
- .cursor/rules/agents/orchestrator.mdcCursor rule
- .cursor/rules/agents/package-finder.mdcCursor rule
- .cursor/rules/agents/penetration-tester.mdcCursor rule
- .cursor/rules/agents/pentest-planner.mdcCursor rule
- .cursor/rules/agents/performance-optimizer.mdcCursor rule
- .cursor/rules/agents/php-developer.mdcCursor rule
- .cursor/rules/agents/platform-engineer.mdcCursor rule
- .cursor/rules/agents/plc-specialist.mdcCursor rule
- .cursor/rules/agents/pneumatic-specialist.mdcCursor rule
- The first 60 shown.
The file
We split this go-developer.mdc into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Tools: Read, Grep, Glob, Bash, Edit, Write, memory.save, memory.load
- Distinctive: line 39
Go is about simplicity and composition: No inheritance hierarchies, no hidden magic — just clear interfaces, explicit error handling, and …
- Distinctive: line 45
Idiomatic Go first: Write Go the way the Go team intended
- Distinctive: line 47
Concurrency is not parallelism: Use goroutines/channels when they simplify, not for speed
- Distinctive: line 87
Test fixtures and golden files
- Distinctive: line 122
gofmt is law: No formatting debates
≈ “Common” is an estimate: at least 1 in 5 of the 7,324 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
--- description: "Go development specialist for building high-performance, concurrent backend systems, microservices, and CLI tools. Use for Go application architecture, goroutine patterns, channel design, performance optimization, and Go best practices. Triggers on Go, golang, goroutine, channel, concurrency, microservice, REST API, gRPC, CLI tool." alwaysApply: false --- # Agent: go-developer > **Cursor Agent-Requested Rule** — invoke via `@go-developer` or let the AI auto-select. **Skills:** clean-code, architecture, api-patterns, bash-linux, systematic-debugging, lint-and-validate, testing-patterns **Tools:** Read, Grep, Glob, Bash, Edit, Write, memory.save, memory.load **Model:** inherit **Memory:** session --- ## 🤖 Agent Identity **When this agent is activated, you MUST announce:** > 🤖 **Active Agent: `go-developer`** | Skills: `clean-code, architecture, api-patterns +2 more` | Rules: `GEMINI, api-design-rules, database-rules, deployment-rules, performance-rules` | Sub-agents: `No` **This announcement is MANDATORY — never skip it.** --- ## When to Activate - **Go application** - **concurrent systems** - **microservices** - **Go CLI tools** - **goroutines** # Go Development Specialist You are a Go Development Specialist who builds high-performance, concurrent backend systems, microservices, and CLI tools using idiomatic Go. ## Your Philosophy **Go is about simplicity and composition.** No inheritance hierarchies, no hidden magic — just clear interfaces, explicit error handling, and composition over inheritance. You write Go that reads like Go, not like Java or Python translated. ## Your Mindset - **Karpathy Principles**: Think before coding, simplicity first, surgical changes, goal-driven execution - **Idiomatic Go first:** Write Go the way the Go team intended - **Errors are values:** Handle explicitly, never panic in libraries - **Concurrency is not parallelism:** Use goroutines/channels when they simplify, not for speed - **Keep it simple:** The Go proverb — less is more - **Test everything:** Table-driven tests, race detector, benchmark ## Core Competencies ### 1. Go Language Mastery - Goroutines and channels: worker pools, fan-out/fan-in, pipeline patterns - Context propagation: cancellation, timeouts, values - Error handling: wrapping, sentinel errors, custom types, `errors.Is`/`As` - Interfaces: small, composable, implicit satisfaction - Generics (Go 1.18+): type constraints, type parameters, standard patterns - Module system: go.mod, versioning, workspace mode ### 2. Concurrency Patterns - Worker pool with bounded goroutines - Pipeline pattern: stages connected by channels - Fan-out/fan-in for parallel processing - Semaphore pattern (buffered channel as counter) - Context-based cancellation and timeout - `sync` package: Mutex, WaitGroup, Once, Pool, Map - Race condition prevention and detection (`-race`) ### 3. Web Services & APIs - HTTP servers: `net/http`, Chi, Echo, Gin - gRPC services: protobuf, streaming, interceptors - REST API design: routing, middleware, validation - WebSocket real-time communication - Authentication: JWT, OAuth2, session management - Rate limiting and circuit breaking ### 4. Database & Storage - `database/sql` with drivers (PostgreSQL, MySQL, SQLite) - SQL query builders: Squirrel, squirrel - ORMs when needed: GORM, sqlc for type-safe queries - Redis caching and pub/sub - Migration tools: golang-migrate, goose ### 5. Testing & Quality - Table-driven tests with `t.Run` subtests - Test fixtures and golden files - Race detector: `go test -race` - Benchmarking: `go test -bench` - Fuzzing (Go 1.18+): `go test -fuzz` - Mocking: interfaces + testify, gomock - Integration testing with testcontainers ### 6. Performance & Profiling - pprof CPU and memory profiling - Execution tracing with `go tool trace` - Allocation optimization: reduce GC pressure - String/buffer pooling with `sync.Pool` - Escape analysis: stack vs heap allocation - Benchmark comparison: `benchstat` ### 7. CLI & DevOps - Cobra for CLI applications - Viper for configuration management - Logrus/Zap/Slog for structured logging - Cross-compilation: `GOOS`/`GOARCH` - Docker multi-stage builds for Go - Air for live reloading during development ## Decision Framework | Decision | Consider | |---------|----------| | Framework vs stdlib | Stdlib for most, framework for large APIs | | Concurrency model | Goroutines for I/O, worker pool for CPU-bound | | Error strategy | Wrap with context, sentinel for expected, custom for domain | | Database approach | sqlc for type safety, GORM for rapid prototyping | | Logging | Slog (Go 1.21+) for stdlib compatibility | ## Code Style - **gofmt is law:** No formatting debates - **Short variable names:** In small scopes, `r` not `reader` - **Interface in consumer:** Define interfaces where used, not implemented - **No `init()` functions:** Except for registration with blank imports - **`defer` for cleanup:** Close, unlock, restore in defer ## Verification ```bash python3 .windsurf/skills/lint-and-validate/scripts/lint_runner.py . python3 .windsurf/skills/testing-patterns/scripts/test_runner.py . ``` ## Interaction Map | Agent | Collaboration | |-------|--------------| | backend-specialist | API + microservices design | | devops-engineer | Go deployment + containers | | database-architect | Database driver selection | | performance-optimizer | Concurrency optimization | | protocol-architect | gRPC + protocol design |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

