跳到正文
Skillpedia
安全11k · #11722

healthcheck

它能做什么

这项技能检查运行 Brigade 的电脑是否存在安全漏洞,并建议更安全的设置。适合希望加固笔记本电脑、工作站或服务器的人。

适用场景

  • ✓当你希望对运行 Brigade 的电脑进行安全审计时。
  • ✓当你希望检查防火墙、远程访问或更新设置时。
  • ✓当你希望为你的电脑设置定期安全检查的时候。

技能链接

https://github.com/spinabot/brigade/blob/main/skills/healthcheck/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/spinabot/brigade/blob/main/skills/healthcheck/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请审计运行 Brigade 的电脑的安全性,并列出我应批准的前几项更改。”

每周 5 个新技能,1 分钟读完。

工作原理

AI 会先在不做任何改动的情况下读取你的设置,并通过简短的问题了解你的风险承受程度。它会提出可撤销、分阶段进行的更改,在你批准之前不做任何改动。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Brigade Host Hardening

Overview

Assess and harden the host running Brigade, then align it to a user-defined risk tolerance without breaking access. Use Brigade security tooling as a first-class signal, but treat OS hardening as a separate, explicit set of steps.

Core rules

  • Recommend running this skill with a state-of-the-art model (e.g., Opus 4.5, GPT 5.2+). The agent should self-check the current model and suggest switching if below that level; do not block execution.
  • Require explicit approval before any state-changing action.
  • Do not modify remote access settings without confirming how the user connects.
  • Prefer reversible, staged changes with a rollback plan.
  • Never claim Brigade changes the host firewall, SSH, or OS updates; it does not.
  • If role/identity is unknown, provide recommendations only.
  • Formatting: every set of user choices must be numbered so the user can reply with a single digit.
  • System-level backups are recommended; try to verify status.

Workflow (follow in order)

0) Model self-check (non-blocking)

Before starting, check the current model. If it is below state-of-the-art (e.g., Opus 4.5, GPT 5.2+), recommend switching. Do not block execution.

1) Establish context (read-only)

Try to infer 1–5 from the environment before asking. Prefer simple, non-technical questions if you need confirmation.

Determine (in order):

  1. OS and version (Linux/macOS/Windows), container vs host.
  2. Privilege level (root/admin vs user).
  3. Access path (local console, SSH, RDP, tailnet).
  4. Network exposure (public IP, reverse proxy, tunnel).
  5. Brigade gateway status and bind address.
  6. Backup system and status (e.g., Time Machine, system images, snapshots).
  7. Deployment context (local mac app, headless gateway host, remote gateway, container/CI).
  8. Disk encryption status (FileVault/LUKS/BitLocker).
  9. OS automatic security updates status. Note: these are not blocking items, but are highly recommended, especially if Brigade can access sensitive data.
  10. Usage mode for a personal assistant with full access (local workstation vs headless/remote vs other).

First ask once for permission to run read-only checks. If granted, run them by default and only ask questions for items you cannot infer or verify. Do not ask for information already visible in runtime or command output. Keep the permission ask as a single sentence, and list follow-up info needed as an unordered list (not numbered) unless you are presenting selectable choices.

If you must ask, use non-technical prompts:

  • “Are you using a Mac, Windows PC, or Linux?”
  • “Are you logged in directly on the machine, or connecting from another computer?”
  • “Is this machine reachable from the public internet, or only on your home/network?”
  • “Do you have backups enabled (e.g., Time Machine), and are they current?”
  • “Is disk encryption turned on (FileVault/BitLocker/LUKS)?”
  • “Are automatic security updates enabled?”
  • “How do you use this machine?” Examples:
    • Personal machine shared with the assistant
    • Dedicated local machine for the assistant
    • Dedicated remote machine/server accessed remotely (always on)
    • Something else?

Only ask for the risk profile after system context is known.

If the user grants read-only permission, run the OS-appropriate checks by default. If not, offer them (numbered). Examples:

  1. OS: uname -a, sw_vers, cat /etc/os-release.
  2. Listening ports:
    • Linux: ss -ltnup (or ss -ltnp if -u unsupported).
    • macOS: lsof -nP -iTCP -sTCP:LISTEN.
  3. Firewall status:
    • Linux: ufw status, firewall-cmd --state, nft list ruleset (pick what is installed).
    • macOS: /usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate and pfctl -s info.
  4. Backups (macOS): tmutil status (if Time Machine is used).

2) Run Brigade security audits (read-only)

As part of the default read-only checks, run brigade security audit --deep. Only offer alternatives if the user requests them:

  1. brigade security audit (faster, non-probing)
  2. brigade security audit --json (structured output)

Offer to apply Brigade safe defaults (numbered):

  1. brigade security audit --fix

Be explicit that --fix only tightens Brigade defaults and file permissions. It does not change host firewall, SSH, or OS update policies.

If browser control is enabled, recommend that 2FA be enabled on all important accounts, with hardware keys preferred and SMS not sufficient.

3) Check Brigade ver

常见问题

它会在未经询问的情况下更改我的设置吗?

不会。在对电脑做任何更改之前,它都需要你明确批准。

它会导致我无法远程访问吗?

在更改任何远程访问设置之前,该技能会确认你的连接方式,并规划回滚方案。

Brigade 本身会修改防火墙吗?

不会。Brigade 不会修改防火墙、SSH 或操作系统更新,这些属于需要你自行处理的独立步骤。

详情

作者的原始描述

Host security hardening and risk-tolerance configuration for Brigade deployments. Use when a user asks for security audits, firewall/SSH/update hardening, risk posture, exposure review, Brigade cron scheduling for periodic checks, or version status checks on a machine running Brigade (laptop, workstation, Pi, VPS).

repo: spinabot/brigade

热度

GitHub 星标
11k
排名
#11722
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能