Agento report

From jleechanorg/claude-commands · View interactive version

Agento report is an AI agent skill from the GitHub repository jleechanorg/claude-commands. Generate a full agento PR status report — draft readiness, canonical /green, zero-touch rate, inline display, and Slack summary.

How to use this skill

Skill file

Purpose

Retained review integrations

The shared catalog preserves host-installed /advice and /web-advice integrations instead of installing them. Before invoking either, resolve its ../advice/SKILL.md or ../web-advice/SKILL.md relative to this package and read the existing skill. For a remote invocation, check the corresponding skill on the target host. If absent, report that integration as UNAVAILABLE and identify the missing package; do not invent a replacement runner, claim an approval, or treat a required gate as passed. Continue independent authorized work, but leave any dependent readiness or plan-approval gate unmet. Existing review quorum, external-disclosure authorization, and optional-review rules still apply.

Produce a comprehensive status report for all PRs agento is handling in

$AO_GITHUB_REPO (the owner/repo that AO workers open PRs against). Use the

canonical draft-first, /green, and zero-touch skills; display inline and post

the summary to Slack.

If AO_GITHUB_REPO is unset, stop with

AO_GITHUB_REPO not configured: GitHub owner/repo of Agent Orchestrator. Example: export AO_GITHUB_REPO=owner/agent-orchestrator.


Execution Steps

Step 1 — Collect open PRs

Use REST as the primary read path for these listings. REST and GraphQL have

separate quota buckets. Before reporting GitHub/API work blocked, try one

bounded equivalent read through both APIs where the operation permits; see

github-cli-reference/SKILL.md. A quota failure for one operation does not

block unrelated AO work.

gh api "repos/${AO_GITHUB_REPO}/pulls?state=open&per_page=30&sort=updated" \
  --jq '.[] | "\(.number)\t\(.head.ref)\t\(.title[:60])"'

Also collect recently merged (last 24h):

gh api "repos/${AO_GITHUB_REPO}/pulls?state=closed&per_page=30&sort=updated&direction=desc" \
  --jq '.[] | select(.merged_at != null) | "\(.number)\t\(.head.ref)\t\(.title[:70])\t\(.merged_at)"'

Filter merged ones to last 24h by comparing .merged_at timestamp.

Step 2 — Per-PR data fetch (open PRs)

For each open PR number NUM, fetch mergeability, CI, reviews, and comments.

Use REST for the shown reads; if a call is unavailable, try an equivalent

read-only GraphQL query before reporting the data unavailable:

# Mergeability (REST returns boolean mergeable + string mergeable_state)
gh api "repos/${AO_GITHUB_REPO}/pulls/NUM" \
  --jq '{mergeable, mergeable_state}'

# CI checks (canonical statusCheckRollup contract at current HEAD)
gh pr view NUM --repo "$AO_GITHUB_REPO" --json statusCheckRollup \
  --jq '[.statusCheckRollup[] | select(.name != "Green Gate" and .name != "Cursor Bugbot") | {name, status, conclusion, state, typename: .__typename}]'

# Reviews
gh api "repos/${AO_GITHUB_REPO}/pulls/NUM/reviews" \
  --jq '.[] | {user: .user.login, state}'

# Fetch comment text for model review; never infer severity from words.
gh api "repos/${AO_GITHUB_REPO}/pulls/NUM/comments" \
  --jq '.[] | {id, user: .user.login, body, path, line, created_at}'

Step 3 — Draft readiness + `/green` per open PR

Use ~/.claude/skills/pr-lifecycle/SKILL.md and

~/.claude/skills/pr-green-definition/SKILL.md. Advisory checks (Green Gate and Cursor Bugbot) are excluded from gating.

Status label (pick worst failing condition):

CI_PENDING regardless of conclusion; evaluate conclusion only when

status == COMPLETED. A completed null conclusion is CI_UNKNOWN, not

CI_FAILED and never a pass. For a StatusContext, pending/expected means

CI_PENDING, explicit failure/error means CI_FAILED, and missing/unknown

state means CI_UNKNOWN.

Step 4 — Zero-touch rate analysis

Use ~/.claude/skills/zero-touch/SKILL.md for the intervention criteria and

measurement. The [agento] title prefix is a discovery hint only, not proof of

zero-touch; its absence does not prove operator assistance.

For every merged PR in the window, inspect spawn provenance, quality-gate receipts and pre-merge intervention history

(commits, reviews, comments and CI actions), using the canonical criteria and exclusions.

Record the supporting evidence links and classify as YES (verified zero-touch),

NO (verified operator assistance), or UNKNOWN (missing or ambiguous evidence).

A shared account or title tag alone does not establish who performed an action.

Do not count merge authorization or the merge action itself as operator assistance;

apply the canonical exclusions rather than inventing new quality or review gates.

Calculate:

merged PR is classified from evidence and total_merged > 0

Incomplete coverage makes the overall zero-touch rate unknown; report the verified

counts and missing evidence instead of treating unknowns as zero-touch or assisted.

With no merged PRs, report N/A (no merged PRs), not a percentage.

For each NO, cite the actual intervention; for each UNKNOWN, name the evidence gap.

Step 5 — Format and display the report inline

## Agento Status Report — YYYY-MM-DD HH:MM

### Summary
- Repo: $AO_GITHUB_REPO
- Open PRs: N
- GREEN (draft readiness + /green only): N
- Not green: N
- Merged (last 24h): N
- Zero-touch rate (24h): X% / UNKNOWN / N/A (N verified zero-touch, A assisted, U unknown; M total merged)

### Open PRs

| PR | Branch | Status | Blockers |
|----|--------|--------|----------|
| [#NUM](URL) title | branch | GREEN/status | blocker details |

### Merged (last 24h)

| PR | Title | Zero-touch? | Notes |
|----|-------|-------------|-------|
| [#NUM](URL) | title | YES / NO / UNKNOWN | evidence links, intervention or gap |

### Zero-Touch Analysis
- Rate: X% / UNKNOWN / N/A (N verified zero-touch / M total; U unknown)
- Verified operator-assisted PRs and unknowns:
  - #NUM: reason (e.g., "operator fixed lint on main before CI could pass")
  - #NUM: UNKNOWN (e.g., "spawn provenance unavailable")

### AO Sessions
(tmux session count + key worker status)

Step 6 — Post Slack summary via MCP

Post to the user-authorized Slack summary destination (verified channel ID: <slack-channel>):

mcp__slack__conversations_add_message(
  channel_id="<slack-channel>",
  text="*Agento Status Report — YYYY-MM-DD HH:MM*\n\nRepo: <AO_GITHUB_REPO>\nOpen: N PRs | GREEN: N | Not green: N\nMerged (24h): N | Zero-touch rate: X% / UNKNOWN / N/A (U unknown)\n\n<per-PR details>"
)

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.