emitting-output
Writing or converting formatted output in ripwire's C++ source — std::print/std::format via rw::emitTo, emitRaw and formatTo,…
Security review: (1) vet an untrusted SKILL.md or .mcp.json BEFORE installing it — the injection/exfiltration scanner; CRITICAL blocks the install; (2) audit code on an untrusted-input path (a deserializer, parser, exec of user data, network endpoint): taint reach, untested
Claude Code
$ npx -y skills add redhat-et/ripwire --skill ripwire-security-scan --agent claude-code
Codex
$ npx skills add redhat-et/ripwire --skill ripwire-security-scan -a codex -y
Cursor
$ npx skills add redhat-et/ripwire --skill ripwire-security-scan -a cursor -y
Gemini CLI
$ npx skills add redhat-et/ripwire --skill ripwire-security-scan -a gemini-cli -y
GitHub Copilot
$ npx skills add redhat-et/ripwire --skill ripwire-security-scan -a github-copilot -y
OpenCode
$ npx skills add redhat-et/ripwire --skill ripwire-security-scan -a opencode -y
Windsurf
$ npx skills add redhat-et/ripwire --skill ripwire-security-scan -a windsurf -y
name: ripwire-security-scan description: > Security review: (1) vet an untrusted SKILL.md or .mcp.json BEFORE installing it — the injection/exfiltration scanner; CRITICAL blocks the install; (2) audit code on an untrusted-input path (a deserializer, parser, exec of user data, network endpoint): taint reach, untested seams. One scan pass is the verdict. allowed-tools: Bash, Read
> Routing: wiring ripwire ITSELF into an agent as an MCP server (not auditing someone else's) → **ripwire-mcp** · > general diff risk, not specifically security → **ripwire-change-check** · unsure → **ripwire-router**.
| You have | Run | Verdict | |---|---|---| | a `SKILL.md` someone sent you | `ripwire --scan-skill=PATH/TO/SKILL.md` | exit `0` clean · `1` WARN (review before installing) · `2` CRITICAL — do not install | | a whole skills folder | `ripwire --scan-skills=DIR` (bare form also scans the repo-local, Claude and Codex skill homes) | worst severity found; CRITICAL is a hard block | | an `.mcp.json` / MCP config | `ripwire <dir> --grep-in=any --grep='"command"' --grep-context=6 --legend=compact`, then read each server stanza | the manual checklist: command origin, shell metacharacters in `args`, paths to secrets (`~/.ssh`, `~/.aws/credentials`), `env` | | code on an untrusted-input path (parser, deserializer, exec of user data, network endpoint) | `ripwire <dir> --lint --legend=compact` (unsafe constructs), then the entry's reach: `ripwire <dir> --graph-query='callees(name("SYM"),6)' --legend=compact` | a ranked list of concerns: sink sites, the entry that reaches them, untested seams (`ripwire <dir> --seams --legend=compact`) |
Each scanner finding prints severity, `file:line`, the rule id (`INJECTION:ignore-prev`, exfiltration, path traversal) and the offending text verbatim. `ripwire wrap <agent>` runs the skills scan itself before it prints a recipe and refuses on a CRITICAL unless `--force`.
**For config and for a sink census, always pass `--grep-in=any`.** A JSON/TOML/YAML file parses entirely to string-tier nodes, so on a mixed repo one code-tier hit suppresses every config file and serves prose instead. ripwire indexes JSON config keys and retrieves their raw context, but it does not understand the security semantics of an MCP stanza: retrieval is automated, the semantic decision remains manual.
One scan pass is the verdict for a skill file. For code, the structural pass is taint REACH, not real taint analysis: a reached sink is a place to read, not a proven vulnerability, and name-based edges can miss dynamic dispatch. If any `--grep` in your report ran WITHOUT `--grep-in=any`, say so — a tiered answer is a filtered one.
`skill-mcp-scan.md` — the scanner's rules and output, the full MCP checklist with the measured `--grep-in=any` difference · `code-pass.md` — the structural code pass step by step (unsafe constructs, taint reach, seams, sinks, the chain) and the Output shape.
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…