ai-scaffold-docusaurus-site

Pass

Audited by Gen Agent Trust Hub on Nov 11, 2026

Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill executes several shell commands to facilitate the scaffolding and build process.
  • It uses git rev-parse and git describe to resolve the repository root and project version.
  • It runs node and pnpm versions checks to ensure environment compatibility.
  • It executes pnpm install and pnpm build to verify the scaffolded site.
  • The assets/docusaurus.config.ts template includes execFileSync to retrieve git tags at build time.
  • [EXTERNAL_DOWNLOADS]: The skill performs external network requests during the verification phase.
  • pnpm install connects to the official npm registry to download the required Docusaurus packages.
  • The instructions explicitly state that the execution harness must ask the user for permission before running the install command.
  • [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted user input (site title and audience names) which are interpolated into generated TypeScript and Markdown files.
  • Ingestion points: Input is received via $ARGUMENTS and an interactive interview process.
  • Sanitization: The skill applies strict validation rules: audience names are restricted to lowercase alphanumeric characters and hyphens, and the site title is forbidden from containing quotes, backticks, backslashes, or internal placeholder tokens (__).
  • Boundary markers: The skill uses a fixed set of template files and performs exact string substitution of tokens, preventing arbitrary code injection into the configuration files.
  • Capability inventory: The skill is limited to writing files within the resolved repository root and executing specific build tools (node, pnpm, git).
  • [SAFE]: The skill demonstrates several security best practices.
  • Edit Scope: It explicitly restricts file operations to the repository root and provides clear rules for temporary file management.
  • Security Hardening: The assets/pnpm-workspace.yaml file includes explicit overrides to force the use of patched versions for transitive dependencies with known security advisories (e.g., serialize-javascript, lodash-es, uuid). It also disables potentially risky install scripts using allowBuilds: false.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 11, 2026, 05:24 PM