Skip to content
Code Generation
Skill

/ripwire-opt-remarks

Triage clang optimization remarks (-Rpass, -Rpass-missed, opt-record YAML) while editing ripwire's OWN C++: 'loop not vectorized', 'will not be inlined' — worth a diff, or is LTO/PGO the real fix? Contributor-only: about compiling this tool, never about running it.

From plugin
ripwire
2.6k19 skills5 hooks1 MCP

Claude Code

$ npx -y skills add redhat-et/ripwire --skill ripwire-opt-remarks --agent claude-code

SKILL.md

ripwire-opt-remarks.SKILL.md
name: ripwire-opt-remarks
audience: contributor
description: >
  Triage clang optimization remarks (-Rpass, -Rpass-missed, opt-record YAML) while editing ripwire's
  OWN C++: 'loop not vectorized', 'will not be inlined' — worth a diff, or is LTO/PGO the real fix?
  Contributor-only: about compiling this tool, never about running it.
allowed-tools: Bash, Read, Edit

Triaging clang optimization remarks in this repo

> Routing: a measured slow operation, any codebase → **ripwire-perf-target** — do that FIRST; remarks are the second > question. Maintenance risk / complexity → **ripwire-fresh-eyes**. Full record of the pass, every number: > **`docs/OPTREMARKS.md`**.

The one rule

**A remark is an observation, not a defect.** The pass behind this skill read ~1.1 M remarks over `src/`; zero justified a source edit, two justified a BUILD change (LTO, then PGO). On this codebase the answer to a remark is far more often a compiler flag than a diff.

The recipe

1. **Profile first** — `cmake -S . -B build_prof -DRIPWIRE_PROFILE=ON && cmake --build build_prof -j 6`, then read the hottest scopes. A remark in code that costs a millisecond is dismissible on arithmetic before you read it. 2. **Collect, narrowed** — `scripts/optremarks.sh --passes 'inline|loop-vectorize|slp-vectorizer|licm|gvn|.*unswitch|loop-idiom'` then `python3 scripts/optremarks.py --hot --top 40`. Never in `build/`, never with a build type. 3. **Classify the remark** and look up what that class is worth here (`optremarks-reference.md`, Step 2). 4. **A fix must survive the measurement** — same workload, before and after; a candidate that does exactly what the remark asked and measures flat is reverted.

Stop rule

No profile showing the remark's code is hot → no diff. Run the gate `test/optremarkshotcheck.sh` if you split or rename a hot file.

Reference file

`optremarks-reference.md` — profiling, collection, every remark class and its worth here, the measurement a fix has to survive, and the anti-patterns the pass actually hit.

Read more
@redhat-et
Ships withripwire

The ripgrep of AI context. A map before your agent reads the repo — and a check on what it writes. Ranked, deterministic call graph: what to touch, what it breaks, which tests to run.

2.6k19 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
2.6k
Star history of redhat-et/ripwire on GitHub, a chart by star-history.com

Other skills on ripwire.

emitting-output

emitting-output

Writing or converting formatted output in ripwire's C++ source — std::print/std::format via rw::emitTo, emitRaw and formatTo,…

@redhat-et@redhat-etInstall Skill
ripwire-before-you-build

ripwire-before-you-bui…

Starting a FEATURE (multi-symbol work): the plan, the API boundary, the scope — how big does this change get — from the…

@redhat-et@redhat-etInstall Skill
ripwire-change-check

ripwire-change-check

Merge-SAFETY of an existing diff — yours before you push, or a PR you review: blast radius, tests to run, a broken contract…

@redhat-et@redhat-etInstall Skill
ripwire-find-bug

ripwire-find-bug

You have a SYMPTOM — crash, exception, wrong output, failing test, error string — and don't know which code is responsible. Ranks…

@redhat-et@redhat-etInstall Skill
ripwire-fresh-eyes

ripwire-fresh-eyes

Maintenance risk in code you did NOT write — inheriting a module, planning a refactor, a suspected god object, 'what's gnarly /…

@redhat-et@redhat-etInstall Skill

More skills from other plugins.

orval

orval

Generate type-safe API clients, TanStack Query/SWR hooks, Zod schemas, MSW mocks, Hono server handlers, MCP servers, and…

orval1d6.6k
@orval-labs@orval-labsInstall Skill
claude-api

claude-api

Use this skill when the user is building against Anthropic APIs or SDKs, including `@anthropic-ai/sdk`, `anthropic`, or Agent SDK…

@oboard@oboardInstall Skill
paper2code

paper2code

Converts an arxiv paper into a minimal, citation-anchored Python implementation. Trigger when user runs /paper2code with an arxiv…

paper2code13d1.5k

Questions about ripwire-opt-remarks.

Which coding agents can use ripwire-opt-remarks?
ripwire-opt-remarks installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.