{"id":116688,"plugin_id":"plugin_asdk_app_6afee63c29748191bb53aa1b1ca92505","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-25T18:17:44.147Z","digest":"c7d4aea13b74ea7176f5f7a3a0a4ce181660202e7ce0be3558755a619b6c7114","against":null,"payload":{"description":"Use before running a shell command that deletes or overwrites files, rewrites or force-updates git history, discards uncommitted work, changes permissions recursively, alters or drops database objects, publishes or deploys, or runs a script downloaded from the internet. Runs a short pre-flight covering the exact target, reversibility, a safer alternative and authorization, and asks the user before any irreversible step they did not explicitly request.","included_files":[{"relative_path":"agents/openai.yaml","size_in_bytes":116}],"name":"safe-shell","skill_md_contents":"---\nname: safe-shell\ndescription: Use before running a shell command that deletes or overwrites files, rewrites or force-updates git history, discards uncommitted work, changes permissions recursively, alters or drops database objects, publishes or deploys, or runs a script downloaded from the internet. Runs a short pre-flight covering the exact target, reversibility, a safer alternative and authorization, and asks the user before any irreversible step they did not explicitly request.\nlicense: Apache-2.0\n---\n\n# Safe shell\n\nMost commands need no ceremony. Building, testing, reading, and deleting a known build directory inside the project are ordinary work. This pre-flight is for the few commands whose effects cannot be undone.\n\n## Commands that need the pre-flight\n\n- **Recursive deletion** of a root path, the home directory, anything outside the project, or a path built from a variable. An empty or unset variable can turn the path into the filesystem root.\n- **Rewriting shared history**: force-pushing, especially to a default or shared branch, or deleting remote branches or tags.\n- **Discarding work**: a hard reset, a forced clean of untracked files, a checkout or restore that overwrites local edits, or dropping a stash.\n- **Destroying data**: dropping or truncating tables, databases or schemas, or a delete or update without a narrowing condition.\n- **Running code you haven't read**: piping a downloaded script straight into a shell or an interpreter.\n- **Loosening permissions**: making files world-writable, or changing ownership or permissions recursively.\n- **Writing to disks or devices**: formatting a disk, or writing directly to a block device.\n- **Publishing or deploying**: releasing a package, deploying to production, or applying or destroying infrastructure.\n\n## The pre-flight\n\nBefore running the command, answer these four questions in one to three lines.\n\nIf the Truthstone checks tools are available, first call `check_shell_command` with the exact command line, and use its matched rules and any safer form in your answers. It reads the text and runs nothing, and a \"clean\" result is not authorization. Without the tools, answer the questions yourself.\n\n1. **Target.** What exactly will the command touch? Expand variables and globs first: print the resolved path, list the files, or use the tool's dry-run or preview mode. When a variable appears in a destructive path, write it as `${VAR:?}` so the shell stops if the variable is empty.\n2. **Reversibility.** Can the effect be undone, and how?\n3. **Safer path.** Is there a narrower or reversible way to get the same result? For example:\n   - make a backup branch or stash before a reset\n   - use a lease-protected force push instead of a plain one\n   - wrap destructive SQL in a transaction, or take a backup first\n   - download a script and read it before running it\n   - grant specific permissions instead of world-writable ones\n   - delete the named files instead of a whole directory\n4. **Authorization.** Did the user ask for this specific effect on this specific target?\n   - If yes, proceed, and report what changed.\n   - If not, or if the request was general (for example \"clean up the repo\"), don't run the irreversible step. Show the pre-flight and ask. A general instruction does not authorize an irreversible step.\n\n## Always\n\n- **Respect the platform's safeguards.** Use its approval and sandbox prompts, and never look for ways around them. Don't disable hooks, skip verification flags or bypass confirmations unless the user explicitly asks you to.\n- **Keep secrets out of the transcript.** Don't print environment variables, tokens, key files or credentials to inspect them. To check that a variable is set, test it without echoing its value.\n- **Stay in the project.** Prefer commands that are scoped to the project directory.\n- **Explain recovery.** After an irreversible command, say what changed and how to recover if recovery is possible, for example from the reflog, a backup or a snapshot.\n\nThe user's explicit instructions, repository instructions such as AGENTS.md, and the platform's safety rules take priority over this skill. When one of them conflicts with a step, follow it and say which step you skipped.\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}