Skip to content
Agentmart
Submit a tool

go

Go-only facts for a tenant generated with --platform go — module layout and the two mux rules that panic at startup.

Skill by avaropoint

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/avaropoint-go

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Go-only facts for a tenant generated with --platform go — module layout and the two mux rules that panic at startup. Use before editing routing, handlers, or anything under internal/protocol in a Go tenant.

Use cases: writing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/go

What's inside

Skill name
go
Description
Go-only facts for a tenant generated with --platform go — module layout and the two mux rules that panic at startup. Use before editing routing, handlers, or anything under internal/protocol in a Go tenant.
License
MIT
Instructions
47 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Go

`languages/go.md` is the specification. This skill is the two facts that
panic at process start if broken, plus the module layout the generator
already followed.

## Layout

The tenant is **one module**, rooted at the tenant directory. Shared code
lives once in `internal/` and is imported. Packages are named after the
blueprint that specifies them.

There is no `server/` package: the artifact is an *orchestrator*.

## Two rules that panic at startup

`net/http`'s router enforces these at registration time.

**1. No method-less pattern beside a wildcard sibling.**

```go
mux.HandleFunc("/v1/admin/operators/{name}", h)   // wildcard sibling
mux.HandleFunc("/v1/admin/operators", h)          // PANICS: no method
mux.HandleFunc("GET /v1/admin/operators", h)      // correct
```

Always register with an explicit method.

`wrapModelGateway` already serves `GET/PUT /v1/admin/model`,
`GET /v1/admin/model/providers` and `POST /v1/admin/complete`. Do not
register those paths again.

**2. No path literals reach routing.**

Paths come from `protocol.Path*` constants, never from a `"/v1/..."` string
at the call site.

## Before you say it works

```
go build ./... && go vet ./... && gofmt -l .
weblisk server verify
```

`gofmt -l` returning any filename is a failure.

From avaropoint/weblisk-blueprints, MIT.

More from avaropoint/weblisk-blueprints

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Sep 28, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from avaropoint

Cite this page

go skill. Agent Mart. https://agentmart.dev/skills/avaropoint-go (last updated 2026-10-24)