Directives
Pre-built custom directives for json-render — formatting, math, string manipulation, and i18n. Use when working with @json-render/directives, defining custom directives with defineDirective, or adding $format, $math, $concat, $count, $truncate, $pluralize, $join, or $t to specs.
- Type
- Skill
- Author
- vercel-labs
- Category
- Frontend
- GitHub stars
- 18.8K
- Installs
- 8.0K
- Last updated
- November 2, 2026
Install
npx skills add https://github.com/vercel-labs/json-render --skill directivesUse cases
- Add $format, $math, or $t to a json-render spec.
- Define a custom directive with defineDirective for your own formatting needs.
- Use $pluralize, $join, or $truncate for string manipulation in specs.
Frequently Asked Questions
Which built-in directives does this skill cover?
It covers $format, $math, $concat, $count, $truncate, $pluralize, $join, and $t.
Can I write my own directives?
Yes, the skill covers defining custom directives with defineDirective.
Which package do these directives come from?
They ship as part of @json-render/directives.
About this skill
Ships pre-built custom directives for json-render covering formatting, math, string manipulation, and i18n. It documents built-ins like $format, $math, $concat, $count, $truncate, $pluralize, $join, and $t, and how to define your own with defineDirective. Use it when building or extending a json-render spec.
Summary written with AI assistance from the project's public description.
Categories
More from vercel-labs
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Agent Browser
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking button...
by vercel-labs
Vercel React Best Practices
React and Next.js performance optimization across 70 rules prioritized by impact.
by vercel-labs
Web Design Guidelines
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "c...
by vercel-labs
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh