Skip to content
Back to skills

Go Chi

ASecurity

Use when a Go change adds, mounts, moves, or reviews Chi routes, middleware, fallbacks, CORS, or bounded route identity.

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 24, 2026
developmentgonode

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 24, 2026

npx -y skills add Dankosik/go-service-template-rest --skill go-chi --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Go Chi?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Go Chi
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dankosik-go-chi/badge)](https://www.skillsdirectory.com/skills/dankosik-go-chi)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: go-chi
description: "Use when a Go change adds, mounts, moves, or reviews Chi routes, middleware, fallbacks, CORS, or bounded route identity."
metadata:
  invocation: model
  kind: method
---

# Go Chi

A chi server is one **route tree**. Middleware order and scope are observable
semantics.

For a delegated Decision or Review, or when the active artifact requires its
result interface, load the
[shared specialist contract](../../contracts/specialist-contract.md).
Trace every changed route, mount, middleware, fallback, or route label. When
comparing interacting nodes, covering alternate serving paths, or handing off
a Decision or Review, record each affected node as:

`RouteNode{node, owner, parent_scope, before_after_order, handler_boundary, fallback, label_source, proof}`

Include those records in the existing artifact or required result. When
rejecting a proposed node, identify its accepted replacement. A single local
node can keep its position, owner, and order proof in code or the existing task
artifact without a separate record.

Start at `internal/infra/http/router.go`. Follow generated and manual
composition until each affected request reaches an operation handler or the
router fallback. `internal/infra/http/middleware_access_log.go` owns route
identity. No affected node or alternate serving path may remain implicit.

Reject a second router that bypasses the existing hardened or generated path.
Proof names a route-tree walk for topology and an explicit order
oracle: cite the current chain-order proof when order is unchanged, or use a
before/after recorder when order changes. A status-only test proves neither.

Complete when every changed node has one owner and position, no parallel
serving path remains, and the proof fails for the
wrong topology, order, fallback, or label source. Load the [reference
selector](references/index.md) only for the changed node pressure.

Files in this skill

  • SKILL.md1.9 KB
  • references/fallbacks-and-method-policy.md2.2 KB
  • references/index.md1.2 KB
  • references/route-labels.md2.2 KB
  • references/route-tree-and-middleware.md2.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…