querying-posthog-data
Pass
Audited by Gen Agent Trust Hub on Sep 13, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [SAFE]: The skill provides extensive documentation for exploring PostHog data structures. It encourages best practices such as verifying event names and property availability before executing analytical queries, which prevents errors and wasted processing. All referenced functions and tables are standard components of the PostHog platform.
- [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process data from PostHog, which is an external source that could contain untrusted payloads in event properties or logs.
- Ingestion points: Data enters through the
posthog:execute-sqlandposthog:read-data-schematools. - Boundary markers: The skill includes explicit instructions for the agent to avoid outputting large JSON blobs (e.g.,
$ai_inputor$ai_output_choices) directly into the conversation, recommending instead that results be dumped to files and processed using shell commands. - Capability inventory: The skill uses SQL to retrieve data and recommends using shell tools (like
grep) for processing large outputs. - Sanitization: The skill relies on HogQL's restricted SQL dialect for data access, which provides a layer of isolation between the agent and the underlying database.
Audit Metadata