ui-template-apply
Warn
Audited by Gen Agent Trust Hub on Sep 9, 2026
Risk Level: MEDIUMDYNAMIC_CONTEXT_INJECTIONCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_CONTEXT_INJECTION]: The
references/vendor/shadcn/SKILL.mdfile employs dynamic context injection (the!commandsyntax) to executenpx shadcn@latest info --jsonat load time. This command is used to fetch project-specific configuration, framework details, and installed components to populate the agent's context. Whileshadcnis a well-known service, executing commands during skill loading represents a significant privilege that requires user awareness. - [COMMAND_EXECUTION]: The script
runtime/validator_discovery.pyusessubprocess.runto execute Python scripts as part of its internal validation discovery logic. This is used to find and run theshared_validate_design_system.pyvalidator within the local environment. - [DYNAMIC_EXECUTION]: The skill includes logic in
runtime/validator_discovery.pyto dynamically resolve and execute a validation script. While the script path is validated to ensure it contains a specific role marker (DESIGN_SYSTEM_VALIDATOR_ROLE = 'implementation'), this pattern of discovering and executing code at runtime based on environment variables or file system paths is a notable capability. - [INDIRECT_PROMPT_INJECTION]: The skill presents an attack surface for indirect prompt injection as it ingests and processes external design system templates and project configurations.
- Ingestion points: Untrusted data enters the context via external design system manifests (
design-system.yaml), project bindings (binding.yaml), and templates sourced from thecatalog/directory or project-localtemplates/folders. - Boundary markers: The skill enforces a strict, linear 10-phase workflow (Phases 0-9). It uses a dedicated
references/source-blind-boundary.mdfile to instruct the agent to ignore original source code or historical generation artifacts as references, maintaining a clean implementation boundary. - Capability inventory: The skill possesses capabilities for command execution (internal validation scripts and the
shadcnCLI), as well as broad file system access for copying and adopting template files. - Sanitization: Ingested data is strictly validated against a suite of formal JSON schemas located in
runtime/schemas/design-system/v1/. Integrity is enforced through SHA-256 canonical digests for all contract components and generated artifacts, ensuring the agent only acts on verified data.
Audit Metadata