modus-stencil-property-binding-solidjs

modus-stencil-property-binding-solidjs is a cursor rule for Cursor from julianoczkowski/create-trimble-app. It costs 0 tokens per session (1,222 once invoked), scanned A, original, MIT.

A set of rules for connecting SolidJS to Stencil-based Modus web components, especially when passing objects, arrays, functions, and named content areas.

In plain words
What is it for?
Use it when wiring Modus tables, navigation, autocomplete, select controls, and other web components into SolidJS.
Why use it?
It prevents silent rendering failures caused by passing complex values the wrong way, such as a table showing no data without an obvious error.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when wiring Modus tables, navigation, autocomplete, select controls, and other web components into SolidJS.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/julianoczkowski/create-trimble-app/modus-stencil-property-binding-solidjs
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.

Clone the repo
git clone --depth 1 https://github.com/julianoczkowski/create-trimble-app

Made for: Cursor.

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 modus-stencil-property-binding-solidjs

README.md
[![agentmods](https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-stencil-property-binding-solidjs/github.svg)](https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-stencil-property-binding-solidjs)
Your own site
<a href="https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-stencil-property-binding-solidjs"><img src="https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-stencil-property-binding-solidjs/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 modus-stencil-property-binding-solidjs

Your own site · 80×15
<a href="https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-stencil-property-binding-solidjs"><img src="https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-stencil-property-binding-solidjs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,222 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.00000 $0.01222
Opus 5 $0.00000 $0.00611
Sonnet 5 $0.00000 $0.00244
Haiku 4.5 $0.00000 $0.00122

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

Security

Grade A, and why

modus-stencil-property-binding-solidjs 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 5d 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.

templates/solidjs/.cursor/rules/modus-stencil-property-binding-solidjs.mdc · 120 lines

How it starts

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

Stencil Web Component Property Binding in SolidJS

SolidJS and Stencil web components have interop pitfalls that cause silent failures. These rules prevent the three most common bugs.

Rule 1: Complex props must be set as JS properties, never JSX attributes

Stencil @Prop() values that are objects, arrays, or functions CANNOT be passed as JSX attributes. SolidJS will serialize them to [object Object] or drop them entirely.

Broken (silent failure - table shows "No data available"):

<modus-wc-table columns={columns} data={data} editable={true} />

Correct (set via ref + onMount/createEffect):

let tableEl;

onMount(() => {
  const table = tableEl;
  table.columns = columns;   // JS property assignment
  table.data = data;          // JS property assignment
  table.editable = true;
});

// Re-sync when props change
createEffect(() => {
  if (!tableEl) return;
  tableEl.columns = props.columns;
  tableEl.data = props.data;
});

return <modus-wc-table ref={(el) => (tableEl = el)} />;

Affected components: modus-wc-table (columns, data), modus-wc-navbar (userCard, visibility, textOverrides), modus-wc-autocomplete (items), modus-wc-select (options), any component with object/array/function props.

Rule 2: Named slots require child elements, not prop values

Some Stencil components expose a @Prop() AND a <slot> with the same semantic name. The prop may exist on the prototype but the component only renders content from the slot. Always check the component's render() method for <slot name="...">.

Broken (icon never appears despite property being set):

<modus-wc-menu-item start-icon="dashboard" label="Dashboard" />

Correct (render into the named slot):

<modus-wc-menu-item attr:label="Dashboard" attr:value="dashboard">
  <i class="modus-icons" slot="start-icon">dashboard</i>
</modus-wc-menu-item>

How to detect: If a prop is set (verified via DevTools element.propName) but nothing renders, check the component source for <slot name="...">. If the slot exists, you must provide a child element with slot="slot-name".

Read the full file on GitHub · 120 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. 5d ago First seen · 120 lines · 0 tokens per session scan A ca9472f0ee17

Subscribe to this mod's changes

modus-stencil-property-binding-solidjs is a cursor rule published in the GitHub repository julianoczkowski/create-trimble-app (3 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,222 tokens. 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-09-03.