coding-standards

coding-standards is an agent for coding agents from Ocean-Industries-Concept-Lab/openbridge-webcomponents. It costs 24 tokens per session (1,606 once invoked), scanned A, original, Apache-2.0.

The project's rules for comments, CSS explanations, writing style, boolean names, and Storybook titles. Storybook is a tool for developing and documenting UI components in isolation.

In plain words
What is it for?
Use it when writing JSDoc or CSS comments, naming boolean properties, documenting visual behaviour, or adding and naming Storybook stories.
Why use it?
It helps keep code comments useful and consistent, while directing longer explanations into tests, component examples, or documentation where they remain easier to maintain.

Agent

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/coding-standards
Clone the repo
git clone --depth 1 https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,606 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 $0.00024 $0.01606
Opus 5 $0.00012 $0.00803
Sonnet 5 $0.00005 $0.00321
Haiku 4.5 $0.00002 $0.00161

Measured 3d ago against content hash 5fd3e7ca2fda, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

coding-standards 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 3d 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/coding-standards.md · 123 lines

How it starts

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

Coding Standards

AGENTS.md § 2 carries the summary; docs/agents/coding-standards.md is the source of truth for comments, CSS comments, writing style, boolean naming and Storybook titles. npm run lint:comments reports what breaks the comment rules.

Comments

Write for a developer reading this file in a month, not for the reviewer of this PR. If they would get it from the code, don't write it.

  • WHY, never WHAT. A comment that restates the code is deleted.
  • Explanation belongs on the declaration. Document a class, property or method in its JSDoc. A comment inside a method body is allowed only for a why that has no declaration to live on (a guard that looks removable, a coupling to another file) — three lines at most.
  • Three lines, at most. Longer explanations are not comments:
    • behaviour → a .spec.ts test that pins it
    • CSS / layout / visual behaviour → a Storybook story; the snapshot is the doc
    • still needs prose → the story's parameters.docs.description.story
  • A title line, then a short paragraph — in JSDoc, docs and CSS blocks. Two words of heading usually replace four lines of prose.
  • No history, no dates, no change narration — no "previously did X", "since #994", "confirmed 2026-08-17", "added to fix Y". The why of a change goes in the commit message and the PR body; git log and git blame are first-class sources — use them before writing a comment.
  • State, then cite. If a reference is used, the sentence stands alone and (#1234) is a trailing pointer, never the explanation. One per comment.
  • TODO(designer): … marks an open design question. Any other TODO carries an issue: TODO(#1234): ….
  • Keep existing comments when refactoring unless the change makes them obsolete.
  • Comment pass before done: re-read the comments in your diff against these rules; delete what does not earn its lines. npm run lint:comments reports the rest.

CSS

Comments are expected here — a declaration has no name, type or test to carry its intent. One short line per non-obvious declaration, the reason not the effect: overflow: hidden; /* rotated <svg> box leaks arc pixels in wide layouts */. Usual suspects: overflow, a position that is really a containing block, display: block on an <svg>, min-width: 0, !important, z-index, aspect-ratio, and any value that must match something elsewhere (an outline width, what a ResizeObserver or Chart.js measures, a Figma spec). Name magic numbers as custom properties instead of commenting them. A one-line /* ---- Section ---- */ banner is fine in files over ~150 lines. Same limits as TS: three lines, no history, no commented-out declarations. Delete placeholder-only CSS files.

Read the full file on GitHub · 123 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. 3d ago First seen · 123 lines · 24 tokens per session scan A 5fd3e7ca2fda

Subscribe to this mod's changes

coding-standards is an agent published in the GitHub repository Ocean-Industries-Concept-Lab/openbridge-webcomponents (91 stars, last pushed 4d ago), licensed Apache-2.0. It adds 24 tokens to every session and 1,606 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.