vercel/academy-starters/salt-level-lookup

Claude Code and agent skill by vercel/academy-starters

Trust tier 4
  • vendor
Source check pending

Checking that the SKILL.md file is still in the repository.

Explains the salt_level lookup pattern for Pretzel Logic BoxPlans. Use when the user references salt levels, saltLevel, or you see integers 0-3 used as salt values in pretzel-logic code.

Install

npx vskill@latest install vercel/academy-starters/salt-level-lookup

SKILL.md

The same SKILL.md was published earlier as vercel/academy-starters/salt-level-lookup.

Salt level lookup

The Pretzel Logic database stores salt_level as an integer (0 through 3, enforced by a CHECK constraint). The human-readable names live in lib/constants.ts.

The mapping

ts
SALT_LEVEL_NAMES = ['none', 'light', 'classic', 'pretzel-shop-grandma']
  • 0 → none
  • 1 → light
  • 2 → classic
  • 3 → pretzel-shop-grandma

How to apply this

  • Reading from the DB: pass the integer through formatSaltLevel(plan.saltLevel) from @/lib/constants before showing it to a human.
  • Writing user-facing UI: never hardcode a string like "classic" or compare to a magic number like === 2. Always go through the lookup.
  • In schemas, queries, and migrations: integers are fine, that's the canonical storage form.

Anti-patterns to flag

If you see code like the following, point it out and suggest using the lookup:

ts
{plan.saltLevel === 2 && <Badge>Most popular</Badge>} // bad, magic number
const display = plan.saltLevel === 3 ? "Grandma" : ... // bad, hardcoded mapping
<span>classic</span> // bad, string literal

Suggested fixes:

ts
{formatSaltLevel(plan.saltLevel) === "classic" && <Badge>Most popular</Badge>}
const display = formatSaltLevel(plan.saltLevel);
<span>{formatSaltLevel(plan.saltLevel)}</span>

There is at least one known stale occurrence in app/plans/[slug]/page.tsx. A TODO comment in that file is the breadcrumb.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 27 Nov 2026.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
Repository forks
1
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill CERTIFIED badge
[![vskill CERTIFIED](https://verified-skill.com/api/v1/skills/vercel/academy-starters/salt-level-lookup/badge)](https://verified-skill.com/skills/vercel/academy-starters/salt-level-lookup)

Something wrong with this skill or its page? Tell us.