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,956 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/github.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/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 claude-integration

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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,956 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.02956
Opus 5.5 $0.00048 $0.01182
Sonnet 5.5 $0.00024 $0.00591
Haiku 4.5 $0.00012 $0.00296

Measured 1mo ago against content hash 8d32f3e4aa67, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-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 1mo 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 · 177 lines

How it starts

The opening of the file, as written. The whole thing — 177 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 creates signals.json with whatever file-creating tool its CLI has (Write on four backends, search_replace on Grok, which has no 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 · 177 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. 1mo ago Changed · +5 lines 8d32f3e4aa67
  2. 1mo ago Changed · +1 lines 9883ff1f5dad
  3. 2mo 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 (24 stars, last pushed 4d ago), licensed MIT. It adds 120 tokens to every session and 2,956 once invoked, about $0.0005 per session on Opus 5.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

claude-integration compared with skills from other repositories

claude-integration next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
claude-integrationlukas-grigis/ralphctlSkill244d agoMITC120Claude Code
save-learningcaliber-ai-org/ai-setupSkill1.3k1mo agoMITA71Claude Code, Codex
reviewdevoxx/DevoxxGenieIDEAPluginSkill687yesterdayMITA90Claude Code
web-accessopen-octo/octo-agentSkill1412d agoMITA139Claude Code, Codex
skill-creatoropen-octo/octo-agentSkill1412d agoMITA123Claude Code, Codex
repothewaltero/mythos-routerSkill304yesterdayMITA11Claude Code, Codex
ce-workelleryfamilia/loadoutSkill3329d agoMITA40Claude Code