Agent skill
http
Caddy-based web server providing web console hosting, file sharing, and health check endpoints. Use when configuring HTTP access, setting up file sharing, or troubleshooting web connectivity.
Install this agent skill to your Project
npx add-skill https://github.com/zylos-ai/zylos-core/tree/main/skills/http
SKILL.md
HTTP Layer (C6)
User-space Caddy web server providing:
- HTTPS with automatic Let's Encrypt certificates
- File sharing via
~/zylos/http/public/ - Health check endpoint
- Component reverse proxy routes (auto-configured by
zylos add)
Architecture
| Component | Path |
|---|---|
| Binary | ~/zylos/bin/caddy |
| Caddyfile | ~/zylos/http/Caddyfile |
| Public files | ~/zylos/http/public/ |
| Access log | ~/zylos/http/caddy-access.log |
| Domain config | ~/zylos/.zylos/config.json |
Caddy runs as a PM2 service (user-space, no sudo needed for daily operations).
Setup
Caddy is set up automatically during zylos init:
- Downloads Caddy binary to
~/zylos/bin/caddy - Prompts for domain, stores in
config.json - Generates Caddyfile
- Sets port binding capability (
setcap, one-time sudo) - Starts via PM2
To re-run setup: zylos init
Endpoints
| Path | Description |
|---|---|
/ |
File listing or index.html |
/*.md |
Markdown documents (served as plain text) |
File Sharing
Place files in ~/zylos/http/public/ to share:
cp document.md ~/zylos/http/public/
# Access at: https://your.domain.com/document.md
Component Routes
Components declare http_routes in SKILL.md frontmatter. Routes are auto-managed via marker blocks in the Caddyfile by zylos add/upgrade/remove.
Troubleshooting
# Check Caddy status
pm2 logs caddy
# Validate Caddyfile
~/zylos/bin/caddy validate --config ~/zylos/http/Caddyfile --adapter caddyfile
# Reload after manual Caddyfile edits
pm2 reload caddy
# Access logs
tail -f ~/zylos/http/caddy-access.log
Port Binding
On Linux, Caddy needs CAP_NET_BIND_SERVICE to bind ports 80/443:
sudo setcap cap_net_bind_service=+ep ~/zylos/bin/caddy
This is set automatically during zylos init. If the binary is replaced (e.g., after an update), re-run the command above.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
web-console
Built-in web interface for communicating with Claude without external services. Use when setting up or configuring the web console channel, or troubleshooting browser-based access.
component-management
Guidelines for managing zylos components via CLI and C4 channels. Use when installing, upgrading, or uninstalling components, or when user asks about available components.
restart-claude
Use when the user asks to restart Claude Code, or after changing settings/hooks/keybindings.
comm-bridge
C4 communication bridge — central gateway for ALL external communication (Telegram, Lark, etc.). Use when replying to users via the "reply via" path, sending proactive messages to external channels, querying recent conversations or checkpoint status (prefer c4-db.js CLI; sqlite3 OK for unsupported queries), fetching conversation history for Memory Sync, or creating checkpoints after sync. Incoming messages are queued by channel bots and delivered to Claude via a PM2 dispatcher daemon. Session-start hooks automatically provide conversation context and can trigger Memory Sync when unsummarized conversations exceed the configured threshold.
new-session
Start a new session when context is high. Claude uses /clear, Codex uses /exit. Use when context is high or when a fresh session is needed.
health-check
System health check dispatched by the activity monitor via Control queue. Checks PM2 services, disk space, and memory usage. Use when receiving a control message containing "health-check".
Didn't find tool you were looking for?