/prometheus-skill-pack:native-agentfrom prometheus-skill-pack
Scaffolds a native Rust agent workspace with a Supabase-style management CLI. The generated agent binary embeds an Axum HTTP server supporting A2A, AG-UI, and A2UI protocols, a React 19 assistant-ui chat frontend, liter-llm provider routing, simple MCP client tool integration, the Prometheus skill pack selection engine, and optional Docker templates with Desktop detection and image-loading commands. Generated source requires configuration and full integration evidence before release or deployment.
Ships in prometheus-skill-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Generates an editable Rust agent workspace from the selected templates. The scaffold is source output. A successful generation or compiler check does not establish provider inference, protocol interoperability, service readiness, container operation, or production acceptance. Complete the phase's production implementation before running its local full-integration gate.
<agent-name>/
├── Cargo.toml ← workspace (resolver=2, release profile)
├── agent.toml ← agent config: providers, models, MCP servers, skills dirs
├── system_prompt.md ← agent system prompt (hot-reloadable)
├── .env.example ← required env vars
├── Dockerfile ← multi-stage: cargo-chef + Node.js → slim Debian
├── docker-compose.yml ← agent + optional surreal-memory/pk/liter-llm
├── .dockerignore
├── docker-detect.sh ← Docker CLI/Desktop/Compose detection script
├── CLAUDE.md ← agent dev guide (for further AI-assisted work)
├── README.md ← agent documentation with Docker instructions
│
├── crates/
│ ├── agent-core/ ← domain types (no I/O)
│ ├── agent-skills/ ← TF-IDF skill discovery + hot-reload
│ ├── agent-mcp/ ← lightweight JSON-RPC 2.0 MCP client
│ ├── agent-server/ ← Axum: A2A + AG-UI + A2UI + Chat API + static files
│ └── agent-cli/ ← management binary + docker subcommands
│ ├── src/main.rs
│ └── src/docker.rs ← docker detect/build/load/up/down/push/shell
│
└── frontend/ ← React 19 + Vite 8 + assistant-ui
└── src/
├── components/Chat.tsx ← AG-UI SSE streaming adapter
├── components/ProviderConfig.tsx
└── lib/api.ts
Before wiring generated agents to local Prometheus MCP services, detect the host OS:
uname -s
Darwin), prefer the repository service manager:
bash scripts/prometheus-services.sh doctor, then install and load if
pk-cherry (:8942) or forge mcp (:8943) are not running. These are user
LaunchAgents for the logged-in user, with explicit HOME, USER, PATH, and
service environment.shared/launchagents/ai.prometheus.surreal-memory-native.plist. It runs
surreal-memory-server on loopback :23001, connects to native SurrealDB
on :28000, and selects namespace/database memory/mcp. The native service
manager owns this service when selected; port 23001 does not imply Docker.surreal-memory container and persistent surreal-data volume. Its default
published port is also 23001. Choose one owner for that host port, or
deliberately configure a different mapping and endpoint. This template does
not select the full pack's native memory/mcp database or migrate its data.
Mini's optional Compose contract separately uses memory/main_local_384;
a shared port does not establish shared data or service parity.Uses liter-llm as the model gateway. Providers configured in agent.toml.
The chat frontend shows configured providers and lets users switch — cannot add new
providers (requires editing agent.toml + my-agent providers set-default).
| Protocol | Endpoint | Purpose |
|---|---|---|
| A2A | GET /.well-known/agent.json | Agent card |
| A2A | POST /a2a/tasks | Receive tasks from other agents |
| AG-UI | POST /agui/run + GET /agui/events/:id | SSE stream (CopilotKit compatible) |
| A2UI | POST /a2ui/session | Prometheus combined protocol |
| Chat | POST /api/chat | OpenAI-compatible completions |
| Frontend | GET /* | React 19 chat UI served as static files |
Connects to configured MCP servers and makes their tools available to the LLM. Aggregates tools from multiple servers. Supports SSE transport.
TF-IDF selection over configured skill directories. Auto-injects top-k relevant skills into the system prompt per conversation turn. Hot-reloadable without restart.
my-agent start [--port 8080] [--background]
my-agent stop / status / logs [--follow]
my-agent providers list / set-default <name>
my-agent models set-default <model>
my-agent mcp add <name> <url> / remove / ping / list
my-agent skills list [--verbose] / reload
my-agent config show / get <key> / set <key> <value>
# Docker subcommands (if Docker is available)
my-agent docker detect # detect Docker CLI / Desktop / Compose
my-agent docker build [--tag] [--no-cache] [--platform] [--load]
my-agent docker load [--tag] # build + load into Docker Desktop image store
my-agent docker up [-d] [--build] # docker compose up
my-agent docker down [--volumes] # docker compose down
my-agent docker ps # container status
my-agent docker logs [-f] [--tail] # container logs
my-agent docker push [--registry] # push to registry
my-agent docker shell # exec into running container
The specify phase uses Docker detection to select the requested scaffold:
| Detected | Behavior |
|---|---|
| Docker CLI + daemon running | Offers Dockerfile + Compose configuration |
| Docker Desktop installed (macOS) | Offers --load to push image into Desktop image store |
| Docker Compose v2 available | docker-compose.yml with companion services |
| Docker not available | Skips Docker files, prints install link |
Dockerfile — Multi-stage build:
cargo-chef for dependency layer caching (only rebuilds deps when Cargo.toml changes)debian:bookworm-slim runtime with non-root agent userdocker-compose.yml — Includes all enabled services:
agent — the native agentsurreal-memory — knowledge graph (if enabled)prometheus-knowledge — Karpathy wiki (if enabled)liter-llm — model routing proxy (if enabled)Enabled services share an agent-net bridge network and named volumes.
The template defines healthchecks for the agent and optional memory service;
the optional knowledge and liter-llm services use service_started dependencies.
Container start and healthcheck success do not prove a real model or MCP request.
/create-native-agent
# Generated:
cd my-agent
cp .env.example .env # add API keys
# After all phase production is complete, build the selected output locally.
# Build success is not the full-integration acceptance gate.
# Option A: Native (Rust binary)
cargo build --release -p agent-cli
npm --prefix frontend run build
./my-agent start # http://localhost:8080
# Option B: Docker (explicit build after phase production is complete)
my-agent docker build # builds + loads into Docker Desktop
my-agent docker up -d # starts agent + configured services
open http://localhost:8080
# Option C: docker-compose directly
docker compose up -d
When Docker Desktop is detected and running, my-agent docker build automatically
adds --load to push the image directly into Docker Desktop's local image store.
The image then appears in Docker Desktop → Images immediately — no registry needed.
my-agent docker detect
# Docker CLI: ✅ v27.x
# Docker Desktop: ✅ running
# Compose: ✅ v2.x
my-agent docker build --tag my-agent:latest
# 🔨 Building my-agent:latest...
# → Building React frontend...
# → Building Docker image (loading into Docker Desktop)...
# ✅ Image my-agent:latest built and loaded into Docker Desktop
# Browse: Docker Desktop → Images → my-agent:latest
research-agent (:8081) ─── A2A ──→ forge-agent (:8080)
↓ ↓
[docker-compose] [docker-compose]
surreal-memory prometheus-knowledge
prometheus-knowledge forge-rs MCP
Each generated agent has an A2A card endpoint at /.well-known/agent.json.
An A2A peer URL is not an MCP server URL. Cross-agent task routing requires
an A2A client or adapter and a real authorized request across that boundary;
the diagram is an illustrative topology, not an automatically connected network.
/create-native-agent — full interactive scaffold (Docker by default; pass
target: librefang-wasm or target: both to additionally produce a
WASM-deployable skill)| Target | Emits | Use Case |
|---|---|---|
docker (default) | Docker stack with native agent binary | Local dev, container orchestration |
librefang-wasm | crates/agent-skill/ + skill.toml for LibreFang | Deploy to bossfang via /upload-to-bossfang |
both | Both above in one workspace | Migration / dual-deploy |
When librefang-wasm is selected, the WASM crate uses the same agent-core
domain types as agent-server and follows the LibreFang Guest ABI — see
skills/rust/librefang-wasm-skill/ for the underlying skill that defines
the WASM contract.
prompts/generate.md (opens in a new tab)prompts/specify.md (opens in a new tab)references/model-routing.md (opens in a new tab)references/protocols.md (opens in a new tab)skill.toml (opens in a new tab)skills/start-business-build/scripts/orchestrate.sh (opens in a new tab)skills/upload-to-bossfang/references/bossfang-allowlist.example.toml (opens in a new tab)skills/upload-to-bossfang/references/threat-model.md (opens in a new tab)skills/upload-to-bossfang/scripts/upload.sh (opens in a new tab)templates/docker/Dockerfile.tera (opens in a new tab)templates/docker/docker-compose.yml.tera (opens in a new tab)templates/docker/docker_commands.rs.tera (opens in a new tab)templates/docker/docker_detect.sh.tera (opens in a new tab)templates/docker/dockerignore.tera (opens in a new tab)templates/frontend/Chat.tsx.tera (opens in a new tab)templates/frontend/ProviderConfig.tsx.tera (opens in a new tab)templates/frontend/api.ts.tera (opens in a new tab)templates/frontend/package.json.tera (opens in a new tab)templates/project/agent.toml.tera (opens in a new tab)templates/project/env_example.tera (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub prometheus-ags/prometheus-skill-system --plugin prometheus-skill-pack218 skills in this plugin
/actor-modelTokio-native actor model pattern for Prometheus AGS projects. Implements actors as tokio tasks communicating via mpsc channels with a typed message enum, enabling safe concurrent state management without shared locks. Used in UAR session management, pk-librarian event broadcasting, and parking-lot scheduler design. Use when a component needs to own state exclusively while serving concurrent callers.
/adversarial-reviewIsolated, cross-model adversarial review of KBD artifacts and change diffs. Dispatches a fresh-context LLM judge over an OpenAI-compatible REST gateway (openai-proxy or `liter-llm api`) with an explicit mandate to find problems — the model that produced an artifact or change is never the model that reviews it. Runs as a pipeline stage inside kbd-assess/analyze/plan (artifact mode) and kbd-execute's single phase-boundary QA step (diff mode, once over the whole phase diff). Findings are severity-bucketed (CRITICAL/WARNING/SUGGESTION) and the judge's own report is screened by sycophancy-correction before it is surfaced.
Other plugins' skills for the same job
/agent-team-creatorCreate, revise, package, and deploy agent-team definitions with staged questions and native exports for UAR, Codex, Claude Code, Copilot, Kimi Code, MiniMax CLI, OpenCode and DeepSeek. Use for team definition and catalog lifecycle; use agent-team-manage for active runtime task state.2 plugins in one repository ship this exact skill · first indexed Nov 27, 2026