scaffold-bot-handler

Generate bot handler boilerplate and registration code for Swiss AI Hub.

9|2|Updated Nov 29, 2024
One-click install
npx skills add https://github.com/bbvch-ai/aihub-core --skill scaffold-bot-handler
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scaffold-bot-handler
Source: https://github.com/bbvch-ai/aihub-core/tree/main/.claude/skills/scaffold-bot-handler
Command: npx skills add https://github.com/bbvch-ai/aihub-core --skill scaffold-bot-handler

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the tedious and error-prone manual work of writing repetitive boilerplate code for new bot conversation handlers in the Swiss AI Hub core bot package, which must follow the project's strict BaseChatBot + CompletionHandler strategy pattern.

Core Features & Use Cases

  • Full Boilerplate Generation: Creates all required files for a new bot handler, including the ChatBot subclass, streaming variant, CompletionHandler strategy, and fluent API Controller.
  • Automatic Registration: Adds the new handler to the app's main entry point so it is immediately available for use.
  • Built-in Verification & Testing: Includes step-by-step verification commands and test scaffolding to ensure the new handler works correctly out of the box.
  • Use Case: For example, if a developer needs to add a new customer support bot to the Swiss AI Hub stack, this Skill generates all required implementation and registration code in seconds instead of hours of manual work.

Quick Start

Use this skill to generate a complete new FAQ bot handler by providing "faq" as the bot purpose argument.

Frequently Asked Questions about scaffold-bot-handler

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate boilerplate code for a new FastAPI chatbot handler?

To generate boilerplate code for a new chatbot handler, provide a bot purpose argument like "faq" to instantly create the ChatBot subclass, streaming variant, CompletionHandler strategy, and controller registration files.

How does scaffolding a bot conversation handler work with the strategy pattern?

Scaffolding a bot conversation handler works by automatically generating the required BaseChatBot subclass and CompletionHandler strategy pattern files, eliminating manual boilerplate creation for new chatbot integrations.

Do I need to manually register a newly generated bot handler in the application?

No, you do not need to manually register a newly generated bot handler. The code generation process automatically adds the new handler to the app's main entry point so it is immediately available for use.

Can I generate test scaffolding for new bot handlers automatically?

Yes, you can generate test scaffolding for new bot handlers automatically. The code generation includes built-in test scaffolding and step-by-step verification commands to ensure the new handler works correctly out of the box.

What's the best way to add multiple chatbot integrations to a FastAPI core bot package?

The best way to add multiple chatbot integrations to a core bot package is using a code generation tool that generates all required implementation files and registration code in seconds, ensuring strict adherence to project development standards.

Why does manually writing code for new bot conversation handlers fail?

Manually writing code for new bot conversation handlers often fails because it is tedious and error-prone when attempting to follow a strict BaseChatBot and CompletionHandler strategy pattern across multiple implementation files.