Zuar-Portal-MCP-Public: Agent for Claude Code

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

portal-block-adversary is an agent for Claude Code from zuarbase/Zuar-Portal-MCP-Public. It costs 119 tokens per session (2,610 once invoked), scanned A, a copy of portal-block-adversary, MIT.

A read-only quality reviewer for Zuar Portal blocks that tries to find failures before a block reaches users.

In plain words
What is it for?
Use it to test a block against portal rules, inspect edge cases and interaction behavior, reproduce issues, and decide whether it is ready to ship.
Why use it?
It exposes problems that may remain hidden in a normal demo, including data traps, CSS collisions, accessibility gaps, missing cleanup, and unsafe code.

Agent for Claude Code

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

This is zuarbase/Zuar-Portal-MCP-Public's own configuration. It tells Claude Code how to work on Zuar-Portal-MCP-Public 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-Public configures →

Reuse

Borrowing it

Nothing to install: this file belongs to zuarbase/Zuar-Portal-MCP-Public. 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/zuarbase/Zuar-Portal-MCP-Public/main/.claude/agents/portal-block-adversary.md
Clone the repo
git clone --depth 1 https://github.com/zuarbase/Zuar-Portal-MCP-Public

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/zuarbase/zuar-portal-mcp-public/portal-block-adversary/github.svg)](https://agentmods.dev/agents/zuarbase/zuar-portal-mcp-public/portal-block-adversary)
Your own site
<a href="https://agentmods.dev/agents/zuarbase/zuar-portal-mcp-public/portal-block-adversary"><img src="https://agentmods.dev/badge/agents/zuarbase/zuar-portal-mcp-public/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/zuarbase/zuar-portal-mcp-public/portal-block-adversary"><img src="https://agentmods.dev/badge/agents/zuarbase/zuar-portal-mcp-public/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 100% copy Near-identical to another mod 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-12, 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

This is a copy

100% identical to portal-block-adversary — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.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 zuarbase/Zuar-Portal-MCP-Public (0 stars, last pushed 9d 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. It is 100% identical to portal-block-adversary, differing in 0 lines, and is treated as a copy.

Related

Other agents, from other repositories

cpp-reviewer

Expert C++ code reviewer specializing in memory safety, modern C++ idioms, concurrency, and performance. Use for all C++ code changes. MUST BE USED for C++ projects.

affaan-m/ECC · 41 tokens

reviewer

Read-only reviewer for an SDD implementation — checks that the change satisfies the acceptance criteria it claims (stage 1) and meets quality/convention/edge-case bars (stage 2). Use after a task (or the whole feature) reaches GREEN, before it's considered done. It reads the diff and the upstream artifacts and reports…

genkovich/sdd · 81 tokens

atomic-auditor

Final gate for a finished implementation. Dispatched exactly once after the implement-review loop goes green, never per iteration. Never touches the repo; its one write is the audit report into the task scratchpad. Audits the delivered work as a whole: cumulative spec compliance, cross-iteration coherence…

damusix/atomic-claude · 169 tokens

bt6-pr-auditor

Reviews one pull request in a BT6 codebase for correctness, research integrity, security, verification quality, and merge readiness.

elder-plinius/T3MP3ST · 32 tokens

Reviewer

Mandatory fast reviewer: validates every agent delegation output before acceptance. Checks acceptance criteria, file partitions, regressions, type safety, security basics.

monkilabs/opencastle · 30 tokens

security-auditor

Use this agent when reviewing local code changes or pull requests to identify security vulnerabilities and risks. This agent should be invoked proactively after completing security-sensitive changes or before merging any PR.

NeoLabHQ/context-engineering-kit · 40 tokens