Agent skill
nexus
Nexus conversational PI agent architecture, development, and deployment. Use when working on the Nexus orchestrator, gateway, or tools.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/nexus
SKILL.md
Nexus Agent
Nexus is the conversational personal intelligence (PI) agent — a single agentic loop using the Strands Agent SDK, orchestrated by Temporal.
Architecture
UI (WebSocket) → Nexus Gateway (FastAPI) → Temporal Signal
→ Orchestrator Workflow → run_agent_turn Activity
→ Strands Agent (think → act → observe loop)
→ Core Tools (read/write/edit/bash)
→ MCP Tools (memory, skills, fetch)
→ Custom Tools (web_search)
→ Response via Redis PubSub → Gateway → UI
Key Differences from Syndicates
| Aspect | Syndicates | Nexus |
|---|---|---|
| Pattern | Multi-agent orchestration | Single agentic loop |
| SDK | Custom framework agents | Strands Agent SDK |
| Config | kubani.framework.config (YAML) |
Environment variables |
| Workflow | Multiple specialized workflows | Entity workflow pattern |
| Interaction | Event-driven, autonomous | Conversational, user-initiated |
Components
| Component | Location | Purpose |
|---|---|---|
| Orchestrator | kubani/nexus/orchestrator/ |
Temporal worker, activities, workflow |
| Gateway | kubani/nexus/gateway/ |
FastAPI, WebSocket, Discord bridge |
| Tools | kubani/nexus/orchestrator/tools/ |
Core and extra tool definitions |
Entity Workflow Pattern
The orchestrator uses a long-running Temporal entity workflow:
- Receives messages via Temporal signals
- Processes each message in a
run_agent_turnactivity - Uses
continue-as-newafter 100 iterations to prevent history growth - Maintains conversation state across turns
Key Files
activities.py—run_agent_turn(): Creates Strands Agent, builds system prompt, executes agent loopworkflow.py— Entity workflow with signal handling and continue-as-newworker.py— Temporal worker entry pointtools/core.py— Core tools (file ops, bash, etc.)tools/extra_tools.py— MCP client tools (fetch, web_search)
Local Development
# Setup
cd kubani/nexus/orchestrator
cp ../../nexus/.env.example .env # Edit with credentials
# Run worker locally
source .env && python -m kubani.nexus.orchestrator.worker
# Run gateway (separate terminal)
cd kubani/nexus/gateway
source .env && python -m kubani.nexus.gateway.main
See kubani/nexus/.env.example for all required environment variables.
Configuration
Nexus uses direct environment variables (NOT the kubani config system):
| Variable | Purpose |
|---|---|
TEMPORAL_HOST |
Temporal server address |
TEMPORAL_NAMESPACE |
Temporal namespace (usually nexus) |
NEXUS_DATABASE_URL |
PostgreSQL connection string |
REDIS_URL |
Redis for pub/sub and caching |
LLM_API_URL |
vLLM API endpoint |
QDRANT_URL |
Vector database |
MCP_MEMORY_URL |
Memory MCP server |
MCP_SKILLS_URL |
Skills MCP server |
Building & Deploying
# Build container
earthly +nexus-orchestrator
# Smoke test
docker run --rm --env-file .env <image> python -c "from kubani.nexus.orchestrator.worker import *; print('OK')"
# Deploy via GitOps
# Update image tag in infrastructure/gitops/apps/nexus/orchestrator-deployment.yaml
# Commit and push (Flux auto-deploys)
Testing Changes
- Prompt changes: Edit
activities.pysystem prompt, run worker locally, send test message via UI - Tool changes: Edit tools, run worker locally, test tool invocation
- Workflow changes: Edit
workflow.py, restart worker, verify signal handling - Always follow the 4-stage workflow: local test → integration → container build → deploy
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?