ralphctl: Skill for Claude Code

.claude/skills/claude-integration/SKILL.md

claude-integration is a skill for Claude Code from lukas-grigis/ralphctl. It costs 120 tokens per session (2,726 once invoked), scanned C, original, MIT.

A technical guide to connecting ralphctl with AI command-line tools such as Claude, Copilot, Codex, OpenCode, and Grok. It describes how agents are started, how they report results through files, how stalled processes are stopped, and how interrupted sessions resume.

In plain words
What is it for?
Use it when changing provider adapters, headless or interactive execution, session recovery, result files, idle-output monitoring, or rate-limit retries.
Why use it?
Provider-specific process handling can otherwise be scattered and inconsistent, making failures, rate limits, and recovery harder to manage.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

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

Reuse

Borrowing it

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

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 claude-integration

README.md
[![agentmods](https://agentmods.dev/badge/skills/lukas-grigis/ralphctl/claude-integration.svg)](https://agentmods.dev/skills/lukas-grigis/ralphctl/claude-integration)
Your own site
<a href="https://agentmods.dev/skills/lukas-grigis/ralphctl/claude-integration"><img src="https://agentmods.dev/badge/skills/lukas-grigis/ralphctl/claude-integration.svg" alt="Measured on agentmods" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,726 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00120 $0.02726
Opus 5 $0.00060 $0.01363
Sonnet 5 $0.00024 $0.00545
Haiku 4.5 $0.00012 $0.00273

Measured 7d ago against content hash 46a4f1a6ca1d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade C, and why

claude-integration scanned grade C with 2 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 7d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

| First spawn takes 1–2 min instead of ~5s | Bloated `~/.claude` cache | `rm -rf ~/.claude/plugins ~/.claude/debug` |

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

`node:child_process.spawn` impl), `run-headless-spawn.ts` (the headless wrapper that wires watchdog +
.claude/skills/claude-integration/SKILL.md · 171 lines

How it starts

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

AI provider integration (Claude / Copilot / Codex / OpenCode / Grok)

Covers what is not in CLAUDE.md or .claude/docs/ARCHITECTURE.md. For harness signals, exit codes, sequential task execution, and check-script gating — see CLAUDE.md.

Source of truth:

  • Provider adapters: src/integration/ai/providers/{claude,copilot,codex,opencode,grok}/ — one folder per tool, sibling-isolated. Each owns headless.ts, interactive.ts, and model-availability-probe.ts (Claude, Copilot, OpenCode, and Grok also have parse-stream.ts for stream-format handling). OpenCode is the aggregator backend: its model ids are provider/model and its catalog is discovered at runtime via opencode models, so its probe is the one that cannot check against a static list. Grok's probe is passthrough (not grok models).
  • Shared engine: src/integration/ai/providers/_engine/spawn.ts (the ProviderSpawn port + default node:child_process.spawn impl), run-headless-spawn.ts (the headless wrapper that wires watchdog + signals file + sessionId file + rate-limit backoff), rate-limit-backoff.ts (exponential retry policy), idle-watchdog.ts (kills wedged children), headless-ai-provider.ts (the cross-tool port).
  • Signal contract: src/integration/ai/contract/_engine/{validate-signals-file,render-sidecars,render-contract-section}.ts with per-kind Zod schemas under src/integration/ai/contract/_engine/signals/<kind>/schema.ts. Each AI-spawning leaf composes <leaf>.contract.ts from these primitives; the AI writes signals.json via its Write tool, the harness Zod-validates post-spawn.
  • Composition: src/application/bootstrap/provider-factory.ts (createAiProvider) picks the concrete adapter from settings.ai.provider.

Spawn modes

There are two ports under _engine/:

import type { HeadlessAiProvider } from '@src/integration/ai/providers/_engine/headless-ai-provider.ts';
import type { InteractiveAiProvider } from '@src/integration/ai/providers/_engine/interactive-ai-provider.ts';

Read the full file on GitHub · 171 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. 7d ago First seen · 171 lines · 120 tokens per session scan C 46a4f1a6ca1d

Subscribe to this mod's changes

claude-integration is a skill published in the GitHub repository lukas-grigis/ralphctl (23 stars, last pushed yesterday), licensed MIT. It adds 120 tokens to every session and 2,726 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it C with 2 findings (recursive force delete, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

rework-rate

Measure and interpret PR rework rate — the emerging 5th DORA metric.

bradygaster/squad · 20 tokens

My Skill

Content here.

bradygaster/squad · 2 tokens

atomic-visual-options

Planning-phase visual comparison aid. Renders 2-4 side-by-side variants per decision dimension as a single throwaway, self-contained HTML file and captures the user's pick as typed terminal codes (e.g. "A2 B3"). Auto-fires on phrases like "show me a few options", "mock up some variants", "let me see this side by…

damusix/atomic-claude · 150 tokens

atomic-wiki

Conversational wiki and capture-bucket routing. Fires when the user wants a place, space, or folder for notes, research, tickets, raw dumps, or knowledge capture — checks the block in /.claude/CLAUDE.md; if the cwd is under a registered realm, creates the folder as a bucket via atomic wiki bucket add rather than a…

damusix/atomic-claude · 204 tokens

atomic-review

Compressed code review comments. Cuts noise from PR feedback while preserving the actionable signal. Each comment is one line: location, problem, fix. Use when user says "review this PR", "code review", "review the diff", or invokes /atomic-review. Auto-triggers when reviewing pull requests.

damusix/atomic-claude · 63 tokens

atomic-verify

Evidence-before-claim gate. Auto-triggers when Claude is about to claim "done", "fixed", "passing", "complete", "ready to merge", "looks good", "should work", "should pass", "green", or any synonym. Iron rule: no completion claim without a fresh verification command run in this turn. Explicit invocation…

damusix/atomic-claude · 79 tokens