universal-lsp: Command for Claude Code

.claude/commands/fix-ci.md

fix-ci is a command for Claude Code from developerz-ai/universal-lsp. It costs 17 tokens per session (343 once invoked), scanned A, original, Apache-2.0.

A command for investigating a failed continuous-integration (CI) job, which is an automated build and test run, and fixing the problem locally before pushing the change.

In plain words
What is it for?
Use it to inspect failed job logs, reproduce failures, run formatting, builds, tests, sanitizers, or static analysis, then fix and push the result.
Why use it?
It connects the error reported by CI to the matching local check, reducing guesswork and preventing repeated failed pushes. It also detects cases where local and CI checks disagree.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is developerz-ai/universal-lsp's own configuration. It tells Claude Code how to work on universal-lsp 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 universal-lsp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to developerz-ai/universal-lsp. 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/developerz-ai/universal-lsp/main/.claude/commands/fix-ci.md
Clone the repo
git clone --depth 1 https://github.com/developerz-ai/universal-lsp

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/developerz-ai/universal-lsp/fix-ci/github.svg)](https://agentmods.dev/commands/developerz-ai/universal-lsp/fix-ci)
Your own site
<a href="https://agentmods.dev/commands/developerz-ai/universal-lsp/fix-ci"><img src="https://agentmods.dev/badge/commands/developerz-ai/universal-lsp/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 fix-ci

Your own site · 80×15
<a href="https://agentmods.dev/commands/developerz-ai/universal-lsp/fix-ci"><img src="https://agentmods.dev/badge/commands/developerz-ai/universal-lsp/fix-ci.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 343 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.00017 $0.00343
Opus 5.5 $0.00007 $0.00137
Sonnet 5.5 $0.00003 $0.00069
Haiku 4.5 $0.00002 $0.00034

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

Security

Grade A, and why

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 2mo 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.

.claude/commands/fix-ci.md · 31 lines

What it actually says

/fix-ci

  1. gh run list --branch $(git branch --show-current) --limit 3

  2. gh run view <id> --log-failed — read the actual error, not the summary.

  3. Map the job to its local command (they are the same strings; the mapping lives in scripts/lib/gate.ts):

    Job Local
    Format + guards bin/check --files <paths>
    Build + test bin/dev test
    graph-lite standalone cmake -S graph-lite -B build/graph-lite-standalone -G Ninja && cmake --build build/graph-lite-standalone
    ASan + UBSan bin/dev asan
    clang-tidy clang-tidy -p build/dev <file>
  4. Reproduce locally first. A fix pushed without reproducing is a guess with a five-minute feedback loop.

  5. Fix, bin/check --changed, push.

If the job failed because CI and the local gate disagree, that is the parity bug — fix scripts/lib/gate.ts and .github/workflows/ci.yml together, and bun test scripts/ proves it.

Flaky is not acceptable. A flaky job trains everyone to re-run instead of read. Open an issue and quarantine it; never continue-on-error.

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. 2mo ago First seen · 31 lines · 17 tokens per session scan A af8f2e9fcf41

Subscribe to this mod's changes

fix-ci is a command published in the GitHub repository developerz-ai/universal-lsp (0 stars, last pushed yesterday), licensed Apache-2.0. It adds 17 tokens to every session and 343 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-08-31.