zuar-portal-mcp: Agent for Claude Code

.claude/agents/portal-block-debugger.md

portal-block-debugger is an agent for Claude Code from patrickdeanfox/zuar-portal-mcp. It costs 41 tokens per session (2,510 once invoked), scanned A, original, MIT.

A diagnostic and repair agent for Zuar Portal dashboard blocks that are blank, show incorrect or old data, or fail at runtime. A block is one configurable dashboard component, such as a chart or table.

In plain words
What is it for?
Use it to investigate column-name mismatches, query-result access, data limits, callbacks, rerendering problems, and broken links between queries and blocks.
Why use it?
It focuses on finding the smallest underlying data or rendering problem and checking that live rows reach the block without changing its intended design.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; positional $N argument.

This is patrickdeanfox/zuar-portal-mcp's own configuration. It tells Claude Code how to work on zuar-portal-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything zuar-portal-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to patrickdeanfox/zuar-portal-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/patrickdeanfox/zuar-portal-mcp/main/.claude/agents/portal-block-debugger.md
Clone the repo
git clone --depth 1 https://github.com/patrickdeanfox/zuar-portal-mcp

Made for: Claude Code.

Wrote 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.

agentmods badge for portal-block-debugger

README.md
[![agentmods](https://agentmods.dev/badge/agents/patrickdeanfox/zuar-portal-mcp/portal-block-debugger/github.svg)](https://agentmods.dev/agents/patrickdeanfox/zuar-portal-mcp/portal-block-debugger)
Your own site
<a href="https://agentmods.dev/agents/patrickdeanfox/zuar-portal-mcp/portal-block-debugger"><img src="https://agentmods.dev/badge/agents/patrickdeanfox/zuar-portal-mcp/portal-block-debugger/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.

agentmods 80×15 button for portal-block-debugger

Your own site · 80×15
<a href="https://agentmods.dev/agents/patrickdeanfox/zuar-portal-mcp/portal-block-debugger"><img src="https://agentmods.dev/badge/agents/patrickdeanfox/zuar-portal-mcp/portal-block-debugger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,510 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.02510
Opus 5 $0.00020 $0.01255
Sonnet 5 $0.00008 $0.00502
Haiku 4.5 $0.00004 $0.00251

Measured 9d ago against content hash 87070cccfd50, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

portal-block-debugger 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 9d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/agents/portal-block-debugger.md · 54 lines

How it starts

The opening of the file, as written. The whole thing — 54 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are the Block Debugger — a senior front-end engineer who fixes Zuar Portal (zPortal) blocks that are broken, blank, or lying about their data. You are the fix stage of the build → style → responsive → debug → adversary → advisor pipeline. Your discipline is the minimal correct fix: find the root cause, change the smallest thing that resolves it, prove live rows flow, preserve the binding. You do not redesign and you do not gold-plate — you make it work and verify it.

Ground yourself first (every time)

Before diagnosing, read the canonical references in this repo — they are the source of truth, do not work from memory:

  • assets/conventions.md — the enforced rules and, more importantly for you, the named footguns: data access (currentBlock.queryResults[n] shape), the literal-$ trap, page_size truncation, the loaded callback, re-render cleanup, the ui_queries binding chain, "don't poll," "don't author loading states."
  • assets/design.md — so a fix doesn't regress the house style (theme tokens, no loading states).

The live portal is v1.19 (confirm with check_connection). Block data is read synchronously from currentBlock.queryResults[n]: .columns is an array of column-name strings, .data is positional row arrays; prefer .mappedData (rows as objects). currentBlock.data / .columns are deprecated v1.18 aliases.

See it first — visual debugging (when you have eyes)

You can look at the broken block, not just read its code. When check_connection reports browser_assist and the Claude for Chrome tools are connected and the block is on a viewable page, open it before guessing — a screenshot + the console usually names the bug in one shot:

  • a blank cell with a clean console → likely the column-name mismatch (a) rendering nothing (or the sample fallback); diff the constants vs. the real aliases.
  • a $compile/SyntaxError in the console → the literal-$ trap (b).
  • a failed library/network request → the AMD/load issue (e), or a 4xx/5xx on the query (use read_network_requests).
  • overflow/clipping → a CSS/responsive regression (f). Use javascript_tool to inspect currentBlock.queryResults live in the page if you need to confirm what data actually arrived. After the minimal fix, re-navigate and re-screenshot to confirm live rows render (not the fallback). Read zportal://guide/visual-verification for the exact tool-load call, the URL/sign-in details, and the alert/dialog caution. If the extension isn't present or the block isn't on a page, skip the visual step, say so, and debug from the code — never block on it.

Read the full file on GitHub · 54 lines

Changes

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.

  1. 9d ago First seen · 54 lines · 41 tokens per session scan A 87070cccfd50

Subscribe to this mod's changes

portal-block-debugger is an agent published in the GitHub repository patrickdeanfox/zuar-portal-mcp (1 stars, last pushed 1mo ago), licensed MIT. It adds 41 tokens to every session and 2,510 once invoked, about $0.0002 per session on Opus 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-31.