协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
openclaw-marshal-pro【开发与工程】Full compliance and policy enforcement suite: define security policies, audit compliance, auto-enforce violations, quarantine non-compliant skills, generate runtime hooks, and apply compliance templates. Everything in openclaw-marshal (free) plus automated enforcement.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Full compliance and policy enforcement suite. Everything in openclaw-marshal (free) plus active enforcement: auto-quarantine non-compliant skills, generate runtime hooks, apply compliance templates, and run full automated protection sweeps.
Free = alert. Pro = subvert + quarantine + defend.
Create a default security policy file (.marshal-policy.json) with sensible defaults.
python3 {baseDir}/scripts/marshal.py policy --init --workspace /path/to/workspace
Display the current active policy.
python3 {baseDir}/scripts/marshal.py policy --show --workspace /path/to/workspace
Quick overview of loaded policy rules.
python3 {baseDir}/scripts/marshal.py policy --workspace /path/to/workspace
Audit all installed skills and workspace configuration against the active policy. Reports compliance score, violations, and recommendations.
python3 {baseDir}/scripts/marshal.py audit --workspace /path/to/workspace
Check a single skill against the policy. Reports pass/fail per rule with fix recommendations.
python3 {baseDir}/scripts/marshal.py check openclaw-warden --workspace /path/to/workspace
Produce a formatted, copy-pastable compliance report suitable for audit documentation.
python3 {baseDir}/scripts/marshal.py report --workspace /path/to/workspace
One-line summary: policy loaded, compliance score, critical violations count, quarantined skills.
python3 {baseDir}/scripts/marshal.py status --workspace /path/to/workspace
Active policy enforcement: scan all skills, auto-quarantine those with CRITICAL violations, generate fix recommendations for MEDIUM violations.
python3 {baseDir}/scripts/marshal.py enforce --workspace /path/to/workspace
Quarantine a non-compliant skill by prefixing its directory with .quarantined-, making it invisible to all agent tools.
python3 {baseDir}/scripts/marshal.py quarantine bad-skill --workspace /path/to/workspace
Restore a quarantined skill after investigation.
python3 {baseDir}/scripts/marshal.py unquarantine bad-skill --workspace /path/to/workspace
Generate Claude Code hook configurations that enforce policies at runtime. Creates PreToolUse hooks for Bash (command allowlist/blocklist) and Write (PII pattern scanning).
python3 {baseDir}/scripts/marshal.py hooks --workspace /path/to/workspace
List or apply pre-built compliance templates: general (balanced), enterprise (strict), minimal (basic).
# List available templates
python3 {baseDir}/scripts/marshal.py templates --list --workspace /path/to/workspace
# Apply a template
python3 {baseDir}/scripts/marshal.py templates --apply enterprise --workspace /path/to/workspace
Automated sweep recommended for session startup: load policy, audit all skills, enforce violations, quarantine critical violators, generate summary report.
python3 {baseDir}/scripts/marshal.py protect --workspace /path/to/workspace
If --workspace is omitted, the script tries:
OPENCLAW_WORKSPACE environment variable~/.openclaw/workspace (default)| Category | Checks | Severity |
|---|---|---|
| Command Safety | Dangerous patterns (eval, exec, pipe-to-shell, rm -rf /) | CRITICAL |
| Command Policy | Blocked and review-required commands from policy | HIGH/MEDIUM |
| Network Policy | Domain allow/blocklists, suspicious TLD patterns | CRITICAL/HIGH |
| Data Handling | Secret scanner installed, PII scanner configured | HIGH/MEDIUM |
| Workspace Hygiene | .gitignore, audit trail (ledger), skill signing (signet) | HIGH/MEDIUM |
| Configuration | Debug modes, verbose logging left enabled | LOW |
The .marshal-policy.json file defines all rules:
*.tk)0 — Compliant, no issues1 — Review needed (medium/high findings)2 — Critical violations detectedPython standard library only. No pip install. No network calls. Everything runs locally.
Works with OpenClaw, Claude Code, Cursor, and any tool using the Agent Skills specification.