fiber-rest-api

fiber-rest-api is a skill for Claude Code, Codex from makifbaysal/tasktrooper. It costs 47 tokens per session (1,489 once invoked), scanned A, original, Apache-2.0.

A guide to adding HTTP endpoints in Go with Fiber or another Go web router. It keeps handlers focused on reading requests, validating input, calling services and returning responses.

In plain words
What is it for?
Use it when adding or changing routes, request validation, authentication middleware, response mapping or central error handling.
Why use it?
It prevents business logic and inconsistent error handling from accumulating in HTTP handlers, and helps preserve the router and version already used by the repository.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when adding or changing routes, request validation, authentication middleware, response mapping or central error handling.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/makifbaysal/tasktrooper/fiber-rest-api
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add makifbaysal/tasktrooper --skill fiber-rest-api
Clone the repo
git clone --depth 1 https://github.com/makifbaysal/tasktrooper

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for fiber-rest-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/fiber-rest-api/github.svg)](https://agentmods.dev/skills/makifbaysal/tasktrooper/fiber-rest-api)
Your own site
<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/fiber-rest-api"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/fiber-rest-api/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.

agentmods 80×15 button for fiber-rest-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/fiber-rest-api"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/fiber-rest-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,489 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.01489
Opus 5.5 $0.00019 $0.00596
Sonnet 5.5 $0.00009 $0.00298
Haiku 4.5 $0.00005 $0.00149

Measured 8d ago against content hash 768f7dcdcb8e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fiber-rest-api 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 8d 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.

catalog/agents/backend-developer/skills/fiber-rest-api/SKILL.md · 107 lines

How it starts

The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Go HTTP Endpoint Patterns

Overview

A handler is a translator: HTTP in → service call → HTTP out. Business logic never lives there. The recurring defects are fat handlers, per-handler error mapping that drifts, endpoints that quietly drop the auth middleware their neighbors have, and copying a value Fiber is about to reuse.

Core principle: handlers parse, validate, delegate, and map. Nothing else.

Detect the repo's router and framework version first

grep -E 'gofiber/fiber/v[23]|go-chi/chi|labstack/echo|gin-gonic/gin' go.mod

Never change the router or the Fiber major version in a feature task; a repo on Fiber v2 stays v2 (security-fix branch only). A brand-new repo with no router yet gets Fiber v3 (needs Go ≥1.25) unless the task says otherwise.

Fiber v2 → v3

v2 v3
Handler signature func(c *fiber.Ctx) error func(c fiber.Ctx) error
Body c.BodyParser(&req) c.Bind().Body(&req)
Query / params c.QueryParser / c.ParamsParser c.Bind().Query / c.Bind().URI
Struct tag for path params params: uri:
Typed query helper c.QueryInt("limit", 20) fiber.Query[int](c, "limit", 20)
Go-standard request context c.UserContext() c.Context()
Raw fasthttp context c.Context() (returns *fasthttp.RequestCtx) c.RequestCtx()
Request id from context c.Locals("requestid") requestid.FromContext(c)
Static files / sub-app mount app.Static(...) / app.Mount(...) static.New(...) / app.Use(...)

fiber migrate --to v3 exists for a dedicated upgrade task; never fold a framework-major bump into a feature task.

The v2 bug this corrects: on Fiber v2, c.Context() returns the pooled *fasthttp.RequestCtx, not the request-scoped context.Context — passing it where a context.Context is expected either fails to compile or silently drops whatever middleware put into the real context (auth claims, request id, trace span). Use c.UserContext() on v2.

Read the full file on GitHub · 107 lines

Changes

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.

  1. 8d ago First seen · 107 lines · 47 tokens per session scan A 768f7dcdcb8e

Subscribe to this mod's changes

fiber-rest-api is a skill published in the GitHub repository makifbaysal/tasktrooper (113 stars, last pushed yesterday), licensed Apache-2.0. It adds 47 tokens to every session and 1,489 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-05.

Related

Other skills, from other repositories

fastapi

Use when building, reviewing, testing, securing or shipping a FastAPI / async Python service — routers, Pydantic v2 schemas, dependency injection, async SQLAlchemy 2.0, OAuth2/JWT, ASGITransport tests, production wiring. NOT language-level Python or packaging (that is python), NOT engine-level SQL (that is…

ericrisco/rsc-harness · 94 tokens

go

Use when writing, reviewing, testing, or shipping Go code and HTTP services: idioms, %w error wrapping, goroutine/context/errgroup concurrency, net/http 1.22 routing, log/slog, project layout, table-driven tests, Go hardening. NOT language-agnostic threat modeling (that is secure-coding), NOT Dockerfile/CI shipping…

ericrisco/rsc-harness · 86 tokens

go-services

Build and upgrade Go services, workers and CLI applications with context propagation and explicit ownership. Use when implementing Go HTTP/data/concurrency paths; preserve module and deployment constraints and verify race-sensitive behavior deterministically.

WrongStack/WrongStack · 43 tokens

go-add-entity

Add a full CRUD vertical slice (domain, DTO, repository, service, handler, migration, factory wiring) to an existing GOB Go microservice.

JotJunior/cstk · 35 tokens

go-add-consumer

Add a RabbitMQ event consumer to an existing GOB Go microservice.

JotJunior/cstk · 19 tokens

golang-context-patterns

Context usage patterns for Go including cancellation, timeouts, deadlines, and database transactions. Use when handling HTTP requests, database operations, or implementing cancellation and timeout logic.

codeready-toolchain/tarsy · 39 tokens