编写、调试与调优 Playwright 测试,涵盖定位器策略、追踪诊断与 CI 友好的超时配置。
安全
dr-agent-backup
试用Set up, audit, repair, or restore a six-hour Azure DevOps workspace backup.
它能做什么
Use when setting up, auditing, repairing, or restoring backup continuity for a Daniel-owned agent.
技能文档
DR. Agent Backup
Use when setting up, auditing, repairing, or restoring backup continuity for a Daniel-owned agent.
Goal: agent memory and workspace state should survive VM loss or migration. Restore should be boring: clone/pull the repo, restore secrets separately, verify the agent starts, and reindex memory if needed.
Core Policy
- Back up agent-owned workspace files to a Daniel-owned Azure DevOps git repository.
- Commit after meaningful memory or workspace changes.
- Never commit secrets, tokens, local credential stores, runtime logs, caches, databases, or bulky generated state unless explicitly approved.
- Treat git as continuity for human-readable source of truth, not a full machine image.
- Secrets and auth must be restored through the proper secret manager, env file, or provider login flow.
What To Track
Default include list:
AGENTS.mdSOUL.mdUSER.mdTOOLS.mdMEMORY.mdHEARTBEAT.mdwhen presentmemory/**/*.mdmemory/**/*.jsononly when it is intentional durable statecontext_pipeline/**automation/**excluding runtime outputs and secretsskills/**for workspace-local skillsdoc_reviews/**when used as active review state- Project notes and templates Daniel expects to restore
Default exclude list:
- API keys, tokens, passwords, OAuth files, cookies, auth profiles
.env,*.env,gateway.systemd.env, and backups of env files- SQLite databases and WAL/SHM files unless explicitly approved
node_modules/, package caches, build outputs- raw session transcripts unless Daniel explicitly wants them tracked
- inbound/outbound media files unless intentionally curated
- temporary files, logs, downloads, generated archives
Setup Workflow
- Confirm the Azure DevOps organization, project, and repo name.
- Confirm credential method:
- SSH deploy key
- Azure DevOps PAT stored outside git
- existing authenticated git credential helper
- Initialize or connect the workspace repo.
- Add a
.gitignorethat blocks secrets and runtime state. - Run a dry-run status review before the first commit.
- Make the initial commit with a clear message.
- Push to Azure DevOps.
- Record the repo URL and restore notes in local memory or an approved ops file.
Commit Policy
Commit after meaningful changes to:
- long-term memory
- daily memory logs that contain decisions or restore-relevant facts
- agent instructions or identity files
- automation manifests and scripts
- local skills or proposal-derived workflow files
- context pipeline files
- important operational notes
Do not commit after every tiny transient log line if it adds noise. Batch related memory edits when they happen in one task.
Recommended commit message style:
memory: capture gateway restore and embedding fix
agent: update baseline behavior notes
backup: add Azure DevOps restore procedure
skill: revise agent baseline proposal
Before Commit Checklist
Run these checks before committing:
git status --short- Inspect changed files.
- Check that no secret-bearing files are staged.
- If adding
.gitignore, confirm it covers known OpenClaw secrets and runtime state. - Commit only intentional files.
If a secret appears staged, stop and unstage it. Do not rely on later cleanup.
Restore Workflow
- Install OpenClaw and baseline system packages.
- Clone the Azure DevOps repo into the expected workspace path.
- Restore secret files/env/auth using the approved secret path, not git.
- Install/enable required plugins and skills.
- Verify gateway service and lingering if this is a Linux user service.
- Run memory status and reindex if needed:
openclaw memory status --index
openclaw memory index --force
- Verify channels and delivery targets.
- Run a small end-to-end DM test.
- Commit any restore-specific notes that are useful for next time.
Agent Behavior
Agents should run safe git checks and commits themselves when they have access.
Ask Daniel before:
- creating a new Azure DevOps repo
- adding credentials or PATs
- pushing to a new remote for the first time
- changing access controls
- committing files that may contain private/customer data beyond normal memory notes
- deleting history or rewriting commits
Audit Workflow
For an existing agent, audit backup health by checking:
- Is the workspace a git repo?
- Is the remote Azure DevOps and reachable?
- Is
.gitignorestrong enough? - Are there uncommitted memory/workspace changes?
- When was the last successful push?
- Are secrets absent from tracked files?
- Is there a documented restore path?
Report the result as:
- status
- risks
- next action
Keep it short unless Daniel asks for full detail.
Boundaries
This skill does not replace VM snapshots or system-level backups. It protects the agent's durable working memory and configuration source, not every runtime artifact.
This skill does not store secrets in git.
相关技能
daniel-refahi-ikara 的更多技能
浏览全部技能让定时任务在每次运行时自动采用最新的提示词、策略、投递方式和模型配置。
Deterministic memory/context pipeline with semantic retrieval checks, compression/lint, safe fallback, and memory watchdog.
Manage persistent local OpenClaw secrets safely.
Bootstrap and enforce fast direct API execution in a workspace. Use when you want an agent to run API calls directly in-session, avoid unnecessary subagents,...
Opinionated, file-based memory layout for OpenClaw-style agents: dashboards (now/open-loops/automation), topic files, glossary, and an always-on policy+topic...
Create handoff-ready product, system, roadmap, architecture, and Azure DevOps planning artifacts.