ソース情報
- リポジトリ
- tools-only/X-Skills
- ソースの最終更新活動
- 2026年2月9日 04:08
- 検出された SKILL.md の言語
- 英語
- スター
- 7
- フォーク
- 1
インストール方法
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
ソースファイルを確認
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
メニュー
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
SOC 職業分類に基づく
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/tools-only/X-Skills --skill ai-agents-setupコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
SKILL.md を表示中
Index of Build Systems Skills
Coordination patterns for distributed dataflow systems including barriers, epochs, and distributed snapshots
Windowing, sessionization, time-series aggregation, and late data handling for streaming systems
| name | ai-agents-setup |
| description | Initialize a multi-agent orchestration project with AI SDK v5 agents,... |
| model | sonnet |
You are an expert in multi-agent system architecture and AI SDK v5 orchestration.
Set up a complete multi-agent orchestration project using @ai-sdk-tools/agents, including:
First, verify the user has Node.js 18+ installed:
node --version
If not installed, guide them to install Node.js from https://nodejs.org/
mkdir -p ai-agents-project
cd ai-agents-project
# Initialize npm project
npm init -y
# Install dependencies
npm install @ai-sdk-tools/agents ai zod
# Install AI provider SDKs (user chooses)
npm install @ai-sdk/anthropic # For Claude
npm install @ai-sdk/openai # For GPT-4
npm install @ai-sdk/google # For Gemini
mkdir -p agents
mkdir -p examples
mkdir -p config
import { createAgent } from '@ai-sdk-tools/agents';
import { anthropic } from '@ai-sdk/anthropic';
export const coordinator = createAgent({
name: 'coordinator',
model: anthropic('claude-3-5-sonnet-20241022'),
system: `You are a coordinator agent responsible for:
- Analyzing incoming requests
- Routing to the most appropriate specialized agent
- Managing handoffs between agents
- Aggregating results from multiple agents
- Returning cohesive final output
Available agents:
- researcher: Gathers information, searches documentation
- coder: Implements code, follows specifications
- reviewer: Reviews code quality, security, best practices
When you receive a request:
1. Analyze what's needed
2. Route to the best agent
3. Manage any necessary handoffs
4. Return the final result`,
handoffTo: ['researcher', 'coder', 'reviewer']
});
import { createAgent } from '@ai-sdk-tools/agents';
import { anthropic } from '@ai-sdk/anthropic';
import { z } from 'zod';
export const researcher = createAgent({
name: 'researcher',
model: anthropic('claude-3-5-sonnet-20241022'),
system: `You are a research specialist. Your job is to:
- Gather information from documentation
- Search for best practices
- Find relevant examples
- Analyze technical requirements
- Provide comprehensive research summaries
Always provide sources and reasoning for your findings.`,
tools: {
search: {
description: 'Search for information',
parameters: z.object({
query: z.string().describe('Search query'),
sources: z.array(z.string()).optional().describe('Specific sources to search')
}),
execute: async ({ query, sources }) => {
// In real implementation, this would search docs, web, etc.
return {
results: `Research results for: ${query}`,
sources: sources || ['documentation', ]
};
}
}
},
: [, ]
});
import { createAgent } from '@ai-sdk-tools/agents';
import { anthropic } from '@ai-sdk/anthropic';
export const coder = createAgent({
name: 'coder',
model: anthropic('claude-3-5-sonnet-20241022'),
system: `You are a code implementation specialist. Your job is to:
- Write clean, production-ready code
- Follow best practices and patterns
- Implement features according to specifications
- Write code that is testable and maintainable
- Document your code appropriately
When you complete implementation, hand off to reviewer for quality check.`,
handoffTo: ['reviewer', 'coordinator']
});
import { createAgent } from '@ai-sdk-tools/agents';
import { anthropic } from '@ai-sdk/anthropic';
export const reviewer = createAgent({
name: 'reviewer',
model: anthropic('claude-3-5-sonnet-20241022'),
system: `You are a code review specialist. Your job is to:
- Review code quality and structure
- Check for security vulnerabilities
- Verify best practices are followed
- Ensure code is testable and maintainable
- Provide constructive feedback
Provide a comprehensive review with:
- What's good
- What needs improvement
- Security concerns (if any)
- Overall quality score`
});
import { orchestrate } from '@ai-sdk-tools/agents';
import { coordinator } from './agents/coordinator';
import { researcher } from './agents/researcher';
import { coder } from './agents/coder';
import { reviewer } from './agents/reviewer';
// Register all agents
const agents = [coordinator, researcher, coder, reviewer];
export async function runMultiAgentTask(task: string) {
console.log(`\n🤖 Starting multi-agent task: ${task}\n`);
const result = await orchestrate({
agents,
task,
coordinator, // Coordinator decides routing
maxDepth: 10, // Max handoff chain length
timeout: 300000, // 5 minutes
onHandoff: (event) => {
console.log(`\n🔄 Handoff: ${event.from} → ${event.to}`);
console.log(` Reason: \n`);
},
: {
.();
.();
.();
}
});
result;
}
(. === ) {
task = process.[] || ;
(task)
.( {
.();
.(result.);
})
.( {
.(, error);
process.();
});
}
# Choose your AI provider(s) and add the appropriate API keys
# Anthropic (Claude)
ANTHROPIC_API_KEY=your_anthropic_key_here
# OpenAI (GPT-4)
OPENAI_API_KEY=your_openai_key_here
# Google (Gemini)
GOOGLE_API_KEY=your_google_key_here
node_modules/
.env
dist/
*.log
import { runMultiAgentTask } from '../index';
async function example() {
const result = await runMultiAgentTask(
'Build a TypeScript REST API with user authentication, including tests and documentation'
);
console.log('Result:', result);
}
example();
import { runMultiAgentTask } from '../index';
async function example() {
const result = await runMultiAgentTask(
'Research best practices for building scalable microservices with Node.js'
);
console.log('Result:', result);
}
example();
Add scripts to package.json:
{
"scripts": {
"dev": "ts-node index.ts",
"example:code": "ts-node examples/code-generation.ts",
"example:research": "ts-node examples/research-pipeline.ts",
"build": "tsc",
"start": "node dist/index.js"
},
"devDependencies": {
"@types/node": "^20.0.0",
"ts-node": "^10.9.0",
"typescript": "^5.0.0"
}
}
{
"compilerOptions": {
"target": "ES2020",
"module": "commonjs",
"lib": ["ES2020"],
"outDir": "./dist",
"rootDir": "./",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"declaration": true,
"declarationMap":
# Multi-Agent Orchestration Project
Built with AI SDK v5 and @ai-sdk-tools/agents
## Setup
1. Install dependencies:
```bash
npm install
Configure API keys:
cp .env.example .env
# Edit .env with your API keys
Run examples:
npm run example:code
npm run example:research
import { runMultiAgentTask } from './index';
const result = await runMultiAgentTask('Your task here');
console.log(result.output);
The system uses agent handoffs to coordinate complex tasks:
# Completion Steps
After creating all files:
1. **Install TypeScript tooling**:
```bash
npm install -D typescript ts-node @types/node
Create .env from example:
cp .env.example .env
echo "⚠️ Please edit .env and add your API keys"
Test the setup:
npm run dev "Build a simple TODO API"
Inform user:
✅ Multi-agent project setup complete!
📁 Project structure:
agents/
├── coordinator.ts
├── researcher.ts
├── coder.ts
└── reviewer.ts
examples/
├── code-generation.ts
└── research-pipeline.ts
index.ts
.env.example
tsconfig.json
package.json
README.md
📝 Next steps:
1. Add your API keys to .env
2. Run: npm run dev "Your task here"
3. Try examples: npm run example:code
🤖 Your agents are ready to collaborate!
Ask the user which template they want:
If user specifies a template, adjust the agents accordingly.