opal: Skill for Claude Code

.claude/skills/ci-preflight/SKILL.md

ci-preflight is a skill for Claude Code from matteing/opal. It costs 39 tokens per session (362 once invoked), scanned A, original, MIT.

A local CI preflight skill that runs the project's automated checks before code is pushed. CI, or continuous integration, is the system that checks changes automatically in a shared code repository.

In plain words
What is it for?
Use it before pushing a branch, after substantial changes, or whenever you need to verify the core code and TypeScript CLI checks.
Why use it?
It catches formatting, build, type, code-generation, and test failures before they reach the remote CI system.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

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

Reuse

Borrowing it

Nothing to install: this file belongs to matteing/opal. 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/matteing/opal/main/.claude/skills/ci-preflight/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/matteing/opal

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/matteing/opal/ci-preflight/github.svg)](https://agentmods.dev/skills/matteing/opal/ci-preflight)
Your own site
<a href="https://agentmods.dev/skills/matteing/opal/ci-preflight"><img src="https://agentmods.dev/badge/skills/matteing/opal/ci-preflight/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 ci-preflight

Your own site · 80×15
<a href="https://agentmods.dev/skills/matteing/opal/ci-preflight"><img src="https://agentmods.dev/badge/skills/matteing/opal/ci-preflight.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 362 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00039 $0.00362
Opus 5.5 $0.00016 $0.00145
Sonnet 5.5 $0.00008 $0.00072
Haiku 4.5 $0.00004 $0.00036

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

Security

Grade A, and why

ci-preflight 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/skills/ci-preflight/SKILL.md · 61 lines

What it actually says

CI Preflight Skill

You run the same checks that GitHub Actions CI performs, but locally, to catch failures before pushing. This saves time and keeps the commit history clean.

When to act

  • Before pushing a branch to remote.
  • When the user asks to "run CI", "check everything", or "preflight".
  • After a large set of changes to verify nothing is broken.

Check sequence

Run these in order. Stop and fix issues at each step before proceeding.

1. Elixir core

# Compile with warnings-as-errors (matches CI)
mise run build:core

# Check formatting
mise run lint:core

# Run tests
mise run test:core

2. TypeScript CLI

# Lint (ESLint)
mise run lint:cli

# Verify codegen is current
mix run scripts/codegen_ts.exs --check

# Build (typecheck + compile)
mise run build:cli

3. Quick summary

Or run everything at once:

mise run lint && mise run build && mise run test

Rules

  1. Every check must pass before pushing. If something fails, fix it first.
  2. Report results clearly — list what passed and what failed.
  3. For failures, diagnose the root cause and suggest or apply fixes.
  4. If a test is flaky (passes on retry), flag it to the user rather than silently retrying.
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 · 61 lines · 39 tokens per session scan A fd8a27001c53

Subscribe to this mod's changes

ci-preflight is a skill published in the GitHub repository matteing/opal (62 stars, last pushed 2mo ago), licensed MIT. It adds 39 tokens to every session and 362 once invoked, about $0.0002 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-30.

Related

ci-preflight compared with skills from other repositories

ci-preflight next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ci-preflightmatteing/opalSkill622mo agoMITA39Claude Code
building-agentsericrisco/rsc-harnessSkill5032d agoMITA85Claude Code, Codex
agent-evalericrisco/rsc-harnessSkill5032d agoMITA79Claude Code, Codex
swarm-migrateyonatangross/orchestkitSkill299yesterdayMITA103Claude Code
ci-debugyonatangross/orchestkitSkill299yesterdayMITA55Claude Code
devops-deploymentyonatangross/orchestkitSkill299yesterdayMITA34Claude Code
documentation-patternsyonatangross/orchestkitSkill299yesterdayMITA53Claude Code