analyze-payload

analyze-payload is a command for Claude Code from wangke19/gemini-ai-helpers. It costs 25 tokens per session (1,315 once invoked), scanned A, original, Apache-2.0.

A command for investigating a tagged software release through its failed blocking checks and producing an HTML report. It compares earlier rejected releases and links newly introduced changes to failures.

In plain words
What is it for?
Use it to investigate rejected, accepted, or still-running releases, trace when a failing check began, and identify changes that may need reverting.
Why use it?
It helps separate new failures from recurring ones and narrow down which change likely caused a release to be blocked.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions subagents; positional $N argument; mentions Gemini CLI.

Good fit Use it to investigate rejected, accepted, or still-running releases, trace when a failing check began, and identify changes that may need reverting.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/wangke19/gemini-ai-helpers/analyze-payload
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/wangke19/gemini-ai-helpers

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for analyze-payload

README.md
[![agentmods](https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/analyze-payload.svg)](https://agentmods.dev/commands/wangke19/gemini-ai-helpers/analyze-payload)
Your own site
<a href="https://agentmods.dev/commands/wangke19/gemini-ai-helpers/analyze-payload"><img src="https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/analyze-payload.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,315 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00025 $0.01315
Opus 5 $0.00013 $0.00658
Sonnet 5 $0.00005 $0.00263
Haiku 4.5 $0.00003 $0.00131

Measured 8d ago against content hash cb814466a273, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

analyze-payload scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

extensions/ci/commands/analyze-payload.md · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Name

ci:analyze-payload

Synopsis

/ci:analyze-payload <payload-tag> [--lookback N]

Description

The ci:analyze-payload command analyzes a specific payload tag, investigates every failed blocking job, and produces a self-contained HTML report summarizing what went wrong.

It supports Rejected payloads (full analysis), Ready payloads (early analysis of blocking jobs that have already failed, to determine if the payload is on track for rejection), and Accepted payloads (which may have been force-accepted despite blocking job failures).

It performs historical lookback through consecutive rejected payloads to determine when each failure first appeared. For each originating payload (where a job first started failing), it fetches the new PRs introduced in that payload as likely culprits. This distinguishes new failures from persistent/permafailing jobs and helps identify the root cause commits.

When a candidate PR can be correlated with high confidence (>= 85 rubric score) to a blocking job failure — based on component match, error analysis, and timing — the report will recommend it for immediate revert. Per OCP policy, PRs that break payloads MUST be reverted; fixes can be re-landed after the revert restores payload health. The /ci:payload-revert command can then be used to automatically create TRT JIRA bugs, open revert PRs, and trigger payload validation jobs for all high-confidence candidates.

The payload results YAML output (payload-results-{tag}.yaml) can be consumed by composable downstream commands: /ci:payload-revert stages reverts for high-confidence candidates, and /ci:payload-experiment opens draft revert PRs for medium-confidence candidates to experimentally determine causality.

Failed jobs are investigated in parallel using subagents with the appropriate analysis skill (install failure vs test failure).

Key Features

  • Historical lookback: Walks back through up to N consecutive rejected payloads (default 10) to find when each job first started failing
  • PR correlation: Uses the fetch-new-prs-in-payload skill to identify PRs that landed in the originating payload for each failure
  • Parallel investigation: Kicks off subagents for each failed blocking job using the appropriate CI analysis skill
  • Revert recommendations: Proposes specific PRs to revert when the evidence strongly links them to a failure
  • HTML report: Generates an attractive, self-contained HTML report with collapsible sections, color-coded severity, and executive summary

Read the full file on GitHub · 96 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 96 lines · 25 tokens per session scan A cb814466a273

Subscribe to this mod's changes

analyze-payload is a command published in the GitHub repository wangke19/gemini-ai-helpers (2 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 25 tokens to every session and 1,315 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.