Skip to content
Back to skills

Shape Bound

ASecurity

release.MaxShapeBytes, the bound Shape.Encode enforces on a bundle shape's canonical JSON, is 512 KiB (was 256 KiB). Use when Go code compares against release.MaxShapeBytes, or a database column that stores a bundle shape carries a size CHECK.

  • 10 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 13, 2026
ai-agentsgodatabase

Security analysis

A100/100

Scanned November 13, 2026

npx -y skills add reliant-labs/forge --skill shape-bound --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Shape Bound?

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

Security grade badge for Shape Bound
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/reliant-labs-shape-bound/badge)](https://www.skillsdirectory.com/skills/reliant-labs-shape-bound)

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: migration-v1.0.0-shape-bound
description: release.MaxShapeBytes, the bound Shape.Encode enforces on a bundle shape's canonical JSON, is 512 KiB (was 256 KiB). Use when Go code compares against release.MaxShapeBytes, or a database column that stores a bundle shape carries a size CHECK.
relevance: migration
---

# The bundle shape bound is 512 KiB

Use when Go code compares against `release.MaxShapeBytes`, or a database column
that stores a bundle shape (`Shape.Encode` output) carries a size CHECK.

### What changed

`release.MaxShapeBytes`, the bound `Shape.Encode` enforces on a shape's
canonical JSON, is 512 KiB (it was 256 KiB). A large env's shape grows with its
object count and was reaching the old bound.

### What to do

Nothing, unless you store shapes. A storing column's size CHECK must admit the
new bound plus jsonb's overhead (about 7% for a shape): `pg_column_size(shape) <
1048576` does; a CHECK sized at 256 KiB refuses shapes `Encode` now accepts.
Widen it with a forward migration before you take this release, and size any
test fixture that proves the column refuses an oversized shape from the column,
not from `MaxShapeBytes`.

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.