---
name: bamboohr-reference-architecture
description: >-
  Design a multi-tenant BambooHR connector with explicit auth, ingestion, webhook, queue, storage, destination, reconciliation, and audit boundaries. Use when creating or reviewing production HR integration architecture. Trigger with "BambooHR architecture", "BambooHR system design", or "multi-tenant BambooHR connector".
allowed-tools: Read,Glob,Grep,Write,Edit
argument-hint: "<integration-scope> <single-tenant|multi-tenant>"
version: 1.5.0
license: MIT
author: Jeremy Longshore <jeremy@intentsolutions.io>
tags: [ saas, hr, bamboohr, architecture, multi-tenant ]
model: inherit
effort: high
compatibility: Designed for Claude Code
title: bamboohr-reference-architecture
canonical_url: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/bamboohr-reference-architecture
last_updated: 2026-10-07T06:06:28.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [references/official-docs.md](https://skilld.dev/api/skills-raw/jeremylongshore/tons-of-skills-marketplace/bamboohr-reference-architecture/references/official-docs.md).
>
> If the user asked to install this Skill, run `npx skilld install jeremylongshore/tons-of-skills-marketplace/bamboohr-reference-architecture`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/bamboohr-reference-architecture`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/jeremylongshore/tons-of-skills-marketplace/bamboohr-reference-architecture) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/bamboohr-reference-architecture`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/bamboohr-reference-architecture --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/bamboohr-reference-architecture --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# BambooHR Reference Architecture

## Overview

Produce an architecture that keeps control-plane actions, HR data-plane reads,
mutations, webhook reception, and downstream delivery independently governable.
The connector is not the authority for HR policy; BambooHR and the approved
destination each retain explicit ownership.

## Prerequisites

- The target repository or integration path and the requested operator outcome.
- The tenant, identity, and data scope only when approved live work is in scope.
- The current evidence register plus customer-specific permissions and agreements.

## Current Contract

Use tenant-local BambooHR hosts and current official OpenAPI operations. Prefer
dataset v2 for new bulk reads. Support OAuth token refresh with external
persistence, typed request IDs/errors, bounded retries, and webhook one-time key
custody. Treat deprecated report/dataset v1 paths as migration boundaries.

## Authentication

The control plane stores encrypted, tenant-scoped credential metadata and exact
redirect/permission configuration. Workers receive short-lived access to one
tenant credential; they cannot choose arbitrary hosts or read another tenant's
tokens. API-key mode uses a dedicated BambooHR identity and explicit rotation.

## Instructions

1. Define actors, tenants, business outcomes, systems of record, fields,
   workflows, freshness, scale, residency, retention, and recovery objectives.
2. Draw trust boundaries among consent/callback, token store, scheduler, sync
   worker, webhook ingress, queue, schema validator, destination adapter,
   checkpoint store, audit log, monitoring, and support tooling.
3. Separate read and mutation workers and permissions. Route jobs with an
   immutable tenant ID resolved to trusted credential and destination metadata.
4. For scheduled sync, use minimized dataset v2 reads, deterministic pagination,
   transactional checkpoints, idempotent destination upsert, and periodic full
   reconciliation.
5. For webhooks, terminate TLS, retain raw bytes only in memory for verified
   HMAC, reject replay, enqueue idempotently, acknowledge promptly, and use the
   event only as a trigger for an authorized source read when appropriate.
6. Enforce field allowlists and schema versions before queues/storage. Encrypt
   approved HR data and keep bodies out of general logs, traces, and dead letters.
7. Add per-tenant concurrency, finite retries, circuit breaker, dead-letter
   review, request-ID correlation, and backpressure.
8. Design credential revocation, tenant offboarding, data deletion, webhook
   replacement, schema migration, regional failure, and rollback before launch.

## Tool Discipline

Use Read, Glob, and Grep to ground the design in the existing system. Use
Write/Edit only for approved architecture records, diagrams-as-code, and
interface contracts. This skill does not provision or mutate infrastructure.

## Approval Boundaries

Require approval for field and workflow scope, auth model, tenant routing,
regions, retention, destination authority, webhook events, mutation path, and
recovery objectives. Record unresolved decisions rather than guessing.

## Output

Return context/container/component views, data flows and trust boundaries,
identity/permission matrix, field contract, queue/checkpoint/idempotency model,
failure paths, SLOs, retention/deletion, decisions, risks, and validation plan.

## Error Handling

- Unknown system of record: stop write-path design until ownership is resolved.
- Shared tenant credential/destination namespace: classify as a blocking isolation risk.
- No reconciliation or rollback model: architecture is not production-ready.

## Examples

- "Design employee sync" yields both scheduled reconciliation and webhook trigger paths.
- "Use one admin key for all customers" is rejected at the tenant trust boundary.

## Resources

Read [official evidence](https://skilld.dev/api/skills-raw/jeremylongshore/tons-of-skills-marketplace/bamboohr-reference-architecture/references/official-docs.md) before finalizing interfaces.
