create-bubble
Create a new Bubble integration for Bubble Lab following all established patterns and best practices from CREATE_BUBBLE_README.md
Install
mkdir -p .claude/skills/create-bubble && curl -L -o skill.zip "https://mcp.directory/api/skills/download/2766" && unzip -o skill.zip -d .claude/skills/create-bubble && rm skill.zipInstalls to .claude/skills/create-bubble
About this skill
Create Bubble Skill
Create a new Bubble integration for: $ARGUMENTS
Follow the CREATE_BUBBLE_README.md guide at packages/bubble-core/CREATE_BUBBLE_README.md exactly.
Step 1: Gather Requirements
Before writing any code, ask the user:
- Service name: What external service is this integrating with?
- Operations: What operations should this bubble support? (single or multiple)
- Authentication: What auth type? (
none,apikey,oauth,basic) - Credentials: What credential types are needed? (API key, access token, etc.)
Step 2: Create Folder Structure
All bubbles use this folder structure in packages/bubble-core/src/bubbles/service-bubble/{service-name}/:
{service-name}/
├── {service-name}.schema.ts # All Zod schemas
├── {service-name}.utils.ts # Utility functions (optional)
├── {service-name}.ts # Main bubble class
├── index.ts # Exports
├── {service-name}.test.ts # Unit tests
└── {service-name}.integration.flow.ts # Integration flow test
Step 3: Create Schema File ({service-name}.schema.ts)
Include:
- Parameter schema with
.describe()on ALL fields - Result schema with
successanderrorfields - Both INPUT and OUTPUT type exports
- Use
z.discriminatedUnion()for multi-operation bubbles - Use
z.transform()overz.preprocess()for type preservation - Always include
credentialsfield
Step 4: Create Main Bubble Class ({service-name}.ts)
Required static properties:
service,authType,bubbleName,type,schema,resultSchemashortDescription,longDescription,alias
Use INPUT type for generic constraint:
export class {ServiceName}Bubble<
T extends {ServiceName}ParamsInput = {ServiceName}ParamsInput,
> extends ServiceBubble<T, Extract<{ServiceName}Result, { operation: T['operation'] }>>
Implement:
constructorwith default valueschooseCredential()methodperformAction()method with operation switch
Step 5: Create Index File (index.ts)
Export the bubble class and types.
Step 6: Create Integration Flow Test ({service-name}.integration.flow.ts)
Integration flow tests are complete BubbleFlow workflows that exercise all bubble operations end-to-end.
Requirements:
- Exercise all or most operations of your bubble
- Include edge cases (special characters, spaces in names, unicode)
- Test null/undefined handling in data
- Return structured results tracking each operation's success/failure
- Use realistic data and scenarios
Template structure:
import { BubbleFlow, {ServiceName}Bubble, type WebhookEvent } from '@bubblelab/bubble-core';
export interface Output {
resourceId: string;
testResults: {
operation: string;
success: boolean;
details?: string;
}[];
}
export interface TestPayload extends WebhookEvent {
testName?: string;
}
export class {ServiceName}IntegrationTest extends BubbleFlow<'webhook/http'> {
async handle(payload: TestPayload): Promise<Output> {
const results: Output['testResults'] = [];
// 1. Test first operation
const result1 = await new {ServiceName}Bubble({
operation: 'operation_name',
// ... parameters with edge cases
}).action();
results.push({
operation: 'operation_name',
success: result1.success,
details: result1.success ? `Success details` : result1.error,
});
// 2. Test subsequent operations...
// Continue testing all operations
return {
resourceId: result1.data?.id || '',
testResults: results,
};
}
}
Reference: See packages/bubble-core/src/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.ts for a complete implementation.
Step 7: Complete Registration Checklist
You MUST update these 12 locations:
-
Credential Types -
packages/bubble-shared-schemas/src/types.ts- Add new
CredentialTypeenum values
- Add new
-
Credential Configuration Map -
packages/bubble-shared-schemas/src/bubble-definition-schema.ts- Add to
CREDENTIAL_CONFIGURATION_MAP
- Add to
-
Credential Environment Mapping -
packages/bubble-shared-schemas/src/credential-schema.ts- Add to
CREDENTIAL_ENV_MAP
- Add to
-
Frontend Credential Configuration -
apps/bubble-studio/src/pages/CredentialsPage.tsx- Add to
CREDENTIAL_TYPE_CONFIG - Add to
typeToServiceMap
- Add to
-
Bubble-to-Credential Mapping -
packages/bubble-shared-schemas/src/credential-schema.ts- Add to
BUBBLE_CREDENTIAL_OPTIONS
- Add to
-
Bubble Name Type Definition -
packages/bubble-shared-schemas/src/types.ts- Add to
BubbleNametype
- Add to
-
Backend Credential Test Parameters -
apps/bubblelab-api/src/services/credential-validator.ts- Add to
createTestParametersmethod with ALL required parameters
- Add to
-
System Credential Auto-Injection (optional) -
apps/bubblelab-api/src/services/bubble-flow-parser.ts- Add to
SYSTEM_CREDENTIALSif needed
- Add to
-
Bubble Factory Registration -
packages/bubble-core/src/bubble-factory.ts- Import and register the bubble
- Add to boilerplate imports
-
Code Generator List -
packages/bubble-core/src/bubble-factory.ts- Add to
listBubblesForCodeGenerator()
- Add to
-
Main Package Export -
packages/bubble-core/src/index.ts- Export bubble class and types
-
Logo Integration (optional) -
apps/bubble-studio/src/lib/integrations.ts- Add to
SERVICE_LOGOS,INTEGRATIONS,NAME_ALIASES, and matchers
- Add to
Step 8: Verification
Run these commands to verify:
pnpm run typecheck
pnpm run build
Quality Checklist
Before completing, ensure:
- ALL fields have
.describe()calls - Optional parameters have sensible defaults
- Input/output types are strictly typed with Zod
- Unit tests cover all operations
- Integration flow test exercises all operations end-to-end
- Error handling is consistent
- All 12 registration locations updated
Key Patterns to Follow
Type Safety:
- Use INPUT type (
z.input<>) for generic constraints and constructor - Use OUTPUT type (
z.output<>) for internal methods after validation - Cast
this.params as {ServiceName}ParamsinsideperformAction()
Schema Best Practices:
- Use
z.transform()to preserve input types in discriminated unions - Use
z.preprocess()only when accepting unknown/null/undefined inputs - All fields MUST have
.describe()calls - Provide sensible defaults with
.optional().default(value)
Error Handling:
- Return
{ success: false, error: message }format - Catch and wrap errors appropriately
Reference Implementations
Study these existing bubbles for patterns:
- Multi-operation:
packages/bubble-core/src/bubbles/service-bubble/google-sheets/ - Single operation:
packages/bubble-core/src/bubbles/service-bubble/ai-agent/ - Tool bubble:
packages/bubble-core/src/bubbles/tool-bubble/
You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
fastapi-templates
wshobson
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
Related MCP Servers
Browse all serversConnect Blender to Claude AI for seamless 3D modeling. Use AI 3D model generator tools for faster, intuitive, interactiv
Unlock powerful Excel automation: read/write Excel files, create sheets, and automate workflows with seamless integratio
Automate Notion documentation with seamless Notion API integration. Manage pages and blocks efficiently using Node.js fo
Create and organize Mermaid diagrams with real-time visualization, export, and git integration—perfect for mermaid js an
Create and manage Solana meme tokens effortlessly with LetsBonk (Solana Token Launcher) – easy IPFS setup, image uploads
Easily manage Zoom meetings with Zoom API integration—create, update, delete, and fetch events without navigating the Zo
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.