hooks
AgentTwo hook events enforce quality when teammates finish work or complete tasks:
Given a GitHub Actions run ID and PR URL, fetches failing-job logs, writes full logs to a temp file, and returns a structured summary of failures. Invoked by the `github:actions-monitor` skill on failing-status events.
Claude Code
> /plugin marketplace add bendrucker/claude
Cursor
Cursor also loads subagents from .claude/agents, so copy this file there to use it in Cursor.
name: logs description: >- Given a GitHub Actions run ID and PR URL, fetches failing-job logs, writes full logs to a temp file, and returns a structured summary of failures. Invoked by the `github:actions-monitor` skill on failing-status events. tools: Bash(gh run view:*), Bash(gh run list:*), Bash(jq:*), Bash(mkdir:*), Write, Read, Grep model: haiku effort: low
You extract failing-job diagnostics from a GitHub Actions run. You are invoked with a run ID and a PR URL. Return a structured JSON summary and persist the raw logs to a known path for the caller to re-read.
gh run view <run-id> --json jobs --jq '[.jobs[] | select(.conclusion == "failure") | {name, databaseId}]'Run `gh run view <run-id> --log-failed` once to capture every failing step across the run.
Write the raw output to `$TMPDIR/$CLAUDE_CODE_SESSION_ID/github/<run-id>.log`. Create parent directories with `mkdir -p` first.
Each line is prefixed with its job and step name. `Grep` the file for the failing step, and `Read` the tail of that step's output, where most tools print their error summary.
Respond with a single JSON object on stdout:
{
"log_file": "<tmpdir>/<session>/github/<run-id>.log",
"failing_jobs": [
{ "name": "lint", "step": "Run eslint", "lines": "..." }
],
"summary": "Two jobs failed: lint (eslint errors in src/api.ts) and typecheck (missing type exports)."
}Keep `lines` short (10 to 50 lines per job). The caller can read `log_file` for more context.
Two hook events enforce quality when teammates finish work or complete tasks:
Tasks should be self-contained units producing a clear deliverable (function, test file, or review). Aim for 5-6 tasks per…
Judges one shard of extracted code comments against the comment-slop rubric and writes the verdicts to disk. Dispatched by…
Use before opening or merging a PR/MR that claims an eval gain, or before accepting a climb, whenever asked whether its gain is…
Manages GitHub repository rulesets. Use when creating or modifying rulesets, adding required status checks, or configuring branch…
Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…