go-fiber

go-fiber is a skill for Claude Code, Codex from kouroshez/coding-os. It costs 103 tokens per session (1,770 once invoked), scanned A, original, Apache-2.0.

Project guidance for building Go web services with Fiber, a Go framework for handling HTTP requests. It covers handlers, middleware, validation, shutdown, and tests.

In plain words
What is it for?
Use it when editing Fiber handlers, middleware, request validation, graceful shutdown code, or tests that exercise the application.
Why use it?
It gives request handling a consistent structure and makes invalid input and runtime errors easier to handle predictably.

Skill for Claude CodeCodex

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

Good fit Use it when editing Fiber handlers, middleware, request validation, graceful shutdown code, or tests that exercise the application.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kouroshez/coding-os/go-fiber
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 kouroshez/coding-os --skill go-fiber
Clone the repo
git clone --depth 1 https://github.com/kouroshez/coding-os

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 go-fiber

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kouroshez/coding-os/go-fiber"><img src="https://agentmods.dev/badge/skills/kouroshez/coding-os/go-fiber.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,770 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.00103 $0.01770
Opus 5.5 $0.00041 $0.00708
Sonnet 5.5 $0.00021 $0.00354
Haiku 4.5 $0.00010 $0.00177

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

Security

Grade A, and why

go-fiber 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 5d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/new_endpoint.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

src/templates/go-fiber/skills/go-fiber/SKILL.md · 204 lines

How it starts

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

REQUIRED BACKGROUND: This skill depends_on: [clean-code, backend-fundamentals]. Both are loaded transitively — clean-code gives universal code quality, backend-fundamentals gives stack-agnostic backend patterns (services/selectors, idempotency, envelopes, N+1, migrations, auth). This skill adds ONLY Fiber-specific layering on top.

Pre-Code Checklist

  • Read docs/engineering/fiber-rules.md — canonical Fiber policy
  • If touching HTTP handlers: read docs/playbooks/fiber-service.md
  • If touching request parsing: read docs/api-contracts/error-format.md
  • Confirm Fiber version in go.mod (v3, Go 1.25+; see references/fiber-v3-patterns.md)
  • go vet ./... clean before editing

Handler Pattern

Every handler has the same signature and lifecycle:

func ListOrders(svc *service.Orders) fiber.Handler {
    return func(c fiber.Ctx) error {
        // 1. Parse + validate
        var q ListQuery
        if err := c.Bind().Query(&q); err != nil {
            return fiber.NewError(fiber.StatusBadRequest, "invalid query")
        }
        if err := validate.Struct(&q); err != nil {
            return fiber.NewError(fiber.StatusUnprocessableEntity, err.Error())
        }

        // 2. Call the service with a context (cancellation propagates)
        orders, err := svc.List(c.Context(), q)
        if err != nil {
            return err  // central error handler renders the envelope
        }

        // 3. Respond
        return c.Status(fiber.StatusOK).JSON(fiber.Map{
            "data": orders,
            "meta": fiber.Map{"count": len(orders)},
        })
    }
}

Rules:

  • No business logic inside the handler. Orchestrate only.
  • No direct DB calls. Handler → service → repository.
  • Always pass c.Context() downstream — never context.Background().

Error Envelope

Central error handler in app.Config{}:

app := fiber.New(fiber.Config{
    ErrorHandler: func(c fiber.Ctx, err error) error {
        code := fiber.StatusInternalServerError
        msg  := "internal error"
        if e, ok := err.(*fiber.Error); ok {
            code = e.Code
            msg  = e.Message
        }
        return c.Status(code).JSON(fiber.Map{
            "error": fiber.Map{
                "code":    statusToSlug(code),
                "message": msg,
                "details": extractDetails(err),
            },
        })
    },
})

Read the full file on GitHub · 204 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago Changed eddc9b4355c4
  2. 2mo ago First seen · 204 lines · 103 tokens per session scan A 5e96051d69c3

Subscribe to this mod's changes

go-fiber is a skill published in the GitHub repository kouroshez/coding-os (7 stars, last pushed yesterday), licensed Apache-2.0. It adds 103 tokens to every session and 1,770 once invoked, about $0.0004 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-09-03.

Related

go-fiber compared with skills from other repositories

go-fiber next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
go-fiberkouroshez/coding-osSkill7yesterdayApache-2.0A103Claude Code, Codex
api-clienteSlider/2dphSkill319d agoMITA0Claude Code, Codex
golang-proJeffallan/claude-skillsSkill13ktodayMITA95Claude Code
platform-constrained-handlerclidey/whodbSkill5.1ktodayApache-2.0A26Claude Code, Codex
golang-graphqlsamber/cc-skills-golangSkill4.0k22d agoMITA77Claude Code
golang-grpcsamber/cc-skills-golangSkill4.0k22d agoMITA72Claude Code
golang-swaggersamber/cc-skills-golangSkill4.0k22d agoMITA146Claude Code