shadcn
Pass
Audited by Gen Agent Trust Hub on Sep 8, 2026
Risk Level: SAFEDYNAMIC_CONTEXT_INJECTIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [DYNAMIC_CONTEXT_INJECTION]: The
SKILL.mdfile uses the dynamic context injection syntax (!) to executenpx shadcn@latest info --jsonwhen the skill is loaded. This is a functional use of the platform's features to provide the agent with immediate access to project details like import aliases, framework version, and installed components. - [INDIRECT_PROMPT_INJECTION]: The skill instructs the agent to fetch external content, such as documentation and examples, from URLs generated by the
npx shadcn@latest docscommand. Because this external data is ingested into the agent's context at runtime, it represents an indirect prompt injection surface. The skill includes specific instructions for the agent to review and verify all added files, which acts as a manual verification step. - [COMMAND_EXECUTION]: The primary function of the skill involves executing the
shadcnCLI to manage project files. This includes adding new components and updating existing ones. To minimize the risk of unintended modifications, the instructions mandate the use of preview flags like--dry-run,--diff, and--viewbefore applying changes. - [EXTERNAL_DOWNLOADS]: The skill facilitates the download of registry metadata and component source code from external sources, including the official shadcn registry and public GitHub repositories (
owner/repo/item). These operations are handled via the CLI's registry resolution system and are standard for the framework's operation.
Audit Metadata