agentsclimarketplace

Github hook router

Skill scientist-hq/skills/skills/github-hook-router

Deterministic routing scripts for GitHub webhook events. These scripts run as the first step of a webhook agent, apply gate checks, and create kanban tasks for work that passes. Keeps webhook prompts minimal and moves all conditional logic out of LLM prompts into testable Ruby.From its SKILL.md

Install
npx -y skills add scientist-hq/skills --skill github-hook-router

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.0 KB, as published. Nobody here has run it

GitHub Hook Router

Scripts that receive raw GitHub webhook events, apply deterministic gate checks, and route qualifying events into the Hermes kanban board for async processing.

Scripts

scripts/rubocop-preflight.rb

Receives a raw GitHub check_run event. Creates a kanban task if a rubocop CI failure needs fixing.

Gate checks (exit 1 to skip):

  1. Event is a check_run with conclusion: "failure"
  2. Check name matches rubocop/lint/analysis (case-insensitive)
  3. Branch is not protected (main, master, develop, staging, production)
  4. PR is not a draft
  5. PR does not have a no-auto-fix label

On pass (exit 0): Creates a kanban task assigned to hermes with the fix-rubocop skill, workspace set to the repo path. The kanban worker handles git operations, rubocop scoping, fixing, and pushing.

Webhook Subscription Prompt

The webhook prompt that invokes this script should be minimal:

A GitHub webhook event was received.

Run the rubocop preflight router:

  export PATH="$HOME/.rbenv/shims:$PATH"
  ruby ~/src/skills/skills/github-hook-router/scripts/rubocop-preflight.rb '{__raw__}'

If exit code is non-zero: respond with the stderr output and stop.
Do NOT use send_message for skips.

If exit code is zero: the script created a kanban task.
Respond with "Queued rubocop fix" and the stdout output, then stop.

Setting up the webhook subscription

hermes webhook subscribe rubocop-autofix \
  --event check_run \
  --secret "${RUBOCOP_WEBHOOK_SECRET}" \
  --deliver log \
  --prompt 'A GitHub webhook event was received.

Run the rubocop preflight router:

  export PATH="$HOME/.rbenv/shims:$PATH"
  ruby ~/src/skills/skills/github-hook-router/scripts/rubocop-preflight.rb '"'"'{__raw__}'"'"'

If exit code is non-zero: respond with the stderr output and stop.
Do NOT use send_message for skips.

If exit code is zero: the script created a kanban task.
Respond with "Queued rubocop fix" and the stdout output, then stop.'

Adding New Routers

To handle other webhook events (e.g. PR review requests, deployment failures), add a new script under scripts/ following the same pattern:

  1. Accept raw event JSON as first argument (or stdin)
  2. Apply deterministic gates (exit 1 to skip)
  3. Create a kanban task on pass (exit 0)
  4. Keep it simple — let the kanban worker do the complex reasoning

Repo Path Map

The scripts map repository.full_name to local checkout paths. Currently:

RepositoryLocal Path
scientist-hq/rx~/src/rx/rx
scientist-hq/benchmate~/src/benchmate
scientist-labs/benchmate~/src/benchmate

To add a new repo, update the REPO_MAP constant in the script.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.