Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
A comprehensive collection of Agent Skills for context engineering, multi-agent architectures, and production agent systems.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
examples/llm-as-judge-skills/tools/index.md
1# Tools Index23Tools provide specific capabilities that agents can use to accomplish tasks.45## Tool Categories67### Evaluation Tools8**Path**: `tools/evaluation/`910Tools for assessing LLM output quality.1112| Tool | Purpose | Approval |13|------|---------|----------|14| `directScore` | Score response against criteria | No |15| `pairwiseCompare` | Compare two responses | No |16| `generateRubric` | Generate scoring rubric | No |17| `extractCriteria` | Extract criteria from task | No |1819---2021### Research Tools22**Path**: `tools/research/`2324Tools for gathering and processing information.2526| Tool | Purpose | Approval |27|------|---------|----------|28| `webSearch` | Search the web | No |29| `readUrl` | Extract content from URL | No |30| `extractClaims` | Identify claims in text | No |31| `verifyClaim` | Cross-reference a claim | No |32| `synthesize` | Combine findings | No |3334---3536### Orchestration Tools37**Path**: `tools/orchestration/`3839Tools for managing multi-agent workflows.4041| Tool | Purpose | Approval |42|------|---------|----------|43| `delegateToAgent` | Route task to agent | No |44| `parallelExecution` | Run tasks concurrently | No |45| `waitForCompletion` | Wait for async tasks | No |46| `synthesizeResults` | Combine agent outputs | No |47| `handleError` | Manage failures | No |4849## Tool Design Patterns5051### Standard Tool Structure5253```typescript54export const toolName = tool({55description: "Clear description of what tool does",5657parameters: z.object({58// Required parameters first59requiredParam: z.string().describe("What this parameter is for"),6061// Optional parameters with defaults62optionalParam: z.number().default(10)63.describe("What this parameter controls")64}),6566// Approval for dangerous operations67needsApproval: false, // or true, or function6869// Strict mode for guaranteed schema compliance70strict: true,7172execute: async (input) => {73try {74const result = await performOperation(input);75return { success: true, data: result };76} catch (error) {77return {78success: false,79error: {80code: error.code ?? "UNKNOWN",81message: error.message,82retryable: isRetryable(error)83}84};85}86},8788// Optional: control what model sees89toModelOutput: (result) => ({90summary: result.data.summary,91truncated: result.data.full.length > 500092})93});94```9596### Error Response Pattern9798```typescript99interface ToolError {100code: string; // Machine-readable error code101message: string; // Human-readable message102retryable: boolean; // Whether retry might help103details?: object; // Additional context104}105106interface ToolResult<T> {107success: boolean;108data?: T;109error?: ToolError;110metadata: {111executionTimeMs: number;112[key: string]: any;113};114}115```116117## Adding New Tools1181191. Determine category or create new: `tools/<category>/`1202. Create tool file: `tools/<category>/<tool-name>.md`1213. Define:122- Purpose and description123- Input parameters with Zod schema124- Output schema125- Error codes126- Usage examples1274. Update this index1285. Assign to relevant agents129130## Tool Selection Guidelines131132### When Agent Needs To...133134| Action | Tool Category | Suggested Tools |135|--------|---------------|-----------------|136| Assess quality | Evaluation | directScore, pairwiseCompare |137| Find information | Research | webSearch, readUrl |138| Verify facts | Research | verifyClaim, extractClaims |139| Coordinate work | Orchestration | delegateToAgent |140| Wait for results | Orchestration | waitForCompletion |141142