docs-code-samples
Pass
Audited by Gen Agent Trust Hub on Nov 4, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- Command Execution via Test Harness: The skill provides instructions for running
make test-code-samples, which executes code files located insrc/code-samples/. While this is a standard practice for verifying documentation accuracy, it represents a capability to execute code that the agent generates or modifies based on its instructions. - Indirect Prompt Injection Surface: The skill involves processing content from documentation (MDX files) and converting it into executable code. This workflow creates a potential consideration where untrusted or malicious content within documentation files could influence the code that is subsequently executed during the testing phase.
- Ingestion points: MDX files in the documentation repository (e.g.,
src/code-samples/). - Boundary markers: The skill uses
:snippet-start:and:snippet-end:as delimiters, though these are for extraction logic rather than security sanitization. - Capability inventory: Executes Python, TypeScript, Java (via jbang), Go (via go run), and Bash scripts using
make test-code-samples. - Sanitization: No explicit sanitization or validation of the documentation content is performed before execution.
- Environment Variable for Secrets: The skill suggests using environment variables (e.g.,
$LANGSMITH_API_KEY) for handling sensitive API keys. This is a secure practice for secret management, as it avoids hardcoding credentials in the code samples themselves.
Audit Metadata