adapter-factory
CommunityIntegrate any AI model into your council.
AuthorOmarTheGrey
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Integrating diverse AI models (CLI tools, HTTP APIs) into a unified deliberation system can be complex and error-prone. This skill provides a factory pattern and step-by-step guide to create robust adapters, enabling seamless participation of any AI model in your AI Counsel.
Core Features & Use Cases
- CLI Adapter Creation: Build adapters for command-line AI tools, handling subprocess execution and output parsing.
- HTTP Adapter Creation: Integrate HTTP-based AI APIs, managing requests, retries, and response parsing.
- Config-Driven Integration: Configure new adapters via YAML, supporting environment variable substitution for secrets.
- Test-Driven Development: Guides on writing unit and integration tests, including VCR for HTTP response recording.
- Use Case: You want to add support for a new local LLM (e.g., a custom fine-tuned model via Ollama) or a proprietary cloud API. This skill walks you through creating the necessary adapter, configuring it, and testing its integration into the deliberation system.
Quick Start
Show me how to create a new HTTP adapter for a custom AI API, including how to build the request and parse the response.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: adapter-factory Download link: https://github.com/OmarTheGrey/Council-Of-HAL/archive/main.zip#adapter-factory Please download this .zip file, extract it, and install it in the .claude/skills/ directory.