Agent skill
libagent
libagent - Agent orchestration library for conversational AI. AgentMind class coordinates LLM completions, memory management, tool execution, and multi-turn conversations. AgentAction handles tool calls and action processing. Use for building chat agents, RAG pipelines, and AI assistants. Integrates with libmemory, librpc, and libllm
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/libagent
SKILL.md
libagent Skill
When to Use
- Building conversational AI agents with tool capabilities
- Coordinating LLM completions with memory context
- Processing multi-turn conversations with state
- Implementing RAG (retrieval-augmented generation) pipelines
Key Concepts
AgentMind: Core reasoning engine that processes requests through LLM completions, manages conversation state, and coordinates tool execution.
AgentAction: Handles individual tool calls, executes actions, and returns results to the conversation flow.
Usage Patterns
Pattern 1: Basic agent request
import { AgentMind } from "@copilot-ld/libagent";
const mind = new AgentMind(memoryClient, llmClient, toolClient);
const response = await mind.process({
resourceId: conversationId,
content: "What is the weather?",
});
Pattern 2: Streaming responses
for await (const chunk of mind.stream(request)) {
process.stdout.write(chunk.content);
}
Integration
Works with libmemory for context windows, librpc for gRPC clients, and
libllm for completions. Used by the Agent service.
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?