vercel/academy-starters/salt-level-lookup
Claude Code and agent skill by vercel/academy-starters
- vendor
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-lookupSKILL.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
0→none1→light2→classic3→pretzel-shop-grandma
How to apply this
- Reading from the DB: pass the integer through
formatSaltLevel(plan.saltLevel)from@/lib/constantsbefore 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:
Suggested fixes:
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
- SKILL.md in the repositoryCheckingbuilding-agent-plugins/complete/pretzel-onboarding/skills/salt-level-lookup/SKILL.md
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
[](https://verified-skill.com/skills/vercel/academy-starters/salt-level-lookup)