forcedotcom/sf-skills / plugins/builder/service-engagement/skills/service-agentforce-human-escalation-configure
service-agentforce-human-escalation-configure
UnverifiedUse to configure and verify Agentforce agent-to-human escalation, including human handoff, a staffed fallback queue, and failure-threshold directives. Triggers: configure agent escalation, escalate to a human agent, agent handoff to a queue, configure a human escalation queue, set an Agentforce fallback handoff. Do not use to create an agent or configure inbound channel routing; use service-agentforce-channel-configure for inbound routing.
scripts/classify-agent-active.mjs
View on GitHub#!/usr/bin/env node
// Precondition classifier: BotDefinition+latest BotVersion query JSON → { exists, active, ready, ... }; ready only when exists && active; exit 3 on unparseable. Query/output shape: references/classifier-contracts.md.
import { readFileSync } from 'node:fs';
const [queryPath, developerName] = process.argv.slice(2);
if (!queryPath || !developerName) {
process.stderr.write('usage: node classify-agent-active.mjs <bot-query.json> <developerName>\n');
process.exit(2);
}
let data;
try {
const text = readFileSync(queryPath, 'utf8').trim();
data = text ? JSON.parse(text) : null;
} catch {
process.stderr.write(`error: could not read/parse ${queryPath}\n`);
process.exit(3);
}
if (!data || (typeof data.status === 'number' && data.status !== 0) || data.result === undefined) {
process.stderr.write('error: query did not return a results envelope; surface the raw CLI error and stop\n');
process.exit(3);
}
const records = Array.isArray(data.result?.records) ? data.result.records : [];
const wantedLower = String(developerName).toLowerCase();
const matches = records.filter((r) => String(r?.DeveloperName ?? '').toLowerCase() === wantedLower);
const exists = matches.length > 0;
const latestVersion = exists ? matches[0]?.BotVersions?.records?.[0] ?? null : null;
const latestVersionStatus = latestVersion?.Status ?? null;
const active = exists && latestVersionStatus === 'Active';
let reason;
if (!exists) reason = 'agent-not-found';
else if (!active) reason = 'agent-inactive';
else reason = 'ready';
process.stdout.write(JSON.stringify({
exists,
active,
agentId: exists ? (matches[0].Id ?? null) : null,
developerName,
latestVersionId: latestVersion?.Id ?? null,
latestVersionStatus,
ready: exists && active,
reason,
}, null, 2) + '\n');
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |