shadcn-detection
Pass
Audited by Gen Agent Trust Hub on Sep 29, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill ingests data from external project files (such as package.json, components.json, and lockfiles) to determine the choice of command runner and UI primitive.
- Ingestion points:
package.json,components.json,src/,components/,app/, and lockfiles (bun.lockb,pnpm-lock.yaml,yarn.lock,package-lock.json). - Boundary markers: None present; the agent is not instructed to disregard instructions potentially embedded in these source files.
- Capability inventory: The skill has access to
Read,Glob,Grep, andBashtools. - Sanitization: The instructions do not specify any validation or sanitization of the values extracted from the project files before they are used to construct shell commands.
- [REMOTE_CODE_EXECUTION]: The workflow suggests using detected runners to execute
shadcn@latestfrom a remote registry. - Evidence: The template
detection-script.mdincludes the pattern${result.runner} shadcn@latest add button. Executing unpinned@latestpackages introduces a supply chain risk if the package registry or the specific package is compromised. - [COMMAND_EXECUTION]: The skill relies on the
Bashtool to execute a local detection script. - Evidence:
SKILL.mdallows theBashtool, anddetection-script.mdprovides an example:bash /path/to/plugins/shadcn-expert/scripts/detect-primitive-lib.sh. The security of this operation depends on the integrity of the external script located on the user's filesystem. - [EXTERNAL_DOWNLOADS]: The skill identifies and uses package managers to fetch dependencies.
- Evidence: Step 5 of the detection algorithm identifies the lockfile to determine whether to use
bunx,npx,pnpm dlx, oryarn dlxfor downloading and running CLI tools.
Audit Metadata