Skip to main content

AI Coding

Logic Bee's AI assistant knows how to build, query, and debug your hooks. This guide shows you what to ask, what the AI does, and what you get.

What Can You Ask?

I want to...Example promptGuide
Create a hook"Create a new hook in finance-bills that calculates late fees. Use the creating-hooks and flow-query skills."Creating Hooks
Query or write data"Search all posted invoices over $1000"Querying Data
Connect to an API"Add a ShipStation integration to the shipping module. Reference the connectors and bob-request-api skills."Connecting APIs
Understand the system"Why is my hook not being called? Check the event-routing skill."Understanding the System
Run workspace tools"Regenerate the hook barrels"Workspace Tooling

How It Works

The AI assistant has skills — structured knowledge about Logic Bee's architecture, conventions, and tools. When you make a request, the AI automatically activates the relevant skills:

  1. You prompt → describe what you want in plain English
  2. AI reads skills → loads the knowledge it needs (scaffolding rules, code style, FlowQuery patterns, etc.)
  3. AI takes action → runs CLI commands, generates code, or explains concepts
  4. You get results → working code that follows all project conventions
tip

You can reference skills by name for more precise results — e.g. "Use the creating-hooks and flow-query skills." The AI will prioritize those skills when generating code.

Available Skills

SkillWhat it teaches the AI
system-overviewArchitecture and boot sequence
creating-hooksHook file structure, decorator, registration
bob-request-apiBobRequest accessors, sub-requests, sessions
flow-queryDatabase queries, CRUD, bulk operations
event-routingHow events dispatch through the router
connectorsStripe, QuickBooks, S3, and external API integrations
scripts-and-toolingMigration scripts, build configuration
hook-code-styleCoding rules, naming, patterns
hook-validation-rulesHard and soft validation rules
interfacesBusiness domain types and data factories
scaffoldingCLI tools for creating hooks, connectors, interfaces