[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M793612393AHQ8C7K7MA7366":3,"skill-same:01M793612393AHQ8C7K7MA7366":56},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":39,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M793612393AHQ8C7K7MA7366","mindtickle-sdk-patterns",null,"Sdk Patterns for MindTickle.\nTrigger: \"mindtickle sdk patterns\".","jukeyman\u002Fjukeyman-skills","jukeyman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142960420?v=4","01M78FR4Y3DHMMCBCC0GXXNB3F","RICK JEFFERSON","01M78FR4Z8RVQRAD31Y5J7V6EB",1,"MIT","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--mindtickle-pack--mindtickle-sdk-patterns\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: mindtickle-sdk-patterns\ndescription: |\n  Sdk Patterns for MindTickle.\n  Trigger: \"mindtickle sdk patterns\".\nallowed-tools: Read, Write, Edit\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ntags: [saas, mindtickle, sales]\ncompatible-with: claude-code\n---\n\n# MindTickle SDK Patterns\n\n## Overview\nMindTickle's REST API serves sales enablement workflows including course management, quiz administration, user progress tracking, SCIM user provisioning, and coaching analytics. A structured SDK client is critical because MindTickle uses compound API keys with org-scoped tokens, returns progress data as nested completion trees with module-level granularity, and enforces strict SCIM schema compliance for user sync. These patterns provide org-aware authentication, typed models for training content hierarchies, progress query builders, and mock factories for sales readiness test scenarios.\n\n## Prerequisites\n- Node.js 18+, TypeScript 5+\n- `MINDTICKLE_API_KEY` environment variable (generated in Admin > Integrations > API Keys)\n- `MINDTICKLE_ORG_ID` for multi-org deployments\n- `axios` or `node-fetch` for HTTP transport\n\n## Singleton Client\n```typescript\ninterface MindTickleConfig {\n  apiKey: string;\n  orgId: string;\n  baseUrl?: string;\n  timeout?: number;\n}\n\nlet client: MindTickleClient | null = null;\n\nexport function getMindTickleClient(overrides?: Partial\u003CMindTickleConfig>): MindTickleClient {\n  if (!client) {\n    const config: MindTickleConfig = {\n      apiKey: process.env.MINDTICKLE_API_KEY ?? '',\n      orgId: process.env.MINDTICKLE_ORG_ID ?? '',\n      baseUrl: 'https:\u002F\u002Fapi.mindtickle.com\u002Fv2',\n      timeout: 15_000,\n      ...overrides,\n    };\n    if (!config.apiKey || !config.orgId) throw new Error('MINDTICKLE_API_KEY and MINDTICKLE_ORG_ID are required');\n    client = new MindTickleClient(config);\n  }\n  return client;\n}\n```\n\n## Error Wrapper\n```typescript\ninterface MindTickleError { statusCode: number; errorType: string; description: string; requestId: string; }\n\nasync function safeMindTickle\u003CT>(fn: () => Promise\u003CT>): Promise\u003CT> {\n  try { return await fn(); }\n  catch (err: any) {\n    const parsed: MindTickleError = {\n      statusCode: err.response?.status ?? 500,\n      errorType: err.response?.data?.error?.type ?? 'INTERNAL_ERROR',\n      description: err.response?.data?.error?.description ?? err.message,\n      requestId: err.response?.headers?.['x-request-id'] ?? 'unknown',\n    };\n    if (parsed.statusCode === 429) {\n      const retryMs = parseInt(err.response?.headers?.['retry-after-ms'] ?? '3000', 10);\n      await new Promise(r => setTimeout(r, retryMs));\n      return fn();\n    }\n    if (parsed.errorType === 'SCIM_CONFLICT') throw new Error(`User already provisioned (req: ${parsed.requestId})`);\n    if (parsed.statusCode === 403) throw new Error(`Org ${process.env.MINDTICKLE_ORG_ID} lacks permission: ${parsed.description}`);\n    throw new Error(`MindTickle ${parsed.errorType} (${parsed.statusCode}): ${parsed.description} [${parsed.requestId}]`);\n  }\n}\n```\n\n## Request Builder\n```typescript\nclass ProgressQueryBuilder {\n  private params: Record\u003Cstring, string> = {};\n  forUser(userId: string) { this.params.user_id = userId; return this; }\n  inCourse(courseId: string) { this.params.series_id = courseId; return this; }\n  completedAfter(date: string) { this.params.completed_after = date; return this; }\n  status(s: 'not_started' | 'in_progress' | 'completed') { this.params.status = s; return this; }\n  page(n: number) { this.params.page = String(n); return this; }\n  pageSize(n: number) { this.params.page_size = String(Math.min(n, 50)); return this; }\n  build(): URLSearchParams { return new URLSearchParams(this.params); }\n}\n```\n\n## Response Types\n```typescript\ninterface Course { id: string; title: string; moduleCount: number; status: 'draft' | 'published' | 'archived'; createdAt: string; }\ninterface QuizResult { quizId: string; userId: string; score: number; passingScore: number; passed: boolean; attemptNumber: number; completedAt: string; }\ninterface UserProgress { userId: string; courseId: string; completedModules: number; totalModules: number; percentComplete: number; lastActivityAt: string; }\ninterface ScimUser { id: string; userName: string; displayName: string; emails: { value: string; primary: boolean }[]; active: boolean; groups: string[]; }\n```\n\n## Middleware Pattern\n```typescript\ntype Middleware = (req: RequestInit, next: () => Promise\u003CResponse>) => Promise\u003CResponse>;\n\nconst orgScopeMiddleware = (orgId: string): Middleware => (req, next) => {\n  req.headers = { ...req.headers as Record\u003Cstring, string>, 'X-MindTickle-Org': orgId, Authorization: `Bearer ${process.env.MINDTICKLE_API_KEY}` };\n  return next();\n};\nconst metricsMiddleware: Middleware = async (req, next) => {\n  const start = Date.now();\n  const res = await next();\n  const endpoint = new URL(req.url as string).pathname;\n  console.log(`[mindtickle] ${req.method} ${endpoint} ${res.status} ${Date.now() - start}ms`);\n  return res;\n};\n```\n\n## Testing Utilities\n```typescript\nfunction mockCourse(overrides?: Partial\u003CCourse>): Course {\n  return { id: 'series_abc', title: 'Q3 Product Training', moduleCount: 8, status: 'published', createdAt: '2025-07-01T00:00:00Z', ...overrides };\n}\nfunction mockProgress(userId: string, courseId: string): UserProgress {\n  return { userId, courseId, completedModules: 5, totalModules: 8, percentComplete: 62.5, lastActivityAt: '2025-07-15T14:30:00Z' };\n}\nfunction mockScimUser(overrides?: Partial\u003CScimUser>): ScimUser {\n  return { id: 'usr_test_001', userName: 'jsmith@acme.com', displayName: 'Jane Smith', emails: [{ value: 'jsmith@acme.com', primary: true }], active: true, groups: ['sales-east'], ...overrides };\n}\n```\n\n## Error Handling\n| Pattern | When to Use | Example |\n|---------|-------------|---------|\n| Retry with header delay | 429 on progress or analytics endpoints | Parse `Retry-After-Ms` header, wait exact duration, retry once |\n| SCIM conflict resolution | 409 when provisioning existing user | Fetch existing user by email, update instead of create |\n| Org scope validation | 403 on cross-org resource access | Verify `MINDTICKLE_ORG_ID` matches target course owner |\n| Completion tree unwrap | Nested module progress with null leaves | Flatten tree, filter nulls, compute rollup percentage |\n| Bulk operation chunking | Enrolling 500+ users in a course | Batch into groups of 50, sequential with rate limit pauses |\n\n## Resources\n- [MindTickle API Reference](https:\u002F\u002Fwww.mindtickle.com\u002Fplatform\u002Fintegrations\u002F)\n\n## Next Steps\nApply in `mindtickle-core-workflow-a`.\n","# MindTickle SDK Patterns\n\n## Overview\nMindTickle's REST API serves sales enablement workflows including course management, quiz administration, user progress tracking, SCIM user provisioning, and coaching analytics. A structured SDK client is critical because MindTickle uses compound API keys with org-scoped tokens, returns progress data as nested completion trees with module-level granularity, and enforces strict SCIM schema compliance for user sync. These patterns provide org-aware authentication, typed models for training content hierarchies, progress query builders, and mock factories for sales readiness test scenarios.\n\n## Prerequisites\n- Node.js 18+, TypeScript 5+\n- `MINDTICKLE_API_KEY` environment variable (generated in Admin > Integrations > API Keys)\n- `MINDTICKLE_ORG_ID` for multi-org deployments\n- `axios` or `node-fetch` for HTTP transport\n\n## Singleton Client\n```typescript\ninterface MindTickleConfig {\n  apiKey: string;\n  orgId: string;\n  baseUrl?: string;\n  timeout?: number;\n}\n\nlet client: MindTickleClient | null = null;\n\nexport function getMindTickleClient(overrides?: Partial\u003CMindTickleConfig>): MindTickleClient {\n  if (!client) {\n    const config: MindTickleConfig = {\n      apiKey: process.env.MINDTICKLE_API_KEY ?? '',\n      orgId: process.env.MINDTICKLE_ORG_ID ?? '',\n      baseUrl: 'https:\u002F\u002Fapi.mindtickle.com\u002Fv2',\n      timeout: 15_000,\n      ...overrides,\n    };\n    if (!config.apiKey || !config.orgId) throw new Error('MINDTICKLE_API_KEY and MINDTICKLE_ORG_ID are required');\n    client = new MindTickleClient(config);\n  }\n  return client;\n}\n```\n\n## Error Wrapper\n```typescript\ninterface MindTickleError { statusCode: number; errorType: string; description: string; requestId: string; }\n\nasync function safeMindTickle\u003CT>(fn: () => Promise\u003CT>): Promise\u003CT> {\n  try { return await fn(); }\n  catch (err: any) {\n    const parsed: MindTickleError = {\n      statusCode: err.response?.status ?? 500,\n      errorType: err.response?.data?.error?.type ?? 'INTERNAL_ERROR',\n      description: err.response?.data?.error?.description ?? err.message,\n      requestId: err.response?.headers?.['x-request-id'] ?? 'unknown',\n    };\n    if (parsed.statusCode === 429) {\n      const retryMs = parseInt(err.response?.headers?.['retry-after-ms'] ?? '3000', 10);\n      await new Promise(r => setTimeout(r, retryMs));\n      return fn();\n    }\n    if (parsed.errorType === 'SCIM_CONFLICT') throw new Error(`User already provisioned (req: ${parsed.requestId})`);\n    if (parsed.statusCode === 403) throw new Error(`Org ${process.env.MINDTICKLE_ORG_ID} lacks permission: ${parsed.description}`);\n    throw new Error(`MindTickle ${parsed.errorType} (${parsed.statusCode}): ${parsed.description} [${parsed.requestId}]`);\n  }\n}\n```\n\n## Request Builder\n```typescript\nclass ProgressQueryBuilder {\n  private params: Record\u003Cstring, string> = {};\n  forUser(userId: string) { this.params.user_id = userId; return this; }\n  inCourse(courseId: string) { this.params.series_id = courseId; return this; }\n  completedAfter(date: string) { this.params.completed_after = date; return this; }\n  status(s: 'not_started' | 'in_progress' | 'completed') { this.params.status = s; return this; }\n  page(n: number) { this.params.page = String(n); return this; }\n  pageSize(n: number) { this.params.page_size = String(Math.min(n, 50)); return this; }\n  build(): URLSearchParams { return new URLSearchParams(this.params); }\n}\n```\n\n## Response Types\n```typescript\ninterface Course { id: string; title: string; moduleCount: number; status: 'draft' | 'published' | 'archived'; createdAt: string; }\ninterface QuizResult { quizId: string; userId: string; score: number; passingScore: number; passed: boolean; attemptNumber: number; completedAt: string; }\ninterface UserProgress { userId: string; courseId: string; completedModules: number; totalModules: number; percentComplete: number; lastActivityAt: string; }\ninterface ScimUser { id: string; userName: string; displayName: string; emails: { value: string; primary: boolean }[]; active: boolean; groups: string[]; }\n```\n\n## Middleware Pattern\n```typescript\ntype Middleware = (req: RequestInit, next: () => Promise\u003CResponse>) => Promise\u003CResponse>;\n\nconst orgScopeMiddleware = (orgId: string): Middleware => (req, next) => {\n  req.headers = { ...req.headers as Record\u003Cstring, string>, 'X-MindTickle-Org': orgId, Authorization: `Bearer ${process.env.MINDTICKLE_API_KEY}` };\n  return next();\n};\nconst metricsMiddleware: Middleware = async (req, next) => {\n  const start = Date.now();\n  const res = await next();\n  const endpoint = new URL(req.url as string).pathname;\n  console.log(`[mindtickle] ${req.method} ${endpoint} ${res.status} ${Date.now() - start}ms`);\n  return res;\n};\n```\n\n## Testing Utilities\n```typescript\nfunction mockCourse(overrides?: Partial\u003CCourse>): Course {\n  return { id: 'series_abc', title: 'Q3 Product Training', moduleCount: 8, status: 'published', createdAt: '2025-07-01T00:00:00Z', ...overrides };\n}\nfunction mockProgress(userId: string, courseId: string): UserProgress {\n  return { userId, courseId, completedModules: 5, totalModules: 8, percentComplete: 62.5, lastActivityAt: '2025-07-15T14:30:00Z' };\n}\nfunction mockScimUser(overrides?: Partial\u003CScimUser>): ScimUser {\n  return { id: 'usr_test_001', userName: 'jsmith@acme.com', displayName: 'Jane Smith', emails: [{ value: 'jsmith@acme.com', primary: true }], active: true, groups: ['sales-east'], ...overrides };\n}\n```\n\n## Error Handling\n| Pattern | When to Use | Example |\n|---------|-------------|---------|\n| Retry with header delay | 429 on progress or analytics endpoints | Parse `Retry-After-Ms` header, wait exact duration, retry once |\n| SCIM conflict resolution | 409 when provisioning existing user | Fetch existing user by email, update instead of create |\n| Org scope validation | 403 on cross-org resource access | Verify `MINDTICKLE_ORG_ID` matches target course owner |\n| Completion tree unwrap | Nested module progress with null leaves | Flatten tree, filter nulls, compute rollup percentage |\n| Bulk operation chunking | Enrolling 500+ users in a course | Batch into groups of 50, sequential with rate limit pauses |\n\n## Resources\n- [MindTickle API Reference](https:\u002F\u002Fwww.mindtickle.com\u002Fplatform\u002Fintegrations\u002F)\n\n## Next Steps\nApply in `mindtickle-core-workflow-a`.\n",{"name":5,"tags":24,"author":28,"license":15,"version":29,"description":30,"allowed-tools":31,"compatible-with":32},[25,26,27],"saas","mindtickle","sales","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Sdk Patterns for MindTickle.\nTrigger: \"mindtickle sdk patterns\".\n","Read, Write, Edit","claude-code","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fsaas-packs--mindtickle-pack--mindtickle-sdk-patterns",0,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills","https:\u002F\u002Fgithub.com\u002Fjukeyman","https:\u002F\u002FRJBUSINESSSOLUTIONS.ORG","Credit and Finance Expert | Developer\r\n\r\nI'm Rick Jefferson, a seasoned credit and finance expert with over a decade of experience in financial literacy,","2026-07-13 07:03:29",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill mindtickle-sdk-patterns",{"tool":48,"command":49},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill mindtickle-sdk-patterns",{"tool":51,"command":52},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill mindtickle-sdk-patterns","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--mindtickle-pack--mindtickle-sdk-patterns\u002FSKILL.md",true,[],[57,64,71,78,85,93],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M79ANS2SM329NEP5ZCX106RR","zustand-store-creator","Create zustand store creator operations. Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like \"zustand store creator\", \"zustand creator\", \"zustand\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M79AMZKP4YDEZ7EHG1Y7PP74","zero-trust-config-helper","Configure with zero trust config helper operations. Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like \"zero trust config helper\", \"zero helper\", \"zero\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M79AMJSBCEJQNBTYNAHYN5HM","zapier-integration-helper","Assist with zapier integration helper operations. Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like \"zapier integration helper\", \"zapier helper\", \"zapier\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M79AHJZGVMARS13VFQYRR1MP","yaml-config-validator","Validate yaml config validator operations. Auto-activating skill for DevOps Basics.\nTriggers on: yaml config validator, yaml config validator\nPart of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like \"yaml config validator\", \"yaml validator\", \"yaml\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyaml-config-validator\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":89,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M79AHGDZRN0020RDQSQDPAM8","xvary-stock-research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M79AHCYJ9FV9RMHQ24HDRN33","xss-vulnerability-scanner","Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals.\nTriggers on: xss vulnerability scanner, xss vulnerability scanner\nPart of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like \"xss vulnerability scanner\", \"xss scanner\", \"xss\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxss-vulnerability-scanner\u002FSKILL.md",[],[]]