skilld-http ist ein C99-CGI-Programm (HTML 4.01, kein JavaScript, keine Anmeldung). Es liest und schreibt nur ueber den MCP-Server von skilld (SKILLD_URL, Vorgabe http://127.0.0.1:8790/mcp), Aenderungen aus dem Browser committet skilld also wie die eines Agenten: Liste, Suche, Lesen, Bearbeiten, Klonen, Loeschen (nur POST), Neu, Historie, Diff, Sync. vendor/cgi/cgi.h, tests/test-http.sh, Makefile baut und installiert beide Programme. Die Bibliothek heisst jetzt SKILLD_HOME; SKILLLIB bleibt als alter Name gueltig.
3.0 KiB
skilld
MCP server for the skill library, written in C99/POSIX.
Eight tools over the standard MCP surface: list, search, read, write and
inspect SKILL.md files under $SKILLS_DIR. Built on libmcp (header-only).
make
make test
The binary speaks MCP over stdio, so it is registered as an MCP server, not started by hand.
Git is the substrate
Every write through skilld is committed: skill_create, skill_update,
skill_clone and skill_delete end with a commit under the skill's own message
(skilld: update <name>). A skill written by one agent and corrected by another
keeps both, and git log answers who changed what and when.
git -C "$SKILLLIB" init
git -C "$SKILLLIB" remote add origin <somewhere>
Four tools come with it:
| tool | what it does |
|---|---|
skill_history |
commits for one skill or the whole library |
skill_diff |
what was changed outside skilld and is not committed yet |
skill_sync |
pull --rebase from the remote; push: true sends instead |
| (automatic) | a write whose working tree is dirty commits the change with it |
Is the library not a repository, nothing breaks: the tools say so instead of pretending, and skilld prints at start which mode it is in. Version control that silently does nothing is worse than none.
HTTP
skilld # MCP over stdin/stdout
skilld --http 8790 # same tools over Streamable HTTP
skilld --http :8790 # ... on every address
The HTTP server lives in libmcp (mcp_serve_http), so tasksd and skilld share
one implementation instead of two copies.
Dependency: libmcp
vendor/libmcp/mcp.h is a copy of the header from the libmcp repository, so
this repository builds and tests on its own. Refresh it after a libmcp change:
cp ../libmcp/mcp.h vendor/libmcp/mcp.h
make uses LIBDIR=vendor/libmcp by default; override it to build against a
checkout elsewhere: make LIBDIR=../libmcp.
Web UI (CGI)
skilld-http is a C99 CGI program: HTML 4.01, no JavaScript, no auth. It reads and
writes only through skilld's MCP server (SKILLD_URL, default
http://127.0.0.1:8790/mcp), so edits from the browser are committed by skilld the same
way an agent's edits are.
| Address | Effect |
|---|---|
/ |
all skills |
/search?q=… |
ranked search |
/s/<name> |
read SKILL.md |
/s/<name>/edit |
description, body, append |
/s/<name>/clone |
clone to a new name |
/s/<name>/delete |
POST only |
/new |
create a skill |
/history?name=… |
git history |
/diff |
uncommitted changes |
/sync |
pull/push buttons |
make # skilld and skilld-http
sudo make install # /usr/local/bin/skilld, /usr/local/lib/cgi-bin/skilld-http
With busybox httpd:
install -d /srv/www/cgi-bin
install -m 0755 skilld-http /srv/www/cgi-bin/
SKILLD_URL=http://127.0.0.1:8790/mcp \
busybox httpd -f -p 0.0.0.0:8798 -h /srv/www
vendor/cgi/cgi.h is the shared CGI helper (one copy each in wikid, memoryd, skilld and
tasksd).