54 lines
1.1 KiB
Markdown
54 lines
1.1 KiB
Markdown
|
|
# Adapter Development Skill - Usage Examples
|
||
|
|
|
||
|
|
## Example 1: Create a new Discord adapter
|
||
|
|
|
||
|
|
```
|
||
|
|
/adapter-dev create a Discord adapter using discord.py
|
||
|
|
```
|
||
|
|
|
||
|
|
The skill will:
|
||
|
|
- Analyze existing Slack/Telegram adapters
|
||
|
|
- Create `adapters/discord/adapter.py`
|
||
|
|
- Implement BaseAdapter with Discord-specific logic
|
||
|
|
- Add configuration section
|
||
|
|
- Provide setup instructions
|
||
|
|
|
||
|
|
## Example 2: Debug connection issues
|
||
|
|
|
||
|
|
```
|
||
|
|
/adapter-dev why isn't my Telegram adapter connecting?
|
||
|
|
```
|
||
|
|
|
||
|
|
The skill will:
|
||
|
|
- Check config validation
|
||
|
|
- Review credential format
|
||
|
|
- Inspect health_check() implementation
|
||
|
|
- Test async handlers
|
||
|
|
- Suggest fixes
|
||
|
|
|
||
|
|
## Example 3: Add reaction support
|
||
|
|
|
||
|
|
```
|
||
|
|
/adapter-dev add emoji reaction support to Slack adapter
|
||
|
|
```
|
||
|
|
|
||
|
|
The skill will:
|
||
|
|
- Review capabilities declaration
|
||
|
|
- Implement `send_reaction()` method
|
||
|
|
- Update Slack API calls
|
||
|
|
- Test the feature
|
||
|
|
- Document the change
|
||
|
|
|
||
|
|
## Example 4: Optimize chunking
|
||
|
|
|
||
|
|
```
|
||
|
|
/adapter-dev improve markdown-aware chunking for Telegram
|
||
|
|
```
|
||
|
|
|
||
|
|
The skill will:
|
||
|
|
- Review current chunking logic
|
||
|
|
- Implement better markdown parsing
|
||
|
|
- Preserve code blocks and formatting
|
||
|
|
- Test with long messages
|
||
|
|
- Update documentation
|