用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/omiinaya/repairshopr-skills --skill repairshopr-purchase-order命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | repairshopr-purchase-order |
| description | Manage purchase orders to vendors in RepairShopr |
| license | MIT |
| compatibility | opencode |
| metadata | {"audience":"parts managers, purchasers, administrators","api":"GET /purchase_orders, POST /purchase_orders, GET /purchase_orders/{id}, POST /purchase_orders/{id}/receive, POST /purchase_orders/{id}/create_po_line_item"} |
I manage purchase orders (POs) to vendors. Purchase orders track orders of products/parts from suppliers. I can list POs, create new ones, view details, receive items (mark as arrived), and add line items to an existing PO.
Use this when:
Required API base URL:
VITE_REPAIRSHOPR_SUBDOMAINVITE_REPAIRSHOPR_API_KEYPermissions:
List Purchase Orders (GET /purchase_orders) Optional:
page (integer) - Page number (20 results per page)Create Purchase Order (POST /purchase_orders) Required:
vendor_id (integer) - Vendor to order fromOptional:
order_date (string) - Date of PO (ISO 8601)expected_date (string) - Expected delivery datedue_date (string) - PO due datepaid_date (string) - Payment date if prepaidshipping_cents (integer) - Shipping cost in centsother_cents (integer) - Other costsshipping_notes (string) - Shipping instructionsdiscount_percent (integer) - Discount percentagegeneral_notes (string) - General notesuser_id (integer) - Assigned userlocation_id (integer) - Delivery locationdelivery_tracking (string) - Tracking URL or numberstatus (string) - PO statusline_items - Usually added separately via endpoint belowGet Purchase Order (GET /purchase_orders/{id})
id (integer) - PO IDAdd Line Item (POST /purchase_orders/{id}/create_po_line_item)
id (integer) - PO ID
Body:product_id (integer) - Product to order (must have "Maintain Stock" enabled)quantity (integer) - QuantityReceive Purchase Order (POST /purchase_orders/{id}/receive)
id (integer) - PO ID
Body: optionally line_item_id (integer) - specific line item to receive; if omitted, receive all pending itemsExample call:
// Create a PO
const po = await skill({ name: "repairshopr-purchase-order" }, {
vendor_id: 10,
order_date: "2024-01-10",
expected_date: "2024-01-20",
shipping_cents: 1500,
general_notes: "Please ship via UPS ground"
})
// Add a line item (product)
await skill({ name: "repairshopr-purchase-order" }, {
product_id: 500,
quantity: 5
}, { id: po.purchase_order.id, method: 'POST', endpoint: '/create_po_line_item' })
// Receive the full PO (or specific line items)
await skill({ name: "repairshopr-purchase-order" }, {},
{ id: po.purchase_order.id, method: 'POST', endpoint: '/receive' }
)
Response includes:
id, number, vendor, status, total, line_items, dates, etc.po_line_item objectmaintain_stock: true or you get errorrepairshopr-vendor - To manage vendorsrepairshopr-product - To ensure products are stock-enabledrepairshopr-item - Parts orders created from tickets