qmd-knowledge
Pass
Audited by Gen Agent Trust Hub on May 16, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
record.shscript executes several shell commands, includinggit,qmd,mkdir, andecho. These are used to detect project context via git remote URLs, manage the knowledge base directory structure in~/.ai-knowledges/, and interface with theqmdCLI for indexing and searching. - [EXTERNAL_DOWNLOADS]: The skill documentation instructs the user to install the
@tobilu/qmdpackage globally usingbunornpm. This external dependency is the core component that provides the MCP server functionality. - [PROMPT_INJECTION]: As a knowledge management tool, the skill is subject to indirect prompt injection. Maliciously crafted notes or learnings could be recorded and later retrieved by the AI, potentially influencing its behavior during future interactions.
- Ingestion points: Untrusted data enters the system via the
record.shscript, which saves user-provided text to markdown files in the project's knowledge directory. - Boundary markers: No specific delimiters or "ignore instructions" markers are defined in the prompt instructions for retrieval.
- Capability inventory: The skill utilizes shell commands (
git,qmd) and file system write operations. - Sanitization: The skill implements a
slugifyfunction to sanitize filenames and avalidate_safe_pathfunction to prevent path traversal, ensuring recorded data stays within the intended directory structure.
Audit Metadata