Remote safe command allowlist

From ychampion/cskill-agents · View interactive version

Remote safe command allowlist is an AI agent skill from the GitHub repository ychampion/cskill-agents. Define a narrow explicit set of commands that stay available in remote mode because they only affect local UI state, then reuse that set at startup and after handshake refinement.

How to use this skill

Skill file

SKILL: Remote Safe Command Allowlist

Domain: command-architecture

Trigger: Use when a remote session can expose a subset of local commands, but only commands with no filesystem, shell, IDE, or other host-bound dependencies should remain available.

Source Pattern: Distilled from reviewed permission, shell-safety, and worktree-management implementations.

Core Method

Define one explicit allowlist for commands that are safe in remote mode because they only affect local TUI state or emit benign local information. Apply that allowlist before the remote REPL first renders so unsafe commands never flash into the initial command surface during handshake. Then reuse the same allowlist when the remote backend later narrows the advertised command list, preserving the locally safe commands alongside the server-provided set. This gives remote sessions one stable safety contract instead of separate startup and post-init rules that can drift apart.

Key Rules

Example Application

If a coding agent launches a mobile companion mode, create a remote safe commands set containing only commands like clear-screen, help, theme switching, or copying the last response. Filter the command palette through that set before the mobile UI appears, then when the remote server reports its own supported commands, merge that list with the same reviewed local-safe set so the user keeps harmless local controls without ever seeing unsafe host-bound actions.

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.