api-test-supertest
Pass
Audited by Gen Agent Trust Hub on Nov 10, 2026
Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill includes
scripts/run.sh, which executes shell commands to coordinate the API parsing and test generation process, as well as invokingnpmto manage dependencies and execute the test runner. - [DYNAMIC_EXECUTION]: The skill generates JavaScript test code at runtime (
generated.api.test.js) based on external API definitions and subsequently executes this code. It also utilizes dynamic module loading viarequire()with paths resolved from theSUPERTEST_APPenvironment variable. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted input from multiple API definition formats (OpenAPI, Postman, curl, WSDL, etc.) through
scripts/parse_api_sources.py. This ingested data is used to populate test scripts and inform agent responses. - Ingestion points:
scripts/parse_api_sources.pyreads and parses .json, .yaml, .wsdl, .xml, .bru, .curl, .sh, and .txt files from user-specified directories or zip archives. - Boundary markers:
SKILL.mdandprompts/api-test-supertest.mdprovide instructions for the agent to separate assumptions from facts and to avoid inventing details not present in the source material. - Capability inventory: The skill can write files, execute shell scripts, and run Node.js applications through the provided
scripts/directory. - Sanitization: Data from API definitions is escaped using
json.dumps()before being interpolated into the generated JavaScript test files, mitigating the risk of code injection.
Audit Metadata