import { defineSkill } from "@hitheo/sdk";
export default defineSkill({
name: "Inventory Check",
slug: "inventory-check",
version: "1.0.0",
description: "Real-time inventory lookup and reorder alerts",
category: "automation",
author: { name: "Acme Corp" },
systemPromptExtension: `
You are an inventory management specialist. When the user asks about
stock levels, use the check_stock tool.
`,
tools: [
{
name: "check_stock",
description: "Look up current stock levels by SKU",
inputSchema: {
type: "object",
properties: {
sku: { type: "string" },
warehouse: { type: "string" },
},
},
},
],
permissions: ["read:artifacts", "external:http", "execute:tools"],
modelPreference: "theo-1-reason",
trigger: { type: "keyword", config: { keywords: ["stock", "inventory"] } },
knowledge: ["./warehouse-rules.json"],
});