skills/cleanexpo/new-agent-creation/SKILL.md
Provides step-by-step templates and guidance for creating new AI agents in Unite-Hub with proper registration, testing, and governance
npx skillsauth add aiskillstore/marketplace new-agent-creationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
When to Use: Creating new AI agents for Unite-Hub
Location: src/lib/agents/my-new-agent.ts
import { BaseAgent, AgentTask, AgentConfig } from './base-agent';
import { getAnthropicClient } from '@/lib/anthropic/lazy-client';
export class MyNewAgent extends BaseAgent {
constructor() {
super({
name: 'MyNewAgent',
queueName: 'my-new-agent-queue',
concurrency: 1,
retryDelay: 5000
});
}
protected async processTask(task: AgentTask): Promise<any> {
// Your agent logic here
const client = getAnthropicClient();
const response = await client.messages.create({
model: 'claude-sonnet-4-5-20250929',
max_tokens: 4096,
messages: [{
role: 'user',
content: `Task: ${task.task_type}\nPayload: ${JSON.stringify(task.payload)}`
}]
});
return {
result: response.content[0].text,
workspace_id: task.workspace_id,
model_used: 'claude-sonnet-4-5-20250929',
input_tokens: response.usage.input_tokens,
output_tokens: response.usage.output_tokens
};
}
}
File: src/lib/agents/orchestrator-router.ts
// Add to AgentIntent enum
export type AgentIntent =
| 'my_new_agent' // ← Add this
| 'email' | 'content' | ...;
// Add to classifyIntent function
if (objective.includes('my task keyword')) {
return 'my_new_agent';
}
File: .claude/agents/registry.json
{
"id": "my-new-agent",
"name": "My New Agent",
"version": "1.0.0",
"file": "src/lib/agents/my-new-agent.ts",
"capabilities": ["capability_1", "capability_2"],
"queueName": "my-new-agent-queue",
"models": ["claude-sonnet-4-5-20250929"],
"governance": "HUMAN_GOVERNED",
"verification_required": true,
"budget_daily_usd": 10.00,
"category": "marketing"
}
File: tests/agents/my-new-agent.test.ts
import { describe, it, expect, vi } from 'vitest';
import { MyNewAgent } from '@/lib/agents/my-new-agent';
describe('MyNewAgent', () => {
it('processes task successfully', async () => {
const agent = new MyNewAgent();
const task = {
id: 'test-1',
workspace_id: 'ws-123',
task_type: 'my_task',
payload: { data: 'test' },
priority: 5,
retry_count: 0,
max_retries: 3
};
const result = await agent.processTask(task);
expect(result).toBeDefined();
expect(result.workspace_id).toBe('ws-123');
});
});
File: scripts/run-my-agent.mjs
import { MyNewAgent } from '../src/lib/agents/my-new-agent.js';
const agent = new MyNewAgent();
await agent.start();
console.log('MyNewAgent running...');
Standard: All agents must filter by workspace_id, respect budgets, pass verification
development
Apple Human Interface Guidelines for content display components. Use this skill when the user asks about charts component, collection view, image view, web view, color well, image well, activity view, lockup, data visualization, content display, displaying images, rendering web content, color pickers, or presenting collections of items in Apple apps. Also use when the user says how should I display charts, what's the best way to show images, should I use a web view, how do I build a grid of items, what component shows media, or how do I present a share sheet. Cross-references: hig-foundations for color/typography/accessibility, hig-patterns for data visualization patterns, hig-components-layout for structural containers, hig-platforms for platform-specific component behavior.
tools
Automate HelpDesk tasks via Rube MCP (Composio): list tickets, manage views, use canned responses, and configure custom fields. Always search tools first for current schemas.
testing
Expert Haskell engineer specializing in advanced type systems, pure functional design, and high-reliability software. Use PROACTIVELY for type-level programming, concurrency, and architecture guidance.
tools
GraphQL gives clients exactly the data they need - no more, no less. One endpoint, typed schema, introspection. But the flexibility that makes it powerful also makes it dangerous. Without proper controls, clients can craft queries that bring down your server. This skill covers schema design, resolvers, DataLoader for N+1 prevention, federation for microservices, and client integration with Apollo/urql. Key insight: GraphQL is a contract. The schema is the API documentation. Design it carefully.