secretzero-agent-adopt
Use for agent runtime integration: discover Hermes/OpenClaw installs, bootstrap SecretZero environments with `secretzero agent list` / `agent adopt`, lockfile preseed, and restore loops. Inherits absolute rule from `skills/secretzero/SKILL.md` (SecretZero only; never secrets in context).
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-31
- Stars
- ★ 8
- Forks
- 0
01 前言 Front Matter
- name
- secretzero-agent-adopt
- license
- Apache-2.0
- metadata
- { "author": "secretzero", "version": "1.1" }
- description
- Use for agent runtime integration: discover Hermes/OpenClaw installs, bootstrap SecretZero environments with `secretzero agent list` / `agent adopt`, lockfile preseed, and restore loops. Inherits absolute rule from `skills/secretzero/SKILL.md` (SecretZero only; never secrets in context).
- allowed-tools
- Bash(secretzero:*) Read
- compatibility
- Requires SecretZero CLI (Python 3.12+). Set SZ_AGENT_MODE=true for automated adopt flows.
03 SKILL.md 正文
SecretZero Agent Adopt Skill
Use when an agent runtime (Hermes, OpenClaw, or future claw-like installs) needs a SecretZero environment, disaster recovery, or GitOps capture of present credentials.
Pair with skills/secretzero-agent/SKILL.md (sync vectors) and
skills/secretzero-handle/SKILL.md (spill-safe mode).
Cold-start (remote repo)
- Read repository
README.mdHTML commentagent-entrypointblock. - Install CLI:
uv tool install -U "secretzero[all]". - Set spill-safe mode when automating:
export SZ_AGENT_MODE=true. - Discover installs (read-only):
secretzero agent list --format json
- Plan adopt (no writes):
secretzero agent adopt --dry-run --format json
- Bootstrap environment (default output = agent home):
secretzero agent adopt --format json
GitOps capture into the workspace:
secretzero agent adopt --target hermes --source-dir ~/.hermes --output-dir ./agents/hermes --template
Command map
| Command | Purpose |
|---|---|
secretzero agent list |
Detect Hermes/OpenClaw installs + existing SecretZero envs |
secretzero agent adopt |
Write Secretfile.yml (present credentials only) |
secretzero agent backup |
Alias of adopt — not secretzero backup create |
Safety contract
- stdout/JSON is metadata only (names, paths, counts).
- Generated manifests use
default: null— never copy live values into YAML. - Use
--preseed-lockfileto hash present values without printing them. - For missing secrets after restore:
secretzero agent sync --web. - Encrypted DR payloads:
secretzero backup create --encryptedafter adopt/sync.
Standard restore loop
secretzero agent list --format json
secretzero agent adopt --target hermes --preseed-lockfile --format json
secretzero validate -f ~/.hermes/Secretfile.yml
secretzero agent sync --json -f ~/.hermes/Secretfile.yml
secretzero sync -f ~/.hermes/Secretfile.yml
Repeat agent sync until pending_secrets is empty.
Autodetect rules
--targetomitted → try Hermes, then OpenClaw.--source-diromitted → default install paths (~/.hermes,~/.openclaw, env overrides).- If target or source cannot be resolved → no files written; JSON includes
reason.
Definition of done
- SecretZero env exists at chosen
output-dir. - Lockfile preseeded when requested.
agent sync/synccomplete with no pending manual secrets.- No secret values appeared in agent context or logs.
04 同仓库更多 Skills
secretzero
Compatibility entrypoint for SecretZero skills. Enforces the absolute rule: never consume secrets in agent context — use SecretZero for all secret handling. Routes to secretzero-author, secretzero-agent, secretzero-handle, and secretzero-agent-adopt.
secretzero-handle
Use when the task touches `.env`, dotenv/json/yaml secret files, local `file` targets, or any workflow where secret material could enter agent context. Enforces `SZ_AGENT_MODE=true` spill-safe CLI usage, ingest preseed, strict manifest validation, and safe discovery patterns alongside `secretzero-agent` / `secretzero-author`.
secretzero-author
Use when authoring, reviewing, or walking a user through a new or existing `Secretfile.yml`. Guided session: manifest root, inventory table, optional local discovery, add/edit loop with secret-type and target menus, validate, optional `secretzero web`. Hermes + MCP notes included. Safe contextless discovery, `.szvar` lanes, policy-bound targets. Inherits absolute rule from `skills/secretzero/SKILL.md`. Co-load `skills/secretzero-handle/SKILL.md` for `.env` / spill-safe CLI.
secretzero-agent
Use for agentic and operational SecretZero workflows including unified `agent sync`, CLI/API/MCP parity, secure human-in-the-loop vectors, and automation-safe run loops.
secretzero-agent-adopt
Use for agent runtime integration: discover Hermes/OpenClaw installs, bootstrap SecretZero environments with `secretzero agent list` / `agent adopt`, lockfile preseed, and restore loops. Inherits absolute rule from `skills/secretzero/SKILL.md` (SecretZero only; never secrets in context).
secretzero
Compatibility entrypoint for SecretZero skills. Enforces the absolute rule: never consume secrets in agent context — use SecretZero for all secret handling. Routes to secretzero-author, secretzero-agent, secretzero-handle, and secretzero-agent-adopt.