/hex-pack:hex-webhooks-eventsfrom hex-pack
Implements polling-based event handling for Hex run completions, including status polling and notification integration. Useful for building event-driven integrations with Hex.
Ships in hex-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Hex doesn't provide push webhooks. For event-driven integrations, poll run status or build your own notification system around run completions.
async function runWithCallback(
client: HexClient,
projectId: string,
params: Record<string, any>,
onComplete: (result: any) => void,
onError: (error: Error) => void
) {
try {
const { runId } = await client.runProject(projectId, params);
const poll = async () => {
const status = await client.getRunStatus(projectId, runId);
if (status.status === 'COMPLETED') { onComplete(status); return; }
if (status.status === 'ERRORED' || status.status === 'KILLED') { onError(new Error(status.status)); return; }
setTimeout(poll, 5000);
};
poll();
} catch (err) { onError(err as Error); }
}
runWithCallback(client, 'project-id', { date: '2025-01-01' },
(result) => {
// Send Slack notification, email, etc.
fetch(process.env.SLACK_WEBHOOK_URL!, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ text: `Hex project completed: ${result.runId}` }),
});
},
(error) => console.error('Run failed:', error)
);
Return an event receipt with type, opaque event/run ID, signature/timestamp result, idempotency outcome, queue state, canary result, and rollback reference. Exclude payload data, SQL, output, and signatures.
Reject unknown origin, stale/replayed delivery, malformed payload, unknown project destination, or non-idempotent retry. Quarantine the opaque event and disable the consumer if integrity is uncertain.
type=run.completed; event=evt-opaque-9; signature=pass; replay=absent; project=proj-sandbox-12; enqueue=once; rollback=consumer-disabled proves the event boundary.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
hex, webhooks, events, polling, notifications, data-analytics
18 skills in this plugin
/hex-ci-integrationConfigure Hex CI/CD integration with GitHub Actions and testing.
Use when setting up automated testing, configuring CI pipelines,
or integrating Hex tests into your build process.
Trigger with phrases like "hex CI", "hex GitHub Actions",
"hex automated tests", "CI hex".
/hex-common-errorsDiagnose and fix Hex common errors and exceptions.
Use when encountering Hex errors, debugging failed requests,
or troubleshooting integration issues.
Trigger with phrases like "hex error", "fix hex",
"hex not working", "debug hex".
/hex-core-workflow-aExecute Hex primary workflow: Core Workflow A.
Use when implementing primary use case,
building main features, or core integration tasks.
Trigger with phrases like "hex main workflow",
"primary task with hex".
/hex-core-workflow-bExecute Hex secondary workflow: Core Workflow B.
Use when implementing secondary use case,
or complementing primary workflow.
Trigger with phrases like "hex secondary workflow",
"secondary task with hex".
/hex-cost-tuningOptimize Hex costs through tier selection, sampling, and usage monitoring.
Use when analyzing Hex billing, reducing API costs,
or implementing usage monitoring and budget alerts.
Trigger with phrases like "hex cost", "hex billing",
"reduce hex costs", "hex pricing", "hex expensive", "hex budget".
/hex-debug-bundleCollect Hex debug evidence for support tickets and troubleshooting.
Use when encountering persistent issues, preparing support tickets,
or collecting diagnostic information for Hex problems.
Trigger with phrases like "hex debug", "hex support bundle",
"collect hex logs", "hex diagnostic".
npx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin hex-packOther plugins' skills for the same job