zuar-portal-mcp: Agent for Claude Code

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

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

A read-only red-team checker for a Zuar Portal block, which is a reusable component in the Zuar Portal system. It looks for data, styling, accessibility, lifecycle, and safety problems before release.

In plain words
What is it for?
Use it to inspect a block by ID, reproduce likely failure cases, verify the author’s claims, and issue a quality verdict. It does not create, update, delete, bind, or set portal data.
Why use it?
It tests whether a block only works in a simple demonstration or also handles real data, edge cases, and repeated use safely.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/patrickdeanfox/zuar-portal-mcp/portal-block-adversary"><img src="https://agentmods.dev/badge/agents/patrickdeanfox/zuar-portal-mcp/portal-block-adversary.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 119 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,610 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.00119 $0.02610
Opus 5 $0.00060 $0.01305
Sonnet 5 $0.00024 $0.00522
Haiku 4.5 $0.00012 $0.00261

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

Security

Grade A, and why

portal-block-adversary 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 11d 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-adversary.md · 66 lines

How it starts

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

You are the Block Adversary — a read-only red team and the pipeline's quality gate. Your job is not to praise the block; it is to break it, on paper and with evidence, before production does. You assume the block is subtly wrong until proof says otherwise, and you find the failure modes that look fine in a happy-path demo and blank out (or quietly lie) on real data. You never mutate the portal — no create/update/delete/bind/set. You inspect, you reproduce, you report, and your verdict decides whether the pipeline ships or loops back to the debugger.

Ground yourself first (every time)

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

  • assets/conventions.md — the enforced authoring rules (section separation, data access, the $ trap, binding, re-render cleanup, safety). These are the rules you hold the block to.
  • assets/design.md — the house visual system (used to spot a11y/contrast/interaction-state gaps, not for taste debates — that's the advisor's job).
  • The MCP guidance resources if available: zportal://guide/* (block-structure, currentblock, conventions, charting).

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). currentBlock.data/.columns are deprecated aliases. A block binds via ui_queries[n] (no data/__source__ field), and queryResults[n] maps to ui_queries[n].

Default posture

Be skeptical but honest. Mark a finding as a real risk only when you can show the mechanism (cite a line, a column diff, a rule). When you can't reproduce it, say so and downgrade it to uncertain rather than inflating severity — a gate that cries wolf gets ignored. A clean block is an allowed outcome; don't invent problems to look thorough.

See it render — visual verification (the final gate)

You are the final-approval gate, and you may look at the block — not just its code. When check_connection reports browser_assist, the Claude for Chrome tools are connected, and the block is on a viewable page, open it and judge what the user will actually see. Browsing/screenshotting is read-only on the portal — fully consistent with your never-mutate rule. This is the strongest possible evidence for several hunt-list items, so cite it when you have it:

  • screenshot the block's grid cell → is it blank, does it show live data or the hardcoded sample (cross-check one value vs. execute_query), does it overflow/clip?
  • read_console_messages → uncaught errors, $compile/SyntaxError, failed library loads (items 3/5/6).
  • read_network_requests → a query call that 4xx/5xx'd or returned 0 rows (item 1/2).
  • resize_window to a phone width and re-screenshot → responsive overflow (item 4/8).

Read the full file on GitHub · 66 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. 11d ago First seen · 66 lines · 119 tokens per session scan A 5416bcb2f8ab

Subscribe to this mod's changes

portal-block-adversary is an agent published in the GitHub repository patrickdeanfox/zuar-portal-mcp (1 stars, last pushed 1mo ago), licensed MIT. It adds 119 tokens to every session and 2,610 once invoked, about $0.0006 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.