Privacy redacted repl bridge system init

From ychampion/cskill-agents · View interactive version

Privacy redacted repl bridge system init is an AI agent skill from the GitHub repository ychampion/cskill-agents. Reuse one system init payload shape across trusted and remote transports, but redact tool, MCP, and plugin metadata when the bridge path would leak local integrations or filesystem paths.

How to use this skill

Skill file

SKILL: Privacy-Redacted REPL Bridge System Init

Domain: transport-privacy

Trigger: Use when the same session-init or capability payload is emitted to both trusted SDK/internal consumers and remote transports that may persist or forward the metadata.

Source Pattern: Distilled from reviewed remote-control, bridge transport, and capability-advertising implementations.

Core Method

Centralize init-payload construction in one shared builder so every transport keeps the same wire shape. At the call site, classify the transport by trust and persistence. For trusted SDK or internal paths, pass the full tool, MCP, and plugin inventories because those consumers depend on complete metadata. For remote bridge or other persisted transports, reuse the same builder and field names but pass redacted substitutes for leak-prone collections, especially tool names that expose MCP integrations, MCP server descriptors, and plugin paths that reveal usernames or project layout. Preserve only the metadata the remote client actually needs, such as model, permission mode, remote-safe commands, agents, skills, and fast-mode state.

Key Rules

Example Application

A CLI emits system init into both its internal SDK stream and a phone bridge. Both paths call the same builder. The SDK stream passes full tools, MCP servers, and plugins so local integrators can render complete diagnostics. The bridge path passes empty arrays for those collections, but still includes model, permission mode, active agents, skills, and the subset of commands that are safe to invoke remotely.

Anti-Patterns (What NOT to do)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.