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.
npx agentmods add rules/bubblelabai/bubblelab/bundlinggit clone --depth 1 https://github.com/bubblelabai/BubbleLabWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.01505 | $0.01505 |
| Opus 5 | $0.00753 | $0.00753 |
| Sonnet 5 | $0.00301 | $0.00301 |
| Haiku 4.5 | $0.00151 | $0.00151 |
Grade A, and why
bundling 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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 213 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Type Bundling for Monaco Editor
Overview
The project uses a custom type bundling system to provide full TypeScript IntelliSense support in the Monaco editor for @bubblelab/bubble-core and its dependencies. This is necessary because Monaco cannot directly resolve workspace packages or external dependencies.
Architecture
Key Files
-
Bundler Script:
packages/bubble-core/scripts/bubble-bundler.ts- Processes TypeScript declaration files (
.d.ts) - Inlines all dependencies into a single self-contained bundle
- Runs as part of the build process:
tsc && tsx scripts/bubble-bundler.ts
- Processes TypeScript declaration files (
-
Bundle Output:
packages/bubble-core/dist/bubble-bundle.d.ts- Self-contained TypeScript declarations
- Includes Zod type stubs for type inference
- Contains inlined types from
@bubblelab/shared-schemas - All bubble-core types and classes
-
Monaco Integration:
apps/bubble-studio/public/bubble-types.txt- Copy of the bundle served to the Monaco editor
- Loaded in
apps/bubble-studio/src/components/MonacoEditor.tsx
Bundling Process
-
Compile TypeScript
tsc # Generates .d.ts files in dist/ -
Bundle Types
- Start from
packages/bubble-core/dist/index.d.ts - Recursively process all imports:
- Relative imports (
./types/bubble.js) → inline the file content - External imports (
@bubblelab/shared-schemas) → bundle separately then inline - Zod imports → remove (custom stubs provided)
- Relative imports (
- Start from
-
Shared Schemas Handling
@bubblelab/shared-schemasis bundled separately viabundleSharedSchemas()- Prevents cache key collisions (both packages have
index.d.ts) - Uses absolute file paths as cache keys to avoid conflicts
- Inlined content includes all shared types like:
BubbleOperationResultBubbleResult<T>BubbleTriggerEventRegistry- API schemas, credential types, etc.
-
Bundle Structure
// Header comment // Zod type stubs (for z.infer, z.ZodObject, etc.) declare namespace z { ... } // Inlined shared-schemas types export interface BubbleOperationResult { ... } export interface BubbleResult<T> { ... } // Bubble-core types and classes export class BubbleFlow { ... } export class ServiceBubble { ... }
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.
- yesterday First seen · 213 lines · 1,505 tokens per session scan A e79c26481f02
bundling is a cursor rule published in the GitHub repository bubblelabai/BubbleLab (1,094 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 1,505 tokens to every session, about $0.0075 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.
Other cursor rules, from other repositories
webkit-browser
Cursor rule "webkit-browser" from duckduckgo/apple-browsers, covering webkit & browser development guidelines, webview configuration, basic webview setup, user scripts management and tab management.
cypress-e2e-testing-cursorrules-prompt-file
Cursor rules for Cypress development with E2E testing.
vasu-playwright-utils
../../templates/cursor-rules/vasu-playwright-utils.mdc.
dev-browser
Fallback browser automation with persistent Chrome state. Use only when Browser Use is unavailable or blocked.
node-dependencies
Enforce Node.js versioning and package management best practices.
security-standards
Cursor rule "security-standards" from wjgogogo/cursor-rules, covering 安全规范, 核心原则 [p0], 输入验证, xss 防护 and csrf 防护.