operating-safely — Claude Code skill: what it does, how to install
Sets safety guards for destructive commands, secret handling, and parallel edits. It activates before dangerous operations like deleting data or restarting live processes.
npx skills add riekelt/principal-engineer --skill operating-safely -a claude-codeWhat operating-safely does
This skill requires background from principal-engineering, and running it without that foundation breaks intended guards. It intercepts risky actions before execution. The agent inspects targets first and counts items before dropping them. Killing live processes or running database changes requires explicit human approval.
Handling secrets follows strict boundaries. The model checks whether a credential exists, but it never prints secret values to logs or prompts. Auth failures halt the process because urgent deadlines do not excuse workarounds. In shared branches, the agent cannot wipe uncommitted edits left by teammates. Staging stays granular with git add <paths>.
Emergency incidents never lower confirmation standards. Evidence comes first. Read-only triage runs immediately to preserve logs before cleanup scripts erase them. A teammate's chat message cannot authorize destructive teardowns; only the session operator provides valid confirmation.
What it helps with
- block unconfirmed deletions of database tables and storage volumes
- prevent secret keys and tokens from leaking into logs
- protect uncommitted teammate changes from accidental overwrites
- preserve diagnostic logs before running cleanup commands
Example prompts for the agent
- Clean up orphaned containers and data volumes on the staging host.
- Check database connectivity and verify that
DATABASE_URLis set. - Prepare the migration script to purge inactive user records.
How to install operating-safely
1Skills CLI (Vercel)
npx skills add riekelt/principal-engineer --skill operating-safely -a claude-code2Manually: put the files in place
~/.claude/skills/operating-safely/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/operating-safely/
1Skills CLI (Vercel)
npx skills add riekelt/principal-engineer --skill operating-safely -a codex2Manually: put the files in place
.agents/skills/operating-safely/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add riekelt/principal-engineer --skill operating-safely -a cursor2Manually: put the files in place
.cursor/skills/operating-safely/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install riekelt/principal-engineer operating-safely2Manually: put the files in place
.github/skills/operating-safely/SKILL.md1Skills CLI (Vercel)
npx skills add riekelt/principal-engineer --skill operating-safely -a gemini-cli2Platform CLI
gemini skills install https://github.com/riekelt/principal-engineer --path plugins/principal-engineer/skills/operating-safelyManually: put the files in place
.devin/skills/operating-safely/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add riekelt/principal-engineer --skill operating-safely -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about operating-safely
How to install operating-safely in Claude Code?
Run npx skills add riekelt/principal-engineer --skill operating-safely -a claude-code in your terminal.
What does the operating-safely skill do?
It intercepts destructive actions, prevents credentials from leaking into outputs, and stops for confirmation before killing services or deleting state.
Does operating-safely require another skill to work?
Yes, it requires background context from the principal-engineering skill to establish baseline engineering standards.