Borrowing it
Nothing to install: this file belongs to vahiiiid/go-rest-api-boilerplate. 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/vahiiiid/go-rest-api-boilerplate/main/AGENTS.mdgit clone --depth 1 https://github.com/vahiiiid/go-rest-api-boilerplateWrote 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/instructions/vahiiiid/go-rest-api-boilerplate/agents-md)<a href="https://agentmods.dev/instructions/vahiiiid/go-rest-api-boilerplate/agents-md"><img src="https://agentmods.dev/badge/instructions/vahiiiid/go-rest-api-boilerplate/agents-md/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/instructions/vahiiiid/go-rest-api-boilerplate/agents-md"><img src="https://agentmods.dev/badge/instructions/vahiiiid/go-rest-api-boilerplate/agents-md.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.04878 | $0.04878 |
| Opus 5 | $0.02439 | $0.02439 |
| Sonnet 5 | $0.00976 | $0.00976 |
| Haiku 4.5 | $0.00488 | $0.00488 |
Grade A, and why
go-rest-api-boilerplate AGENTS.md scanned grade A with 1 finding 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 9d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
| Health check | `curl localhost:8080/health` | This is a copy
88% identical to go-rest-api-boilerplate copilot-instructions.md โ 889 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.
How it starts
The opening of the file, as written. The whole thing โ 649 lines โ stays where its author put it; the contents beside it link to each section on GitHub.
GRAB - AI-Friendly Development Guide
Version: v2.0.0
Last Updated: 2025-12-10
Purpose: Universal AI assistant guidelines for GRAB (Go REST API Boilerplate)
This file follows the AGENTS.md standard (stewarded by the Agentic AI Foundation) and is compatible with all major AI coding assistants including GitHub Copilot, Cursor, Windsurf, Claude Code, JetBrains AI, and others.
This is the canonical source of truth for GRAB's AI guidelines. Claude Code reads it via
CLAUDE.md's@AGENTS.mdimport; Copilot, Cursor, and Windsurf each keep a condensed, manually-synced adapter. See.agents/AI-CONFIG.mdfor the full file map and the rule for keeping them in sync.
๐ Project Overview
GRAB (Go REST API Boilerplate) is a production-ready Go REST API starter with Clean Architecture, comprehensive testing (89.81% coverage), and Docker-first development workflow.
Technology Stack
- Go: Check version with
go version - Gin: HTTP router framework
- GORM: PostgreSQL ORM
- PostgreSQL: Check version with
make exec-dbthenpsql --version - Docker: Check version with
docker --version - golang-migrate: Database migration tool
- JWT: Authentication with refresh token rotation
- Air: Hot-reload development
- golangci-lint: Code quality enforcement
- Swagger: OpenAPI documentation
Documentation
- Main Docs: https://vahiiiid.github.io/go-rest-api-docs/
- Repository: https://github.com/vahiiiid/go-rest-api-boilerplate
- Issues: https://github.com/vahiiiid/go-rest-api-boilerplate/issues
๐๏ธ Architecture
Clean Architecture Pattern
GRAB strictly follows Clean Architecture with clear layer separation:
Handler (HTTP) โ Service (Business Logic) โ Repository (Database)
Domain Structure:
internal/<domain>/
โโโ model.go # GORM models with database tags
โโโ dto.go # Data Transfer Objects (API contracts)
โโโ repository.go # Database access interface + implementation
โโโ service.go # Business logic interface + implementation
โโโ handler.go # HTTP handlers with Gin + Swagger annotations
โโโ *_test.go # Unit and integration tests
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.
- 9d ago First seen ยท 649 lines ยท 4,878 tokens per session scan A 1f33a2cdcf4f
go-rest-api-boilerplate AGENTS.md is an instructions file published in the GitHub repository vahiiiid/go-rest-api-boilerplate (66 stars, last pushed 22d ago), licensed MIT. It adds 4,878 tokens to every session, about $0.0244 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 88% identical to go-rest-api-boilerplate copilot-instructions.md, differing in 889 lines, and is treated as a copy.
Other instructions, from other repositories
klaussy-agents fastapi.instructions.md
Instructions for steph-dove/klaussy-agents: Example context from fastapi/applications.py (lines 214-220).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.