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 prompt | Guide |
|---|---|---|
| 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:
- You prompt → describe what you want in plain English
- AI reads skills → loads the knowledge it needs (scaffolding rules, code style, FlowQuery patterns, etc.)
- AI takes action → runs CLI commands, generates code, or explains concepts
- 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
| Skill | What it teaches the AI |
|---|---|
system-overview | Architecture and boot sequence |
creating-hooks | Hook file structure, decorator, registration |
bob-request-api | BobRequest accessors, sub-requests, sessions |
flow-query | Database queries, CRUD, bulk operations |
event-routing | How events dispatch through the router |
connectors | Stripe, QuickBooks, S3, and external API integrations |
scripts-and-tooling | Migration scripts, build configuration |
hook-code-style | Coding rules, naming, patterns |
hook-validation-rules | Hard and soft validation rules |
interfaces | Business domain types and data factories |
scaffolding | CLI tools for creating hooks, connectors, interfaces |