shadcn
Pass
Audited by Gen Agent Trust Hub on Oct 6, 2026
Risk Level: SAFEDYNAMIC_CONTEXT_INJECTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_CONTEXT_INJECTION]: The skill uses the dynamic context injection pattern
!command`` inSKILL.mdto executenpx shadcn@latest info --jsonwhen the skill is loaded. This is used to automatically populate the agent's context with the current project configuration, installed components, and directory paths. - [EXTERNAL_DOWNLOADS]: The skill facilitates the downloading of code and configuration from external registries and arbitrary URLs via the
npx shadcn@latest addcommand. While the skill recommends using the CLI and warns against manual fetching, this functionality inherently involves fetching remote content from potentially untrusted third-party registries or user-provided URLs. - [COMMAND_EXECUTION]: The skill relies on executing shell commands via package runners (
npx,pnpm dlx,bunx) to perform project initialization, component installation, and documentation fetching. These operations are restricted by theallowed-toolsfield in the skill's frontmatter to theshadcn@latestpackage. - [INDIRECT_PROMPT_INJECTION]: The skill has an attack surface for indirect prompt injection as it processes untrusted data from external component registries and the project's local
components.jsonfile. - Ingestion points: Data enters the context through
npx shadcn@latest info,docs, andsearchcommands, as well as by reading files added from registries. - Boundary markers: The skill does not explicitly instruct the agent to use delimiters or ignore instructions embedded in the external content it processes.
- Capability inventory: The skill has the capability to execute shell commands (via
allowed-tools) and write files to the local filesystem. - Sanitization: There is no evidence of sanitization or validation of the content retrieved from external registries before the agent processes or executes it.
Audit Metadata