building-blocks

building-blocks is an agent for Claude Code from Ocean-Industries-Concept-Lab/openbridge-webcomponents. It costs 12 tokens per session (2,535 once invoked), scanned A, original, Apache-2.0.

Instructions for SVG-based building blocks such as linear instruments, bars, scales, and charts, along with their shared SVG drawing helpers. SVG is a format for drawing scalable graphics in the browser.

In plain words
What is it for?
Use them when changing SVG rendering, shared drawing helpers, bars, external scales, or chart building blocks. Read the complete file and check mirrored and rotated layouts before finishing.
Why use it?
They reduce regressions caused by editing only one direction or layout when the same component also supports mirrored sides and different orientations.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Install

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.

agentmods
npx agentmods add agents/ocean-industries-concept-lab/openbridge-webcomponents/building-blocks
Clone the repo
git clone --depth 1 https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents

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 building-blocks

README.md
[![agentmods](https://agentmods.dev/badge/agents/ocean-industries-concept-lab/openbridge-webcomponents/building-blocks.svg)](https://agentmods.dev/agents/ocean-industries-concept-lab/openbridge-webcomponents/building-blocks)
Your own site
<a href="https://agentmods.dev/agents/ocean-industries-concept-lab/openbridge-webcomponents/building-blocks"><img src="https://agentmods.dev/badge/agents/ocean-industries-concept-lab/openbridge-webcomponents/building-blocks.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 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,535 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00012 $0.02535
Opus 5 $0.00006 $0.01267
Sonnet 5 $0.00002 $0.00507
Haiku 4.5 $0.00001 $0.00253

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

Security

Grade A, and why

building-blocks 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 6d 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.

docs/agents/building-blocks.md · 200 lines

How it starts

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

Building Blocks & SVG Helpers

These instructions apply to SVG-based building block components (instrument-linear, bar-vertical, etc.) and their shared SVG helper utilities.

Agent Safety Rules (Context + Mirroring)

When implementing changes in this area, avoid narrow/local fixes that can introduce regressions:

  1. Always load the full file into context before editing

    • Read the entire file you are about to change (not just snippets) so you understand how helpers, state, rendering, and events fit together.
    • This is required to avoid “local fixes” that miss related logic and accidentally introduce new bugs.
  2. Always think in mirrored / generalized layouts (sides + orientations)

    • For components like:
      • packages/openbridge-webcomponents/src/building-blocks/external-scale/external-scale.ts
      • packages/openbridge-webcomponents/src/building-blocks/bar-horizontal/bar-horizontal.ts
      • packages/openbridge-webcomponents/src/building-blocks/bar-vertical/bar-vertical.ts
      • packages/openbridge-webcomponents/src/building-blocks/chart-line/chart-line-base.ts
      • packages/openbridge-webcomponents/src/bars-graphs/line-graph/line-graph.ts
      • packages/openbridge-webcomponents/src/bars-graphs/area-graph/area-graph.ts
    • If a task changes behavior for one side (e.g. right), validate the equivalent behavior for the opposite side (left) and for the orthogonal orientation (top/bottom) where applicable.
    • Prefer implementing via shared helpers/config so “all sides / all orientations” stay consistent.

packages/openbridge-webcomponents/src/building-blocks/**

When working with building block components in this directory:

  1. SVG-Based Architecture:
    • Building blocks are pure SVG components rendered using Lit's svg template tag
    • Components typically render into a <svg> element with a viewBox for coordinate system control
    • Use shared helpers from svghelpers/ for coordinate transformations and rendering utilities
    • Consider checking existing building blocks (e.g., instrument-linear) for similar patterns before implementing new features

Read the full file on GitHub · 200 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. 6d ago First seen · 200 lines · 12 tokens per session scan A a8d0b790b044

Subscribe to this mod's changes

building-blocks is an agent published in the GitHub repository Ocean-Industries-Concept-Lab/openbridge-webcomponents (92 stars, last pushed yesterday), licensed Apache-2.0. It adds 12 tokens to every session and 2,535 once invoked, about $0.0001 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-30.