mindtickle-upgrade-migration
Upgrade Migration for MindTickle. Trigger: "mindtickle upgrade migration".
What this skill does
# MindTickle Upgrade & Migration
## Overview
MindTickle is a sales enablement and readiness platform with APIs for managing courses, quizzes, user progress, and coaching sessions. The API exposes endpoints for content management, learner analytics, and CRM integration. Tracking API changes is essential because MindTickle evolves its content schema (course structures, quiz question types, scoring rubrics), user progress tracking fields, and SSO/SCIM provisioning models — breaking integrations that sync training completion data to Salesforce or automate onboarding workflows.
## Version Detection
```typescript
const MINDTICKLE_BASE = "https://api.mindtickle.com/v2";
async function detectMindTickleVersion(apiKey: string): Promise<void> {
const res = await fetch(`${MINDTICKLE_BASE}/users`, {
headers: { Authorization: `Bearer ${apiKey}`, "Content-Type": "application/json" },
});
const version = res.headers.get("x-mt-api-version") ?? "v2";
console.log(`MindTickle API version: ${version}`);
// Check for deprecated course fields
const coursesRes = await fetch(`${MINDTICKLE_BASE}/courses?limit=1`, {
headers: { Authorization: `Bearer ${apiKey}` },
});
const data = await coursesRes.json();
const knownFields = ["id", "title", "modules", "status", "created_at", "assigned_users"];
if (data.courses?.[0]) {
const actual = Object.keys(data.courses[0]);
const newFields = actual.filter((f) => !knownFields.includes(f));
if (newFields.length) console.log(`New course fields: ${newFields.join(", ")}`);
}
}
```
## Migration Checklist
- [ ] Review MindTickle release notes for API schema changes
- [ ] Audit codebase for hardcoded course status enums (`draft`, `published`, `archived`)
- [ ] Verify quiz question type support — new types may require parser updates
- [ ] Check user progress response for new completion metric fields
- [ ] Update SCIM provisioning payload if user attribute schema changed
- [ ] Test coaching session API for new rubric scoring fields
- [ ] Validate CRM sync field mappings (Salesforce/HubSpot) after API update
- [ ] Check if module ordering mechanism changed (position vs. sort_order)
- [ ] Update webhook handlers for course completion and quiz score events
- [ ] Run learner analytics export to verify report format compatibility
## Schema Migration
```typescript
// MindTickle course progress: flat completion → structured module-level tracking
interface OldProgress {
user_id: string;
course_id: string;
completed: boolean;
score: number;
completed_at?: string;
}
interface NewProgress {
user_id: string;
course_id: string;
status: "not_started" | "in_progress" | "completed" | "expired";
overall_score: number;
modules: Array<{
module_id: string;
status: string;
score: number;
attempts: number;
time_spent_seconds: number;
}>;
certifications: Array<{ cert_id: string; issued_at: string; expires_at?: string }>;
completed_at?: string;
}
function migrateProgress(old: OldProgress): NewProgress {
return {
user_id: old.user_id,
course_id: old.course_id,
status: old.completed ? "completed" : "not_started",
overall_score: old.score,
modules: [],
certifications: [],
completed_at: old.completed_at,
};
}
```
## Rollback Strategy
```typescript
class MindTickleClient {
private apiVersion: "v1" | "v2";
constructor(private apiKey: string, version: "v1" | "v2" = "v2") {
this.apiVersion = version;
}
async getCourses(limit = 50): Promise<any> {
try {
const res = await fetch(`https://api.mindtickle.com/${this.apiVersion}/courses?limit=${limit}`, {
headers: { Authorization: `Bearer ${this.apiKey}` },
});
if (!res.ok) throw new Error(`MindTickle ${res.status}`);
return await res.json();
} catch (err) {
if (this.apiVersion === "v2") {
console.warn("Falling back to MindTickle API v1");
this.apiVersion = "v1";
return this.getCourses(limit);
}
throw err;
}
}
}
```
## Error Handling
| Migration Issue | Symptom | Fix |
|----------------|---------|-----|
| Course status enum expanded | `400` creating course with unrecognized status value | Fetch valid statuses from `/courses/statuses` endpoint |
| Quiz question type unsupported | Quiz import fails with `unknown_question_type` | Add parser support for new question types (drag-drop, hotspot) |
| SCIM attribute renamed | User provisioning fails with `invalid attribute` | Update SCIM payload to match current user schema from `/schemas` |
| Progress field restructured | Code crashes accessing `progress.completed` (now `progress.status`) | Update to check `status === "completed"` instead of boolean |
| Webhook signature algorithm changed | Webhook verification fails on all events | Update HMAC verification to use new algorithm from MindTickle docs |
## Resources
- [MindTickle Integrations](https://www.mindtickle.com/platform/integrations/)
- MindTickle API Documentation
## Next Steps
For CI pipeline integration, see `mindtickle-ci-integration`.
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.