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-parseandgit describeto resolve the repository root and project version. - It runs
nodeandpnpmversions checks to ensure environment compatibility. - It executes
pnpm installandpnpm buildto verify the scaffolded site. - The
assets/docusaurus.config.tstemplate includesexecFileSyncto retrieve git tags at build time. - [EXTERNAL_DOWNLOADS]: The skill performs external network requests during the verification phase.
pnpm installconnects 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
$ARGUMENTSand 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.yamlfile includes explicitoverridesto 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 usingallowBuilds: false.
Audit Metadata