bamboohr-upgrade-migration
Plan and execute BambooHR API migration with breaking change detection. Use when BambooHR announces API changes, adapting to deprecated endpoints, or migrating from legacy API patterns to current best practices. Trigger with phrases like "upgrade bamboohr", "bamboohr migration", "bamboohr breaking changes", "bamboohr API update", "bamboohr deprecated".
What this skill does
# BambooHR Upgrade & Migration
## Overview
Guide for handling BambooHR API changes, migrating from legacy patterns, and proactively detecting deprecations. BambooHR's API is versioned at v1 — breaking changes are announced on their changelog rather than through version bumps.
## Prerequisites
- Current BambooHR integration working
- Access to BambooHR API changelog
- Git for version control
- Test suite available
## Instructions
### Step 1: Check for Announced Changes
```bash
# Monitor BambooHR's official changelog pages
echo "Check these URLs before any migration work:"
echo " Past changes: https://documentation.bamboohr.com/docs/past-changes-to-the-api"
echo " Planned changes: https://documentation.bamboohr.com/docs/planned-changes-to-the-api"
echo " Status page: https://status.bamboohr.com"
```
### Step 2: Common Migration Patterns
#### URL Format Migration
BambooHR has used two base URL formats historically:
```typescript
// Legacy format (still works)
const LEGACY = `https://api.bamboohr.com/api/gateway.php/${domain}/v1`;
// Modern format (equivalent)
const MODERN = `https://${domain}.bamboohr.com/api/v1`;
// Migration: both work, but use the gateway.php format for API key auth
// The modern format is used for browser-based OAuth flows
```
#### XML to JSON Migration
```typescript
// Legacy: XML responses (default if no Accept header)
const xmlRes = await fetch(`${BASE}/employees/directory`, {
headers: { Authorization: AUTH },
// No Accept header — returns XML
});
// Current: JSON responses (always set Accept header)
const jsonRes = await fetch(`${BASE}/employees/directory`, {
headers: { Authorization: AUTH, Accept: 'application/json' },
});
// Migration checklist:
// - Add 'Accept: application/json' to ALL requests
// - Replace XML parsing with JSON.parse
// - Update response type definitions
```
#### Employee Endpoint Changes
```typescript
// Legacy: using employee ID 0 for "current user"
// GET /employees/0/?fields=firstName,lastName
// This returns the employee record for the API key's user
// Current: still works, but prefer explicit employee IDs from directory
const dir = await client.getDirectory();
const currentUser = dir.employees.find(e => e.workEmail === knownEmail);
```
### Step 3: Detect Deprecated Field Usage
```typescript
// Scan your codebase for BambooHR field references
const DEPRECATED_FIELDS = [
// As of 2025, these field aliases may change:
'bestEmail', // Use 'workEmail' or 'homeEmail' explicitly
'fullName1', // Use 'displayName' instead
'fullName2', // Use firstName + lastName
'fullName3', // Removed
'fullName4', // Removed
'fullName5', // Removed
];
const CURRENT_FIELD_MAPPING: Record<string, string> = {
'bestEmail': 'workEmail',
'fullName1': 'displayName',
'fullName2': 'displayName', // Or construct from firstName + lastName
};
function migrateFieldName(oldField: string): string {
if (DEPRECATED_FIELDS.includes(oldField)) {
const replacement = CURRENT_FIELD_MAPPING[oldField];
console.warn(`Deprecated field '${oldField}' — use '${replacement}' instead`);
return replacement || oldField;
}
return oldField;
}
```
### Step 4: Migration Testing Strategy
```typescript
// tests/migration/bamboohr-compat.test.ts
import { describe, it, expect } from 'vitest';
describe('BambooHR API Compatibility', () => {
it('should handle both old and new field names', async () => {
const emp = await client.getEmployee(testId, [
'displayName', 'firstName', 'lastName', 'workEmail',
]);
// Verify current fields work
expect(emp.displayName).toBeTruthy();
expect(emp.workEmail).toBeTruthy();
});
it('should handle null fields gracefully', async () => {
// BambooHR may return null for newly added fields
const emp = await client.getEmployee(testId, [
'firstName', 'lastName', 'supervisor', 'division',
]);
// These may be null/empty for some employees
expect(emp.firstName).toBeTruthy();
expect(emp.supervisor).toBeDefined(); // null is valid
});
it('should handle table schema changes', async () => {
const jobInfo = await client.getTableRows(testId, 'jobInfo');
// Verify required columns still present
if (jobInfo.length > 0) {
const row = jobInfo[0];
expect(row).toHaveProperty('date');
expect(row).toHaveProperty('jobTitle');
}
});
});
```
### Step 5: Gradual Migration with Feature Flags
```typescript
interface MigrationConfig {
useNewEndpoint: boolean;
useNewFieldNames: boolean;
enableNewWebhookFormat: boolean;
}
const MIGRATION_FLAGS: MigrationConfig = {
useNewEndpoint: process.env.BAMBOOHR_USE_NEW_ENDPOINT === 'true',
useNewFieldNames: true, // Already migrated
enableNewWebhookFormat: false, // Testing in staging
};
async function getEmployeeData(id: string): Promise<Record<string, string>> {
const fields = MIGRATION_FLAGS.useNewFieldNames
? ['displayName', 'workEmail', 'jobTitle']
: ['bestEmail', 'fullName1', 'jobTitle']; // Legacy
return client.getEmployee(id, fields);
}
```
### Step 6: Rollback Procedure
```bash
#!/bin/bash
# If migration causes issues:
# 1. Revert to previous code
git revert HEAD --no-edit
# 2. Deploy previous version
# (use your deployment tool)
# 3. Verify old API patterns still work
curl -s -u "${BAMBOOHR_API_KEY}:x" \
-H "Accept: application/json" \
"${BASE}/employees/directory" | jq '.employees | length'
echo "Rollback complete. Document what failed for next attempt."
```
## Output
- Identified deprecated fields and endpoints
- Migration code with backward compatibility
- Compatibility test suite
- Feature-flagged gradual migration
- Documented rollback procedure
## Error Handling
| Migration Issue | Detection | Solution |
|----------------|-----------|----------|
| Deprecated field returns null | Runtime null checks | Map to replacement field |
| Endpoint returns 404 | HTTP status monitoring | Check BambooHR changelog |
| Response schema changed | Zod validation failure | Update schema definitions |
| New required fields | 400 on create/update | Add required fields to payload |
## Resources
- [BambooHR Past API Changes](https://documentation.bamboohr.com/docs/past-changes-to-the-api)
- [BambooHR Planned API Changes](https://documentation.bamboohr.com/docs/planned-changes-to-the-api)
- [BambooHR Field Names](https://documentation.bamboohr.com/docs/list-of-field-names)
## Next Steps
For CI integration during upgrades, see `bamboohr-ci-integration`.
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.