gaze: Command for Claude Code

.opencode/commands/uf.fix-ci.md

uf.fix-ci is a command for Claude Code, OpenCode from unbound-force/gaze. It costs 32 tokens per session (14,034 once invoked), scanned A, original, Apache-2.0.

A command for diagnosing and repairing failing checks on a GitHub pull request. Continuous integration, or CI, automatically builds and tests code changes; the command investigates its logs and verifies the result.

In plain words
What is it for?
Use it with a pull request whose CI checks are failing. It can diagnose the checks, rebase the branch when needed, guide a reviewed fix loop, retry infrastructure failures, and confirm that CI is green.
Why use it?
It separates code failures, outdated branches, conflicts, and flaky infrastructure before choosing a repair. It also prevents an unreviewed fix from being pushed and uses rebasing rather than merging when a branch is behind.

Command for Claude CodeOpenCode

Written for Claude Code and OpenCode: $ARGUMENTS substitution, but also installed under .opencode/. Also seen: names the TodoWrite tool.

This is unbound-force/gaze's own configuration. It tells Claude Code and OpenCode how to work on gaze itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything gaze configures →

Reuse

Borrowing it

Nothing to install: this file belongs to unbound-force/gaze. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/unbound-force/gaze/main/.opencode/commands/uf.fix-ci.md
Clone the repo
git clone --depth 1 https://github.com/unbound-force/gaze

Made for: Claude Code, OpenCode.

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 uf.fix-ci

README.md
[![agentmods](https://agentmods.dev/badge/commands/unbound-force/gaze/uf.fix-ci/github.svg)](https://agentmods.dev/commands/unbound-force/gaze/uf.fix-ci)
Your own site
<a href="https://agentmods.dev/commands/unbound-force/gaze/uf.fix-ci"><img src="https://agentmods.dev/badge/commands/unbound-force/gaze/uf.fix-ci/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for uf.fix-ci

Your own site · 80×15
<a href="https://agentmods.dev/commands/unbound-force/gaze/uf.fix-ci"><img src="https://agentmods.dev/badge/commands/unbound-force/gaze/uf.fix-ci.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 14,034 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.00032 $0.14034
Opus 5.5 $0.00013 $0.05614
Sonnet 5.5 $0.00006 $0.02807
Haiku 4.5 $0.00003 $0.01403

Measured 3d ago against content hash f29050cc1b60, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

uf.fix-ci 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 3d 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.

.opencode/commands/uf.fix-ci.md · 1,258 lines

How it starts

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

Fix CI

You are a token-efficient CI repair engineer. The user will provide a PR number or you will auto-detect it from the current branch. Diagnose each failing CI check from fetched log evidence, classify its root cause as exactly one of code failure, stale branch, conflict, or flaky/infra, then carry the repair through: rebase the head branch onto base when conflicted or behind — never merge — run a human-gated fix loop with a review-council gate before any push, offer reruns for flaky/infra failures, and verify CI ends green.

The command follows six sequential phases (Prerequisites and PR Resolution → Diagnosis → Rebase Path → Gated Fix Loop → Flaky/Infra Rerun Path → Final Verification). Phases are not independently invocable — run all six in sequence every invocation. Phase 3 and Phase 5 are conditional paths selected by the Phase 2 diagnosis; the command passes through every phase in order regardless.

SESSION-RESUME GUARD: If this session has been resumed from compressed context, you MUST:

  1. Re-read this full command template
  2. Call get_progress with command: "uf.fix-ci" to recover checkpoint-based progress state
  3. Do NOT infer phase completion from compressed context summaries — only get_progress is authoritative
  4. Re-present any question-tool gate whose confirmation cannot be verified in the current uncompressed conversation history — no mutation executes on inferred consent
  5. Resume from the first incomplete phase

Arguments

  • PR number (optional): The pull request number whose failing CI checks to fix (e.g., 42). If omitted, the command auto-detects the open PR for the current branch.

Argument parsing (before any tool calls): Check the user's message for a PR number argument. If present, set PR_NUMBER to that value immediately. All subsequent steps use <PR_NUMBER> — no auto-detection commands are needed or permitted.


Progress Tracking

Read the full file on GitHub · 1,258 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. 3d ago First seen · 1,258 lines · 32 tokens per session scan A f29050cc1b60

Subscribe to this mod's changes

uf.fix-ci is a command published in the GitHub repository unbound-force/gaze (4 stars, last pushed yesterday), licensed Apache-2.0. It adds 32 tokens to every session and 14,034 once invoked, about $0.0001 per session on Opus 5.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-11-03.

Related

uf.fix-ci compared with commands from other repositories

uf.fix-ci next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
uf.fix-ciunbound-force/gazeCommand4yesterdayApache-2.0A32Claude Code, OpenCode
dart-fix-cidartsim/dartCommand1.2kyesterdayBSD-2-ClauseA6Claude Code
ci-debugyonatangross/orchestkitCommand299yesterdayMITA55Claude Code, Cursor
metricsgotempsh/tempsCommand903yesterdayApache-2.0A0Claude Code
tracesgotempsh/tempsCommand903yesterdayApache-2.0A0Claude Code
add-debug-waitopenshift-eng/ai-helpersCommand122yesterdayApache-2.0A12Claude Code
pr-quality-gate-reliabilityrjmurillo/ai-agentsCommand49yesterdayMITA0GitHub Copilot