repo-native-alignment: Skill for Claude Code

.agents/skills/oh-ci/SKILL.md

oh-ci is a skill for Claude Code, Codex from open-horizon-labs/repo-native-alignment. It costs 15 tokens per session (1,343 once invoked), scanned A, original, MIT.

A workflow for diagnosing and fixing failed automated checks on a GitHub pull request. CI, or continuous integration, automatically builds and tests code when changes are proposed.

In plain words
What is it for?
Use it when a pull request has failing CI checks. It helps inspect check-run details, reproduce or fix the failure, run verification, and update the pull request.
Why use it?
It gathers the failed check logs, works on the pull request branch in a separate worktree, applies fixes, verifies them, and pushes the result. This reduces the need to investigate CI failures manually.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is open-horizon-labs/repo-native-alignment's own configuration. It tells Claude Code and Codex how to work on repo-native-alignment 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 repo-native-alignment configures →

Reuse

Borrowing it

Nothing to install: this file belongs to open-horizon-labs/repo-native-alignment. 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/open-horizon-labs/repo-native-alignment/main/.agents/skills/oh-ci/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/open-horizon-labs/repo-native-alignment

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/open-horizon-labs/repo-native-alignment/oh-ci/github.svg)](https://agentmods.dev/skills/open-horizon-labs/repo-native-alignment/oh-ci)
Your own site
<a href="https://agentmods.dev/skills/open-horizon-labs/repo-native-alignment/oh-ci"><img src="https://agentmods.dev/badge/skills/open-horizon-labs/repo-native-alignment/oh-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 oh-ci

Your own site · 80×15
<a href="https://agentmods.dev/skills/open-horizon-labs/repo-native-alignment/oh-ci"><img src="https://agentmods.dev/badge/skills/open-horizon-labs/repo-native-alignment/oh-ci.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,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.00015 $0.01343
Opus 5 $0.00008 $0.00672
Sonnet 5 $0.00003 $0.00269
Haiku 4.5 $0.00002 $0.00134

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

Security

Grade A, and why

oh-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 11d 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.

.agents/skills/oh-ci/SKILL.md · 166 lines

How it starts

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

oh-ci

Fix CI failures on a pull request. Work in an isolated worktree, diagnose failures from check run logs, apply fixes, verify, and push.

Invocation

/oh-ci <pr-number>

  • <pr-number> - the pull request number with failing CI

Prerequisites

  • Repo context: Run from the repo root where the PR exists
  • GitHub issue PR: The PR should be from an oh-task session (branch issue/<number>)

Flow

  1. Load project background from AGENTS.md, relevant .oh/ artifacts, and RNA MCP context when available.

  2. Get PR branch info and create worktree:

    # Save original directory for cleanup
    ORIGINAL_DIR=$(pwd)
    
    # Get the PR branch name
    BRANCH=$(gh pr view <pr-number> --json headRefName -q .headRefName)
    
    # Fetch and create worktree tracking the remote branch
    git fetch origin
    git worktree add .worktrees/ci-<pr-number> -B $BRANCH origin/$BRANCH
    cd .worktrees/ci-<pr-number>
    
  3. Fetch CI check run details and logs:

    # Get the head SHA
    HEAD_SHA=$(gh pr view <pr-number> --json headRefName,commits -q '.commits[-1].oid')
    
    # List all check runs for this commit
    gh api repos/{owner}/{repo}/commits/${HEAD_SHA}/check-runs --jq '.check_runs[] | select(.conclusion == "failure") | {name: .name, id: .id, conclusion: .conclusion}'
    
    # For each failed check run, inspect annotations separately
    gh api repos/{owner}/{repo}/check-runs/{check_run_id}/annotations
    
    # Resolve the failed workflow run non-interactively, then fetch its logs
    RUN_ID=$(gh run list --commit "$HEAD_SHA" --status failure --limit 1 --json databaseId --jq '.[0].databaseId')
    test -n "$RUN_ID"
    gh run view "$RUN_ID" --log-failed
    
  4. Diagnose failures:

    • Parse the CI logs to identify the root cause
    • Common categories: type errors, test failures, lint violations, build errors
    • If multiple failures, identify if they share a root cause
    • Read the relevant source files to understand context
  5. Fix the code:

    • Apply targeted fixes for each failure
    • Stage changes (git add)
    • Run the repo-local /review skill on staged changes
    • Handle review findings:
      • P1-P3 trivial: fix inline, re-stage
      • P1-P3 non-trivial: create GitHub issue as descendant
      • P4: discard

Read the full file on GitHub · 166 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. 11d ago First seen · 166 lines · 15 tokens per session scan A 833798628afe

Subscribe to this mod's changes

oh-ci is a skill published in the GitHub repository open-horizon-labs/repo-native-alignment (5 stars, last pushed 3d ago), licensed MIT. It adds 15 tokens to every session and 1,343 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.

Related

Other skills, from other repositories

smoke-test

Health smoke tests + auto-fix for gbrain installs (and OpenClaw services when present). Run after machine/container restarts or whenever something seems broken. Tests critical services, auto-fixes bounded local issues, and reports worker topology without starting daemons. Extensible via user-defined test scripts in…

garrytan/gbrain · 79 tokens

mcore-create-issue

Investigate a failing GitHub Actions run or job and create a GitHub issue for the failure.

NVIDIA/skills · 26 tokens

debug-task

Diagnose and fix moon tasks that are broken, misconfigured, or behaving unexpectedly. Use this skill when a moon task is failing, not running, skipped, hanging, producing stale or wrong output, cached when it shouldn't be, re-running every time when it should be cached, or when outputs are empty or missing after a…

moonrepo/moon · 231 tokens

operating-github-ci-fixer

Use when the user asks OpenSRE to fix failing GitHub CI, GitHub Actions checks, failing pull request checks, a broken PR branch, or CI on a named branch such as main.

Tracer-Cloud/opensre · 48 tokens

ci-triage

Classify CI failures — distinguish clear regressions from infra flakes and security-test failures. Produces structured failure reports.

cobusgreyling/loop-engineering · 28 tokens

meta-long-running-build-watchdog

Watches a long-running command via tmux, lets sub-agent diagnose failures and propose a fix, and records the diagnosis to memory. Designed for overnight model fine-tunes, CI image builds, or repeated regression suites that may fail intermittently.

opensquilla/opensquilla · 131 tokens