基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/omiinaya/repairshopr-skills --skill repairshopr-contract命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | repairshopr-contract |
| description | Manage service contracts in RepairShopr - create, retrieve, update, delete |
| license | MIT |
| compatibility | opencode |
| metadata | {"audience":"administrators, account managers","api":"GET /contracts, POST /contracts, GET /contracts/{id}, PUT /contracts/{id}, DELETE /contracts/{id}"} |
I manage service contracts between your business and customers. Contracts define service agreements, SLA terms, and can be linked to tickets and assets. I support full CRUD operations.
Use this when:
Required API base URL:
VITE_REPAIRSHOPR_SUBDOMAINVITE_REPAIRSHOPR_API_KEYPermissions:
List Contracts (GET /contracts) Optional:
page (integer) - Page number (50 results per page)Create Contract (POST /contracts) Required:
customer_id (integer) - Customer this contract belongs toOptional:
name (string) - Contract name/titlecontract_amount (string) - Contract value (e.g., "30k")start_date (string) - Start date (ISO 8601)end_date (string) - End date (ISO 8601)description (string) - Contract descriptionprimary_contact (string) - Primary contact personstatus (string) - Status (e.g., "Opportunity", "Active", "Expired")likelihood (integer) - Likelihood percentage (0-100)apply_to_all (boolean) - Apply to all customer assetssla_id (integer) - Associated SLA IDGet Single Contract (GET /contracts/{id})
id (integer, required) - Contract IDUpdate Contract (PUT /contracts/{id})
id (integer, required) - Contract ID
Optional body similar to create (all fields updatable)Delete Contract (DELETE /contracts/{id})
id (integer, required) - Contract IDExample call:
const result = await skill({ name: "repairshopr-contract" }, {
customer_id: 123,
name: "Annual Maintenance Agreement",
contract_amount: "$3,600",
start_date: "2024-01-01T00:00:00Z",
end_date: "2024-12-31T23:59:59Z",
status: "Active",
description: "Covers unlimited repairs for up to 10 devices"
})
Response includes:
id, customer_id, name, contract_amount, start_date, end_date, status, sla_id, etc.customer_id is required and must existstatus values are flexible but typically include: Opportunity, Active, Expired, Canceledapply_to_all links contract to all customer assets on creationrepairshopr-customer-search - To get customer IDrepairshopr-sla (if available) - For SLA configurationsrepairshopr-asset - For asset-contract relationships