security-guide — скилл для Claude Code: что делает и как установить
Скилл проверяет установку OpenClaw по основным направлениям безопасности и предлагает точные команды для исправления проблем. Подходит для первичного аудита.
npx skills add jnMetaCode/shellward --skill security-guide -a claude-codeЧто делает security-guide
security-guide проводит проверку безопасности установки OpenClaw: сетевой доступ к портам 19000/19001, изоляцию в Docker, секреты в .env, .bashrc и переменных окружения, права на чувствительные файлы и аудит-лог ~/.openclaw/shellward/audit.jsonl. Он также смотрит плагины, версию OpenClaw и Node.js, а затем расставляет проблемы по приоритету.
В рекомендациях есть привязка шлюза к 127.0.0.1, правила ufw, ограничения Docker, ротация логов, отключение автообновлений плагинов и проверка подозрительных шаблонов в их коде. Для быстрых действий доступны /security, /audit [count] [filter], /harden, /harden fix, /scan-plugins и /check-updates. Без Node.js версии 22.12 или выше проверка версии OpenClaw не соответствует требованию скилла; разрушительные исправления он предлагает выполнять только после подтверждения.
Какие задачи решает
- проверить открытые порты шлюза OpenClaw
- найти секреты в
.envи переменных окружения - оценить изоляцию OpenClaw в Docker
- просмотреть аудит-лог и события безопасности
- просканировать плагины и версии на уязвимости
Примеры запросов агенту
- Проверь безопасность установки OpenClaw и начни с критических проблем.
- Запусти
/security, затем покажи последние события через/audit 20. - Просканируй плагины командой
/scan-pluginsи предложи исправления без выполнения опасных действий.
Как установить security-guide
1Через Skills CLI (Vercel)
npx skills add jnMetaCode/shellward --skill security-guide -a claude-code2Вручную: положить файлы
~/.claude/skills/security-guide/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/security-guide/
1Через Skills CLI (Vercel)
npx skills add jnMetaCode/shellward --skill security-guide -a codex2Вручную: положить файлы
.agents/skills/security-guide/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add jnMetaCode/shellward --skill security-guide -a cursor2Вручную: положить файлы
.cursor/skills/security-guide/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install jnMetaCode/shellward security-guide2Вручную: положить файлы
.github/skills/security-guide/SKILL.md1Через Skills CLI (Vercel)
npx skills add jnMetaCode/shellward --skill security-guide -a gemini-cli2Командой платформы
gemini skills install https://github.com/jnMetaCode/shellward --path skills/security-guideВручную: положить файлы
.devin/skills/security-guide/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add jnMetaCode/shellward --skill security-guide -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о security-guide
Как установить security-guide в Claude Code?
Выполните npx skills add jnMetaCode/shellward --skill security-guide -a claude-code, затем проверьте файл ~/.claude/skills/security-guide/SKILL.md.
Что делает security-guide?
Скилл проверяет сетевые настройки, Docker-изоляцию, секреты, права файлов, аудит-лог, плагины и версии OpenClaw и Node.js. Для найденных проблем он показывает команды исправления.
Какая версия Node.js нужна для проверки OpenClaw?
Нужна версия Node.js не ниже 22.12. Скилл также проверяет текущую версию OpenClaw и связанные с ней уязвимости.
Исходный текст
SKILL.md · Apache-2.0
---
name: security-guide
description: OpenClaw 安全部署指南 / Security deployment guide — help users secure their OpenClaw installation
user-invocable: true
disable-model-invocation: false
---
# ShellWard Security Deployment Guide / 安全部署指南
When the user invokes this skill, provide a complete security deployment checklist based on the following best practices. Check the current system state using available tools and give actionable recommendations.
## Security Checklist
### 1. Network Control / 网络控制
- Check if OpenClaw gateway port (19000/19001) is exposed to public network
- Recommend binding to 127.0.0.1 or using a reverse proxy with authentication
- Suggest firewall rules: `ufw allow from 127.0.0.1 to any port 19000`
- For cloud servers: check security group rules
### 2. Container Isolation / 容器隔离
- Recommend running OpenClaw in Docker with restricted capabilities:
```
docker run --cap-drop=ALL --cap-add=NET_BIND_SERVICE \
--read-only --tmpfs /tmp \
-u 1000:1000 \
openclaw
```
- Suggest resource limits: `--memory=2g --cpus=1`
- Mount only necessary directories
### 3. Credential Management / 凭证管理
- Scan for plaintext secrets in .env, .bashrc, environment variables
- Recommend using a secret manager (Vault, doppler, etc.)
- Check file permissions on sensitive files (should be 0600)
- Suggest `chmod 600 ~/.env ~/.ssh/* ~/.aws/credentials`
### 4. Audit Logging / 审计日志
- Verify ShellWard audit log is active at ~/.openclaw/shellward/audit.jsonl
- Show recent security events
- Recommend log rotation and backup strategy
- Suggest sending critical events to external SIEM
### 5. Plugin Security / 插件安全
- List all installed plugins and check for known risks
- Disable auto-update for plugins
- Only install from trusted sources
- Scan plugin code for suspicious patterns
### 6. Patch Management / 补丁管理
- Check current OpenClaw version
- Report known vulnerabilities for current version
- Recommend upgrade path
- Check Node.js version (must be >= 22.12)
## Available Commands
Remind the user about ShellWard's quick commands:
- `/security` — Full security status overview
- `/audit [count] [filter]` — View audit log
- `/harden` — Scan for issues, `/harden fix` to auto-fix
- `/scan-plugins` — Scan plugins for security risks
- `/check-updates` — Check versions and vulnerabilities
## Response Style
- Be concise and actionable
- Use the user's language (detect from their message)
- Prioritize critical issues first
- For each issue, provide the exact command to fix it
- Ask for confirmation before executing destructive operations
© jnMetaCode · Apache-2.0 · jnMetaCode/shellward