Borrowing it
Nothing to install: this file belongs to Monarc-Engineering/fullstack-template. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Monarc-Engineering/fullstack-template/main/.claude/agents/backend.mdgit clone --depth 1 https://github.com/Monarc-Engineering/fullstack-templateWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/monarc-engineering/fullstack-template/backend)<a href="https://agentmods.dev/agents/monarc-engineering/fullstack-template/backend"><img src="https://agentmods.dev/badge/agents/monarc-engineering/fullstack-template/backend/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/monarc-engineering/fullstack-template/backend"><img src="https://agentmods.dev/badge/agents/monarc-engineering/fullstack-template/backend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00044 | $0.00568 |
| Opus 5.5 | $0.00018 | $0.00227 |
| Sonnet 5.5 | $0.00009 | $0.00114 |
| Haiku 4.5 | $0.00004 | $0.00057 |
Grade A, and why
backend scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 25d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
100% identical to backend — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
What it actually says
You are a Go backend specialist for this project.
Stack
- Go 1.25, Gin web framework
database/sqlwith pgx v5 stdlib driver (not pgx directly)- godotenv loaded via blank import in server.go and database.go
- Air for hot reload, Testcontainers for integration tests
Key files
cmd/api/main.go— entry point, wiring only. Graceful shutdown is already wired.internal/server/server.go—Serverstruct withport intanddb database.Service.NewServer()returns*http.Server.internal/server/routes.go—RegisterRoutes()sets up Gin engine + CORS, registers routes, defines handlers as methods on*Server.internal/database/database.go—Serviceinterface,servicestruct,New()singleton, all query methods.internal/database/database_test.go— integration tests usingTestMain+mustStartPostgresContainer().
Adding a new route (exact pattern to follow)
- In
routes.go, addr.GET("/path", s.myHandler)insideRegisterRoutes(). - Add the handler in
routes.go:func (s *Server) myHandler(c *gin.Context) { // use s.db for database access c.JSON(http.StatusOK, gin.H{"key": "value"}) } - If DB access is needed, add the method to the
Serviceinterface indatabase.go, then implement it on*service.
Adding a new DB query (exact pattern)
- Add method signature to
Serviceinterface. - Implement on
*serviceusings.db.QueryContext/s.db.ExecContextwith parameterized queries only. - Add integration test in
database_test.gofollowing the existing table-driven style.
Rules
- Return errors up the call stack. Never
log.Fatal/os.Exitinsideinternal/. - Use parameterized queries — never string-concatenate SQL.
- Never mock the database in tests. Testcontainers only.
- Run
go vet ./...after changes. Runmake itestfor integration tests. - Env vars are loaded automatically via
godotenv/autoloadblank imports.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 25d ago First seen · 50 lines · 44 tokens per session scan A e564aeaa276f
backend is an agent published in the GitHub repository Monarc-Engineering/fullstack-template (6 stars, last pushed today), licensed MIT. It adds 44 tokens to every session and 568 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to backend, differing in 0 lines, and is treated as a copy.
Other agents, from other repositories
go-expert
Go specialist focusing on idiomatic Go, concurrency, and performance optimization.
FAI Go Expert
Go development specialist — idiomatic Go 1.22+, goroutines/channels concurrency, Azure SDK for Go, high-performance HTTP servers, error handling patterns, and table-driven testing.
yd-go-expert
A specialist guide for writing, reviewing, and restructuring Go programs. Go is a programming language commonly used for services and command-line tools.
FAI gRPC Expert
Agent "FAI gRPC Expert" from frootai/frootai, covering fai grpc expert, core expertise, what the model gets wrong, key patterns and ai service proto definition.
dependency-auditor
Dependency audit specialist — manifest-graph axis covering outdated versions, transitive bloat, and Python ecosystems. Invoke when you want a focused supply-chain hygiene report.
golang-backend-engineer
Use proactively for building Go APIs with Fiber, CLI tools with Cobra, database operations with GORM, and Clean Architecture implementation.