platform-constrained-handler

platform-constrained-handler is a skill for Claude Code, Codex from clidey/whodb. It costs 26 tokens per session (603 once invoked), scanned A, original, Apache-2.0.

A Go workflow for adding a server HTTP handler that is unavailable on ARM and RISC-V64, while returning a clear unsupported response on those systems.

In plain words
What is it for?
Use it when adding a CE-owned HTTP endpoint that depends on CGO libraries or other bindings missing on ARM or RISC-V64.
Why use it?
It prevents builds from using platform-specific libraries where they cannot work. It also keeps add-on routes out of the core server.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is cd core && go build ./cmd/whodb.

Good fit Use it when adding a CE-owned HTTP endpoint that depends on CGO libraries or other bindings missing on ARM or RISC-V64.

Compare 6 skills from other repositories ↓
About the project

WhoDB is a self-hosted workspace for exploring and managing databases through a browser, desktop app, or terminal interface. Developers and data teams use it to browse and edit data, run queries, inspect table relationships, move data, and optionally ask questions through an AI provider. The catalogue includes add-ons for operating WhoDB and working with its database tools.

clidey/whodb · 5,074 stars · on GitHub · whodb.com

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/clidey/whodb
agentmods
npx agentmods add skills/clidey/whodb/platform-constrained-handler

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 platform-constrained-handler

README.md
[![agentmods](https://agentmods.dev/badge/skills/clidey/whodb/platform-constrained-handler/github.svg)](https://agentmods.dev/skills/clidey/whodb/platform-constrained-handler)
Your own site
<a href="https://agentmods.dev/skills/clidey/whodb/platform-constrained-handler"><img src="https://agentmods.dev/badge/skills/clidey/whodb/platform-constrained-handler/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 platform-constrained-handler

Your own site · 80×15
<a href="https://agentmods.dev/skills/clidey/whodb/platform-constrained-handler"><img src="https://agentmods.dev/badge/skills/clidey/whodb/platform-constrained-handler.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 603 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.00026 $0.00603
Opus 5.5 $0.00010 $0.00241
Sonnet 5.5 $0.00005 $0.00121
Haiku 4.5 $0.00003 $0.00060

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

Security

Grade A, and why

platform-constrained-handler 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 17d 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.

.agents/skills/platform-constrained-handler/SKILL.md · 78 lines

How it starts

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

Add a Platform-Constrained HTTP Handler

Use this only when adding a CE-owned HTTP handler that depends on CGO libraries or platform-specific bindings unavailable on ARM/RISC-V64.

Do not use this workflow for edition or add-on HTTP routes. Add-on routes should be registered by the add-on package with graph.RegisterHTTPRoutes, so CE does not carry add-on route names or unsupported stubs.

Steps

1. Create Main Handler

core/graph/http_<name>_handler.go:

//go:build !arm && !riscv64

package graph

import "net/http"

func Setup<Name>Handler(mux *http.ServeMux) {
    mux.HandleFunc("/api/<name>", handle<Name>)
}

func handle<Name>(w http.ResponseWriter, r *http.Request) {
    // Implementation
}

2. Create Unsupported Stub

core/graph/http_<name>_unsupported.go:

//go:build arm || riscv64

package graph

import "net/http"

func Setup<Name>Handler(mux *http.ServeMux) {
    mux.HandleFunc("/api/<name>", func(w http.ResponseWriter, r *http.Request) {
        http.Error(w, "not supported on this platform", http.StatusNotImplemented)
    })
}

3. Register in SetupHTTPServer

The handler registration call must be in unconditionally-compiled CE code (no build tags):

Setup<Name>Handler(mux)

For add-on routes, register from the add-on package instead:

func init() {
    graph.RegisterHTTPRoutes(func(router chi.Router) {
        router.Post("/api/<name>", handle<Name>)
    })
}

4. Verify

cd core && go build ./cmd/whodb

PR CI does not cross-compile. Check by hand that the stub defines every symbol the tagged file defines. A real arm/riscv64 build needs CGO cross compilers (riscv64-linux-gnu-gcc, arm-linux-gnueabihf-gcc) and the BAML build-tag step from .github/workflows/_build-linux-terminal.yml; with those in place, make server-riscv64 in desktop-ce/ mirrors the release build.

Key Rule

Every file with //go:build !arm && !riscv64 MUST have a matching //go:build arm || riscv64 stub that defines the same symbols. A missing stub first fails in the release job "Build Linux Server Binaries (CE)".

Read the full file on GitHub · 78 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. 17d ago First seen · 78 lines · 26 tokens per session scan A 694c55ef3258

Subscribe to this mod's changes

platform-constrained-handler is a skill published in the GitHub repository clidey/whodb (5,074 stars, last pushed today), licensed Apache-2.0. It adds 26 tokens to every session and 603 once invoked, about $0.0001 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-11-13.

Related

platform-constrained-handler compared with skills from other repositories

platform-constrained-handler next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
platform-constrained-handlerclidey/whodbSkill5.1ktodayApache-2.0A26Claude Code, Codex
golang-graphqlsamber/cc-skills-golangSkill4.0k21d agoMITA77Claude Code
golang-grpcsamber/cc-skills-golangSkill4.0k21d agoMITA72Claude Code
golang-swaggersamber/cc-skills-golangSkill4.0k21d agoMITA146Claude Code
goframe-v2hashgraph-online/awesome-codex-pluginsSkill1.6kyesterdayApache-2.0A40Claude Code, Codex
goericrisco/rsc-harnessSkill6824d agoMITA86Claude Code, Codex
telnyx-numbers-goteam-telnyx/aiSkill230yesterdayMITA23Claude Code