directives
Add Formatting and Translations to json-render
JSON-driven interfaces need consistent formatting, calculations, and translated labels. This skill guides directive setup, nested expressions, and custom resolvers for json-render.
Установить с помощью моего Агента
Скопируйте этот запрос в своего Агента. Он содержит каноническую страницу Skill и манифест.
Review the Skillstore skill "directives" from https://skillstore.io/skills/vercel-labs-directives.md and its manifest at https://skillstore.io/api/skills/vercel-labs-directives/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Ваш Агент по-прежнему должен показать план и запросить все подтверждения, требуемые политикой безопасности.
Ресурсы для AI-агентов
Используйте эти ссылки, когда AI-агенту, crawler или script нужен чистый контекст вместо полной страницы.
Протестировать
Использование «directives». Explain the displayed total when price is 12.50, quantity is 3, currency is USD, and locale is en-US.
Ожидаемый результат:
- State resolution supplies the price and quantity.
- Multiplication produces 37.5.
- Currency formatting displays $37.50.
Использование «directives». Show pluralized item labels for counts 0, 1, and 3, with the zero label set to no items.
Ожидаемый результат:
- 0: no items
- 1: 1 item
- 3: 3 items
Использование «directives». Explain the checkout.submit translation using the documented English and Spanish messages.
Ожидаемый результат:
- English: Place Order
- Spanish: Realizar Pedido
Аудит безопасности
БезопасноAll 69 static findings are false positives caused by Markdown backticks around API names and fenced examples. No evidence found of shell execution, credential access, exfiltration, or prompt injection in SKILL.md. This review covers the skill documentation, not the referenced package implementations.
Факторы риска
⚙️ Внешние команды (50)
Поделиться и цитировать этот отчет
Делитесь версионным отчетом об оценке, нейтральным значком, встраиваемой карточкой и цитатами. Skillstore публикует доказательства, не решая, безопасен ли этот Skill.
Копировать ссылку на отчёт
https://skillstore.io/skills/vercel-labs-directives/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportЗначок Markdown
[](https://skillstore.io/skills/vercel-labs-directives?utm_source=security_passport_badge)Значок HTML
<a href="https://skillstore.io/skills/vercel-labs-directives?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/vercel-labs-directives/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Встраиваемая карточка
<iframe src="https://skillstore.io/embed/skills/vercel-labs-directives.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Академические ссылки (APA · BibTeX · CFF)
Цитата APA
vercel-labs. (2026). directives security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/vercel-labs-directives/audits/1Цитата BibTeX
@techreport{vercel-labs-vercel-labs-directives-2026,
author = {vercel-labs},
title = {directives security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/vercel-labs-directives/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "directives security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "vercel-labs"
date-released: "2026-09-29"
url: "https://skillstore.io/skills/vercel-labs-directives/audits/1"
identifiers:
- type: other
value: "skillstore:vercel-labs-directives:audit:1"
description: "Skillstore immutable audit report identifier"
Оценка Skillstore
Почему такая оценка Достоверность доказательств: СреднийЧто вы можете построить
Build formatted cart displays
Compose state values, arithmetic, currency formatting, and item counts for shopping cart interfaces.
Configure translated interface labels
Define translation messages, interpolation parameters, and a fallback locale for json-render specifications.
Extend a shared rendering catalog
Create custom directives and register them consistently across prompt generation and rendering.
Попробуйте эти промпты
Show a $format expression for /cart/total using USD and the en-US locale. Explain the required fields.
Combine /price and /qty using $math, then format the result as USD. Explain the inside-out resolution order.
Configure createI18nDirective with English and Spanish checkout labels, English fallback, and a greeting with a name parameter. Include standardDirectives registration.
Define a $double directive with a Zod schema and resolvePropValue. Register it alongside standardDirectives in catalog.prompt and a React provider.
Лучшие практики
- Pass the same directive array to catalog.prompt and the renderer.
- Use resolvePropValue on nested inputs so custom directives support expression composition.
- Choose custom names beginning with $ and avoid reserved built-in expression keys.
Избегать
- Registering directives for prompt generation while omitting them from the renderer.
- Treating standardDirectives as including configured translation support without adding createI18nDirective.
- Assuming division by zero raises an error when the documented $math behavior returns 0.
Часто задаваемые вопросы
What does standardDirectives include?
How do I enable translations?
Can directives use other directives as inputs?
Which renderers are covered?
Does this skill install the required packages?
Did the audit identify shell execution?
Сведения для разработчиков
Автор
vercel-labsЛицензия
MIT
Ревизия Skillstore
r1
Примечание о версии
Автор не указал версию.
Репозиторий
https://github.com/vercel-labs/json-render/tree/c2600d73908ed505e6d726f5b6f969ba8f597ce7/skills/directivesСсылка
bad9dafc37d1638cd29cb9bab06d5f8dbcd0f6c2
Актуальность поддержки
30.09.2026
Использование
0 загрузок · 0 просмотров
Структура файлов
📄 SKILL.md