Skill downloader - bash HTTP server using socat
This commit is contained in:
89
SKILL.md
Normal file
89
SKILL.md
Normal file
@@ -0,0 +1,89 @@
|
||||
---
|
||||
name: skill-downloader
|
||||
description: Download and install skills from git.vibe-overflow.com
|
||||
metadata:
|
||||
version: "1.0.0"
|
||||
vibestack:
|
||||
main: false
|
||||
---
|
||||
|
||||
# Skill Downloader
|
||||
|
||||
Downloads and installs skills from the VibeStack registry at `git.vibe-overflow.com/azat/`.
|
||||
|
||||
## Configuration
|
||||
|
||||
| Variable | Default | Description |
|
||||
|----------|---------|-------------|
|
||||
| `DOWNLOADER_PORT` | `8083` | API port |
|
||||
| `SKILLS_DIR` | `/skills` | Installation directory |
|
||||
| `GIT_HOST` | `git.vibe-overflow.com` | Git server |
|
||||
| `GIT_USER` | `azat` | Git user/org |
|
||||
| `GIT_TOKEN` | (required) | Auth token |
|
||||
|
||||
## API
|
||||
|
||||
### List Available Skills
|
||||
|
||||
```bash
|
||||
curl http://localhost:8083/available
|
||||
```
|
||||
|
||||
Returns all repos from `git.vibe-overflow.com/azat/`:
|
||||
```json
|
||||
{
|
||||
"skills": [
|
||||
{"name": "redis", "description": "Redis cache server"},
|
||||
{"name": "postgres", "description": "PostgreSQL database"},
|
||||
{"name": "backup", "description": "Backup and restore"}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### List Installed Skills
|
||||
|
||||
```bash
|
||||
curl http://localhost:8083/installed
|
||||
```
|
||||
|
||||
### Install Skill
|
||||
|
||||
```bash
|
||||
curl -X POST http://localhost:8083/install/redis
|
||||
```
|
||||
|
||||
### Update Skill
|
||||
|
||||
```bash
|
||||
curl -X POST http://localhost:8083/update/redis
|
||||
```
|
||||
|
||||
### Remove Skill
|
||||
|
||||
```bash
|
||||
curl -X DELETE http://localhost:8083/remove/redis
|
||||
```
|
||||
|
||||
### Health
|
||||
|
||||
```bash
|
||||
curl http://localhost:8083/health
|
||||
```
|
||||
|
||||
## Installation Process
|
||||
|
||||
```
|
||||
POST /install/redis
|
||||
│
|
||||
▼
|
||||
git clone https://git.vibe-overflow.com/azat/redis /skills/redis
|
||||
│
|
||||
▼
|
||||
bash /skills/redis/scripts/autorun.sh
|
||||
│
|
||||
▼
|
||||
supervisorctl reread && update
|
||||
│
|
||||
▼
|
||||
{"success": true, "name": "redis"}
|
||||
```
|
||||
Reference in New Issue
Block a user