Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add PostHog/posthog-foss --skill debugging-table-access-deniedgit clone --depth 1 https://github.com/PostHog/posthog-fossWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/posthog/posthog-foss/debugging-table-access-denied)<a href="https://agentmods.dev/skills/posthog/posthog-foss/debugging-table-access-denied"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/debugging-table-access-denied/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/posthog/posthog-foss/debugging-table-access-denied"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/debugging-table-access-denied.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00073 | $0.00438 |
| Opus 5.5 | $0.00029 | $0.00175 |
| Sonnet 5.5 | $0.00015 | $0.00088 |
| Haiku 4.5 | $0.00007 | $0.00044 |
Grade A, and why
debugging-table-access-denied scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Debugging "You don't have access to table"
TableAccessDeniedError (posthog/hogql/errors.py, code table_access_denied) means the query referenced a table that access control removed from the HogQL schema.
The mechanism — how and why tables get removed — is documented in posthog/hogql/ACCESS_CONTROL.md; read it first.
Hints:
- The error proves the table exists and was denied. A nonexistent table raises
Unknown tableinstead. - On an HTTP request this is an expected 4xx, never captured. An error tracking issue means it was raised in a background context — figure out which from the event's query tags (
team_id,user_id,product,celery_task_id,temporal.*). - A
system.*name is a system-table decision; a bare name is a warehouse table/view denial. - No
user_idon the event usually means a userlessDatabase.create_for— it fails closed, andbypass_warehouse_access_controldoes not cover system tables. That's a bug in the calling code. - Background jobs run as the resource's
created_by. A creator who left the org is the known benign cause: cache warming suppresses capture for it viacreator_access_revoked, exports refuse to run withCreatorLeftOrganizationError, and subscriptions and alerts auto-disable (look for thealert auto disabledevent or the subscription's last delivery). - Otherwise it's a real access rule (RBAC or entitlement) — see the readme for how a table's access level resolves, and check the
AccessControlrows for the table'saccess_scope.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed 11f7c96857a3
- 3mo ago First seen · 20 lines · 73 tokens per session scan A 09c9994a6fbd
debugging-table-access-denied is a skill published in the GitHub repository PostHog/posthog-foss (736 stars, last pushed today), licensed MIT. It adds 73 tokens to every session and 438 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
debugging-table-access-denied compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| debugging-table-access-deniedPostHog/posthog-foss | Skill | 736 | today | MIT | A | 73 | Claude Code, Codex |
| triage-issuesgoogleapis/mcp-toolbox | Skill | 17k | today | Apache-2.0 | A | 164 | Claude Code, Codex |
| postgresql-indexingprowler-cloud/prowler | Skill | 15k | today | Apache-2.0 | A | 108 | Claude Code |
| sql-optimization-patternssickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 28 | Claude Code |
| graphjin-evaldosco/graphjin | Skill | 3.2k | 5d ago | Apache-2.0 | A | 27 | Claude Code, Codex |
| axiom-audit-grdb-performanceCharlesWiltgen/Axiom | Skill | 1.3k | yesterday | MIT | A | 43 | Codex |
| byted-bytehouse-slow-querybytedance/agentkit-samples | Skill | 496 | yesterday | Apache-2.0 | A | 74 | Claude Code, Codex |