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.
Installer avec mon Agent
Copiez cette demande dans votre Agent. Elle contient la page Skill de référence et le manifeste.
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.Votre Agent doit toujours présenter son plan et demander toute confirmation exigée par la politique de sécurité.
Ressources lisibles par les agents
Utilisez ces liens lorsqu’un Agent IA, un crawler ou un script a besoin d’un contexte propre au lieu de lire toute la page.
Tester
Utilisation de « directives ». Explain the displayed total when price is 12.50, quantity is 3, currency is USD, and locale is en-US.
Résultat attendu:
- State resolution supplies the price and quantity.
- Multiplication produces 37.5.
- Currency formatting displays $37.50.
Utilisation de « directives ». Show pluralized item labels for counts 0, 1, and 3, with the zero label set to no items.
Résultat attendu:
- 0: no items
- 1: 1 item
- 3: 3 items
Utilisation de « directives ». Explain the checkout.submit translation using the documented English and Spanish messages.
Résultat attendu:
- English: Place Order
- Spanish: Realizar Pedido
Audit de sécurité
SûrAll 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.
Facteurs de risque
⚙️ Commandes externes (50)
Partager et citer ce rapport
Partagez le rapport d’évaluation versionné, le badge neutre, la carte intégrable et les citations. Skillstore présente les preuves sans décider si ce Skill est sûr.
Copier le lien du rapport
https://skillstore.io/skills/vercel-labs-directives/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportBadge Markdown
[](https://skillstore.io/skills/vercel-labs-directives?utm_source=security_passport_badge)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>Carte intégrable
<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>Citations académiques (APA · BibTeX · CFF)
Citation APA
vercel-labs. (2026). directives security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/vercel-labs-directives/audits/1Citation 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"
Score Skillstore
Pourquoi ce score Niveau de confiance des preuves: MoyenCe que vous pouvez créer
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.
Essayez ces prompts
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.
Bonnes pratiques
- 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.
Éviter
- 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.
Foire aux questions
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?
Détails du développeur
Auteur
vercel-labsLicence
MIT
Révision Skillstore
r1
Avis de version
L’auteur n’a déclaré aucune version.
Réf
bad9dafc37d1638cd29cb9bab06d5f8dbcd0f6c2
Récence de maintenance
30/09/2026
Utilisation
0 téléchargements · 0 vues
Structure de fichiers
đź“„ SKILL.md