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.
Mit meinem Agent installieren
Kopieren Sie diese Anfrage in Ihren Agent. Sie enthält die maßgebliche Skill-Seite und das Manifest.
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.Ihr Agent sollte weiterhin seinen Plan anzeigen und alle von der Sicherheitsrichtlinie verlangten Bestätigungen anfordern.
Agent-lesbare Ressourcen
Verwenden Sie diese Links, wenn ein KI-Agent, Crawler oder Skript sauberen Kontext benötigt, statt die vollständige Seite zu lesen.
Testen
„directives“ wird verwendet. Explain the displayed total when price is 12.50, quantity is 3, currency is USD, and locale is en-US.
Erwartetes Ergebnis:
- State resolution supplies the price and quantity.
- Multiplication produces 37.5.
- Currency formatting displays $37.50.
„directives“ wird verwendet. Show pluralized item labels for counts 0, 1, and 3, with the zero label set to no items.
Erwartetes Ergebnis:
- 0: no items
- 1: 1 item
- 3: 3 items
„directives“ wird verwendet. Explain the checkout.submit translation using the documented English and Spanish messages.
Erwartetes Ergebnis:
- English: Place Order
- Spanish: Realizar Pedido
Sicherheitsaudit
SicherAll 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.
Risikofaktoren
⚙️ Externe Befehle (50)
Diesen Bericht teilen & zitieren
Teile den versionierten Bewertungsbericht, das neutrale Badge, die Einbettungskarte und Zitate. Skillstore berichtet Nachweise, ohne zu entscheiden, ob dieser Skill sicher ist.
Berichtslink kopieren
https://skillstore.io/skills/vercel-labs-directives/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown-Badge
[](https://skillstore.io/skills/vercel-labs-directives?utm_source=security_passport_badge)HTML-Badge
<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>Einbettungskarte
<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>Wissenschaftliche Zitate (APA · BibTeX · CFF)
APA-Zitat
vercel-labs. (2026). directives security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/vercel-labs-directives/audits/1BibTeX-Zitat
@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-Score
Warum dieser Score Evidenzvertrauen: MittelWas Sie erstellen können
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.
Diese Prompts ausprobieren
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.
Bewährte Praktiken
- 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.
Vermeiden
- 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.
Häufig gestellte Fragen
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?
Entwicklerdetails
Autor
vercel-labsLizenz
MIT
Skillstore-Revision
r1
Versionshinweis
Der Autor hat keine Version angegeben.
Ref.
bad9dafc37d1638cd29cb9bab06d5f8dbcd0f6c2
Aktualität der Wartung
30.9.2026
Nutzung
0 Downloads · 0 Aufrufe
Dateistruktur
đź“„ SKILL.md