emitting-output
Writing or converting formatted output in ripwire's C++ source — std::print/std::format via rw::emitTo, emitRaw and formatTo,…
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.
Claude Code
$ npx -y skills add redhat-et/ripwire --skill ripwire-opt-remarks --agent claude-code
Codex
$ npx skills add redhat-et/ripwire --skill ripwire-opt-remarks -a codex -y
Cursor
$ npx skills add redhat-et/ripwire --skill ripwire-opt-remarks -a cursor -y
Gemini CLI
$ npx skills add redhat-et/ripwire --skill ripwire-opt-remarks -a gemini-cli -y
GitHub Copilot
$ npx skills add redhat-et/ripwire --skill ripwire-opt-remarks -a github-copilot -y
OpenCode
$ npx skills add redhat-et/ripwire --skill ripwire-opt-remarks -a opencode -y
Windsurf
$ npx skills add redhat-et/ripwire --skill ripwire-opt-remarks -a windsurf -y
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
> 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`**.
**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.
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.
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.
`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.
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.
Writing or converting formatted output in ripwire's C++ source — std::print/std::format via rw::emitTo, emitRaw and formatTo,…
Starting a FEATURE (multi-symbol work): the plan, the API boundary, the scope — how big does this change get — from the…
Merge-SAFETY of an existing diff — yours before you push, or a PR you review: blast radius, tests to run, a broken contract…
You have a SYMPTOM — crash, exception, wrong output, failing test, error string — and don't know which code is responsible. Ranks…
Maintenance risk in code you did NOT write — inheriting a module, planning a refactor, a suspected god object, 'what's gnarly /…
Generate type-safe API clients, TanStack Query/SWR hooks, Zod schemas, MSW mocks, Hono server handlers, MCP servers, and…
Use the Modern Go Guidelines CLI whenever writing, modifying, fixing, or refactoring Go code. Apply its version-specific guidance…
Use this skill when the user is building against Anthropic APIs or SDKs, including `@anthropic-ai/sdk`, `anthropic`, or Agent SDK…
Converts an arxiv paper into a minimal, citation-anchored Python implementation. Trigger when user runs /paper2code with an arxiv…