baoyu-format-markdown
Pass
Audited by Gen Agent Trust Hub on Mar 28, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
- [PROMPT_INJECTION]: The skill's workflow involves reading user-provided content and asking the agent to perform a deep analysis from a "Reader's Perspective". This creates a surface for indirect prompt injection where malicious instructions embedded in the input file could influence the agent's behavior during the formatting process.
- Ingestion points: User-specified markdown or plain text files read in Step 1 and analyzed in Step 2.
- Boundary markers: None; instructions tell the agent to "read the entire content carefully".
- Capability inventory: File system write access (
writeFileSync), file move operations (mv), and shell command execution (spawnSync,bun,npx). - Sanitization: No sanitization or escaping of external content is performed before processing.
- [COMMAND_EXECUTION]: The skill relies on shell commands to run its core formatting logic. It executes
scripts/main.tsusingbunornpxand also executes theautocorrect-nodeCLI tool. - [EXTERNAL_DOWNLOADS]: The typography step (Step 6) invokes
npx autocorrect-node, which may fetch the package from the npm registry if it is not available in the local environment's cache.
Audit Metadata