بنقرة واحدة
maestro-guard
Manage editing boundary restrictions
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Manage editing boundary restrictions
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Manifest-driven knowledge asset generator — converts any structured package into maestro knowhow + spec entries with ref linking. Triggers on "codify-to-knowhow", "style to knowhow", "知识固化".
Check workflow delegation prompts against agent role definitions for content separation violations. Detects conflicts, duplication, boundary leaks, and missing contracts. Triggers on "check delegation", "delegation conflict", "prompt vs role check".
Adversarial review of code quality findings. Challenges insights with counter-evidence, verifies claims against source code, and produces structured verdicts. Triggers on 'insight-challenge', 'challenge finding', '审查发现'.
Quick execution for small tasks (≤1-2 files, no artifact handoff) — minimal run lifecycle (create + complete only) with evidence recording. Can read/write/run any tool, but scoped to tasks completable in a few actions. Not for multi-step workflows or tasks needing downstream gates
Create or sync session worktree for parallel dev
Maestro Flow 命令帮助系统。搜索命令、浏览技能、工作流推荐、新手引导。Triggers on "maestro-help", "帮助", "命令", "怎么用", "skill", "workflow", "maestro 怎么用".
| name | maestro-guard |
| disable-model-invocation | true |
| description | Manage editing boundary restrictions |
| argument-hint | on|off|status|allow|deny [path] |
| allowed-tools | ["Bash","Glob","Read","Write"] |
| session-mode | none |
| version | 0.5.55 |
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, request_user_input: "Switching from deny to allow mode will clear existing paths ({N} paths). Continue?" — abort if user declines.guard.paths (deduplicate)guard.enabled = true if not alreadydeny <path>:
guard.mode is allow, request_user_input: "Switching from allow to deny mode will clear existing paths ({N} paths). Continue?" — abort if user declines.guard.mode = "deny"guard.paths (deduplicate)guard.enabled = true if not already (symmetric with allow: adding a deny path auto-enables the guard)Step 4: Confirm
Display updated guard configuration.
<error_codes>
.workflow/config.json not found and cannot be created (not a maestro project)<success_criteria>