appbuilder-sdk

appbuilder-sdk is a cursor rule for Cursor from shapediver/AppBuilderSdk. It costs 1,018 tokens per session, scanned A, original, MIT.

A set of project instructions for working in the AppBuilderSdk and AppBuilderShared code repositories, including their layout, Git setup, and test locations.

In plain words
What is it for?
Use it to make changes in the correct repository, follow the project's action and component structure, and run or add nearby tests.
Why use it?
It clarifies that shared code is kept in a separate nested repository and shows where application logic, UI code, and tests belong.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to make changes in the correct repository, follow the project's action and component structure, and run or add nearby tests.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/shapediver/appbuildersdk/appbuilder-sdk
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/shapediver/AppBuilderSdk

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 appbuilder-sdk

README.md
[![agentmods](https://agentmods.dev/badge/rules/shapediver/appbuildersdk/appbuilder-sdk/github.svg)](https://agentmods.dev/rules/shapediver/appbuildersdk/appbuilder-sdk)
Your own site
<a href="https://agentmods.dev/rules/shapediver/appbuildersdk/appbuilder-sdk"><img src="https://agentmods.dev/badge/rules/shapediver/appbuildersdk/appbuilder-sdk/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 appbuilder-sdk

Your own site · 80×15
<a href="https://agentmods.dev/rules/shapediver/appbuildersdk/appbuilder-sdk"><img src="https://agentmods.dev/badge/rules/shapediver/appbuildersdk/appbuilder-sdk.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,018 This file is loaded in full into every session.
When invoked 1,018 The same file — it is already loaded in full.
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.01018 $0.01018
Opus 5.5 $0.00407 $0.00407
Sonnet 5.5 $0.00204 $0.00204
Haiku 4.5 $0.00102 $0.00102

Measured 2d ago against content hash 347c01069108, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

appbuilder-sdk 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 2d 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.

.cursor/rules/appbuilder-sdk.mdc · 55 lines

How it starts

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

Working in AppBuilderSdk / AppBuilderShared

Workflow only. Do not add feature behavior, ticket notes, or API semantics to this file. Put those in a requestable topic rule (see Agent rules).

Repository layout

  • Two git repos. Root AppBuilderSdk (usually development) contains src/shared, a separate clone of AppBuilderShared. Shared changes: git -C src/shared .... Root only records the shared pointer ("shared update") plus app, tests, and public/.
  • New worktrees: follow .cursor/rules/worktree-shared-repo.mdc.
  • Path alias: @AppBuilderLib/... → src/shared/.... FSD: entities/ (parameter, session, viewport), features/, widgets/, shared/. Tests live in __tests__ next to the module (jsdom env header for store tests).
  • Viewer: @shapediver/viewer.*. viewer.local.ts can link ../Viewer; viewer bugs are fixed there and need a dev server restart. Keep node_modules in sync (pnpm install) when versions differ.

Git and commits

  • Branch names: task/JIRA-ISSUE-ID. Every commit message starts with the ticket (SS-10004: ...).
  • Commits are SSH-signed via 1Password; signing fails from an agent shell. Stage and describe; let the user commit.
  • git checkout -- <file> restores from the index; use git checkout HEAD -- when files are staged.

Line endings and edits

  • Working tree is CRLF, git stores LF (autocrlf). eslint linebreak-style: CRLF.
  • Never sed -i or plain Python writes on source; they produce LF and hundreds of lint errors. Use the Edit tool, or Python with newline='' and \r\n.

Checks (judge only files you changed)

npx prettier --check <files>
npx eslint <files>
npx tsc --noEmit -p .          # root, covers shared
npx jest --config jest.config.mjs src/shared/<path>

Some untouched tests have pre-existing prettier violations.

  • Typecheck: IDE ReadLints / ESLint are not a substitute for root tsc. After changing forwardRef type parameters, host elements (svg vs img, etc.), or spreading a ref onto a third-party component, run npx tsc --noEmit -p .. Do not put a union-typed ref into a props object that is spread onto a component that only accepts one host type — narrow the ref at each host instead.
  • Mocks: jest.mock replaces all exports. When adding a named export that other modules import, search for jest.mock of that module and keep named exports via ...jest.requireActual(...) (override only what the test needs). A passing targeted test is not enough if other suites mock the changed module; run those tests, or pnpm test (what CI runs).

Read the full file on GitHub · 55 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. 2d ago Changed · -4 lines · -3,098 tokens per session 347c01069108
  2. 3d ago Changed · +108 tokens per session ab696839089e
  3. 16d ago Changed · +1 lines · +119 tokens per session 8a92f958ccbe
  4. 22d ago Changed · +1 lines · +155 tokens per session 85032f34c1b3
  5. 25d ago Changed · +3 lines · +1,137 tokens per session 1caea32aaefd
  6. 1mo ago Changed · +1 lines · +1,062 tokens per session 1c27cc6758df
  7. 1mo ago Changed · +377 tokens per session 042e83e3ed67
  8. 1mo ago Changed · +3 lines · +206 tokens per session 51e520c8f4d9
  9. 1mo ago First seen · 50 lines · 952 tokens per session scan A 4f2106483570

Subscribe to this mod's changes

appbuilder-sdk is a cursor rule published in the GitHub repository shapediver/AppBuilderSdk (15 stars, last pushed yesterday), licensed MIT. It adds 1,018 tokens to every session, about $0.0041 per session on Opus 5.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-09-10.