Install
openclaw skills install @zkeviny/mgc-task-chain-meta-skill-enA single-device multi-Agent task chain collaboration methodology based on MGC. Provides prompt templates for Master Agent, Script Agent, and Executor Agent to achieve zero-exposure security collaboration for sensitive resources.
openclaw skills install @zkeviny/mgc-task-chain-meta-skill-enA single-device multi-Agent task chain collaboration methodology based on MGC. Through Master Agent orchestration, Script Agent scripting, and Executor Agent execution, achieves zero-exposure security collaboration for sensitive resources.
| Pain Point | Solution |
|---|---|
| Multiple Agents sharing environment, keys easily leaked | Store keys in MGC, agents execute without exposure |
| Script content exposed to all Agents | Store scripts in MGC, zero exposure during execution |
| Lack of task collaboration methodology | Master Agent task chain orchestration template |
| Sub-Agent unauthorized access to sensitive resources | Executor Agent prompt constraints |
MGC is the local sensitive resource hosting and execution layer:
| Role | Responsibility | Capabilities |
|---|---|---|
| User | Store keys/scripts, issue commands | WebUI / mgc_open_webui |
| Master Agent | Task decomposition, orchestration, execute on authorization/sub-Agent failure | mgc_list, mgc_run |
| Script Agent | Write scripts, store in MGC | mgc_save, mgc_get, mgc_list |
| Executor Agent | Complete non-sensitive tasks | mgc_run, mgc_list |
Note: Sensitive operations (mgc_get to retrieve plaintext) require user authorization.
User ──Store Keys/Scripts (WebUI)──> MGC
│
▼
User ──Issue Command──> Master Agent
│
├──Decompose Task Chain
│
▼
┌───────┴───────┐
▼ ▼
Script Agent Executor Agent
(Write Scripts) (Execute Tasks)
│ │
▼ ▼
mgc_save mgc_run
│ │
└───────┬───────┘
▼
MGC Execution
(Return Results)
{
"mcpServers": {
"mgc-blackbox": {
"command": "mgc",
"args": ["--mcp"]
}
}
}
Load prompts/master_agent.md into the Master Agent's system prompt.
Load prompts/script_agent.md.
Load prompts/executor_agent.md.
After user issues a command, the Master Agent automatically decomposes the task chain and coordinates sub-Agents to complete.
Master Agent prompt template, includes:
Script Agent prompt template, includes:
Executor Agent prompt template, includes:
Best practice document, automatically maintained by Master Agent:
# Store script
mgc_save(
info_type="script",
info_owner="Data Query Script",
ext01="python",
content="""# Script content..."""
)
⚠️ Note: Some MCP clients may have ext02 JSON object serialization compatibility issues; recommended to use JSON string format.
# Execute script
mgc_run(
info_type="script", # Required, specify type as script
info_owner="Data Query Script", # Required, script name
diff_1="v1", # Required, version or branch identifier
ext02='{"param1": "value1"}' # Optional, JSON string format for execution parameters
)
Note: mgc_list only views information lists, does not retrieve plaintext; all Agents can use it.
# View available scripts
mgc_list(info_type="script")
Used to have AI open MGC WebUI for users to store sensitive resources.
# Open WebUI
mgc_open_webui()
| Question | Answer |
|---|---|
| Will information stored in MGC sync to cloud? | MGC is a local tool without active network capability |
| What are MGC's main capabilities? | After installing MGC, view ~/.mgc/skills/mgc_skill.md |
| Can sub-Agents bypass MGC? | Prompt constraints cannot completely prevent; ensure sub-Agents cannot access local script files |
| How to isolate scripts for different tasks? | Use info_owner naming to distinguish, e.g., TaskA_QueryScript, TaskB_PublishScript |
| How does Master Agent know what scripts are available? | Use mgc_list to view, or report by Script Agent |
pip install mgc-blackbox