用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/catlog22/pi-maestro-flow --skill maestro-guard命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | maestro-guard |
| description | Manage editing boundary restrictions Arguments: on|off|status|allow|deny|remove|clear [path] |
| allowed-tools | Read Write Bash Glob maestro |
| disable-model-invocation | true |
| session-mode | none |
Config location: .workflow/config.json → guard section
{
"guard": {
"enabled": false,
"mode": "allow",
"paths": []
}
}
Enforcement: The workflow-guard hook (PreToolUse on Write/Edit) reads this config
and blocks operations targeting files outside boundaries. Requires hooks level >= full.
Output boundary: ALL file writes MUST target .workflow/config.json (guard section) only. NEVER modify hook files, .claude/settings.json, or source code.
GATE 1: Parse → Config Read
status.GATE 2: Config Read → Execute
.workflow/config.json read successfully or initialized with empty guard section.GATE 3: Execute → Confirm
Step 1: Parse subcommand
Extract from $ARGUMENTS:
on / off / status / allow <path> / deny <path>statusStep 2: Read config
Read .workflow/config.json. If file missing, initialize with empty guard section.
Step 3: Execute subcommand
status:
.claude/settings.json for hook presence)maestro hooks level full to activate."on:
guard.enabled = trueguard.paths is empty, set default: ["src/", "tests/", ".workflow/"]off:
guard.enabled = falseallow <path>:
guard.mode is deny, [@ask] user prompt: "Switching from deny to allow mode will clear existing paths ({N} paths). Continue?" — abort if user declines. Clear guard.paths (mode switch invalidates previous path list).guard.mode = "allow"guard.paths (deduplicate)guard.enabled = true if not alreadydeny <path>:
guard.mode is allow, [@ask] user prompt: "Switching from allow to deny mode will clear existing paths ({N} paths). Continue?" — abort if user declines. Clear guard.paths (mode switch invalidates previous path list).guard.mode = "deny"guard.paths (deduplicate)guard.enabled = true if not already (symmetric with allow: adding a deny path auto-enables the guard)remove <path>:
guard.paths (if present)clear:
guard.paths = []Step 4: Confirm
Display updated guard configuration.
<error_codes>
.workflow/config.json not found and cannot be created (not a maestro project)<success_criteria>