agentuity-services
БесплатноБез исполняемых скриптовНе проверенUse when selecting or using Agentuity service clients from app code. Covers standalone clients for key-value, vector, object storage, durable streams, queues…
от agentuity★ 19 звёзд на GitHubОб этом скилле
Agentuity Service Clients
Use standalone packages when Agentuity services belong inside framework routes, server functions, workers, scripts, or CLIs. Construct clients in server-side modules, then call them from the handler that owns the request or job.
Basic Pattern
npm install @agentuity/keyvalue
import { KeyValueClient } from '@agentuity/keyvalue';
interface Preference {
readonly theme: 'light' | 'dark';
}
const kv = new KeyValueClient();
export async function savePreference(
userId: string,
preference: Preference
): Promise<void> {
await kv.set('preferences', userId, preference, {
ttl: 60 * 60 * 24 * 30,
});
}
export async function getPreference(userId: string): Promise<Preference | undefined> {
const result = await kv.get<Preference>('preferences', userId);
return result.exists ? result.data : undefined;
}
Most clients read AGENTUITY_SDK_KEY automatically. Framework dev commands are
fine when that environment is already present; use agentuity dev when you want
the CLI to inject linked Agentuity project credentials for the local process.
Choose the Right Service
| Need | Package |
|---|---|
| Exact-key JSON, TTL cache, preferences, counters | @agentuity/keyvalue |
| Semantic search, retrieval, document embeddings | @agentuity/vector |
| S3-compatible files and binary data | @agentuity/storage |
| Durable generated output or resumable streams | @agentuity/stream |
| Model catalog and routed model requests | @agentuity/aigateway |
| Async message handoff | @agentuity/queue |
| Managed outbound or inbound email | @agentuity/email |
| Cron schedules and delivery tracking | @agentuity/schedule |
| Work items, comments, tags, attachments | @agentuity/task |
| Managed webhook ingest URLs and receipts | @agentuity/webhook |
| Isolated command execution | @agentuity/sandbox |
| Cloud coding sessions and workspaces | @agentuity/coder |
| Logger, tracer, and meter setup | @agentuity/telemetry |
Use agentuity-database for relational data. Use agentuity-cloud when managing resources from the terminal.
Direct Clients vs Hono Middleware
| Code location | Use |
|---|---|
| Framework routes, scripts, and workers | Direct clients such as new QueueClient() |
| Hono routes that should share clients through context | @agentuity/hono middleware |
| Browser components | Your server route, not service clients directly |
| Non-TypeScript systems | REST API |
Hono example:
import { Hono } from 'hono';
import { agentuity } from '@agentuity/hono';
import type { Services } from '@agentuity/hono';
const app = new Hono<{ Variables: Pick<Services, 'kv' | 'queue'> }>();
app.use('*', agentuity());
app.post('/api/jobs', async (c) => {
const message = await c.var.queue.publish('jobs', { requestedAt: new Date().toISOString() });
await c.var.kv.set('job-status', message.id, { status: 'queued' });
return c.json({ messageId: message.id }, 202);
});
The Hono middleware injects common clients such as KV, vector, stream, queue, email, schedule, task, sandbox, logger, tracer, and meter. AI Gateway, database, object storage, webhooks, and Coder are direct clients.
Configuration
Most API-backed clients accept constructor options:
| Option | Use |
|---|---|
apiKey |
Override AGENTUITY_SDK_KEY or AGENTUITY_CLI_KEY |
orgId |
Target an organization explicitly for org-scoped APIs |
url |
Override service URL for local or custom endpoints |
logger |
Provide a logger implementation |
Object storage uses S3-style bucket env values:
| Variable | Purpose |
|---|---|
AWS_ENDPOINT |
S3 endpoint written by project linking |
AWS_BUCKET |
Bucket name |
AWS_ACCESS_KEY_ID |
Bucket access key |
AWS_SECRET_ACCESS_KEY |
Bucket secret |
AWS_REGION |
Optional region |
Read bucket config with:
import { bucketConfigFromEnv, createS3Client } from '@agentuity/storage';
const storage = createS3Client(bucketConfigFromEnv());
Service Examples
Vector search:
import { VectorClient } from '@agentuity/vector';
const vector = new VectorClient();
await vector.upsert('docs', {
key: 'service-clients',
document: 'Agentuity services are available through standalone packages.',
metadata: { source: 'docs' },
});
const results = await vector.search('docs', {
query: 'How do I use services from app code?',
limit: 3,
});
Queue handoff:
import { QueueClient } from '@agentuity/queue';
const queue = new QueueClient();
const message = await queue.publish(
'report-jobs',
{ accountId: 'acct_123', month: '2026-06' },
{ idempotencyKey: 'report-acct_123-2026-06' }
);
Task tracking:
import { TaskClient } from '@agentuity/task';
const tasks = new TaskClient();
await tasks.create({
title: 'Review generated report',
description: 'Validate report output before sending it to the customer.',
});
Common Mista
Установить agentuity-services в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл agentuity-services?
Use when selecting or using Agentuity service clients from app code. Covers standalone clients for key-value, vector, object storage, durable streams, queues, email, schedules, tasks, webhooks, sandbox, Coder, telemetry, direct clients versus Hono middleware, and service environment configuration.
Как установить скилл agentuity-services?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agentuity-services запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic