qwen_agent/skills/developing/user-context-loader/.claude-plugin/plugin.json
2026-04-18 23:36:32 +08:00

38 lines
946 B
JSON

{
"name": "user-context-loader",
"description": "用户上下文加载器示例 Skill。演示如何使用 Claude Plugins 模式的 hooks 机制在 agent 执行的不同阶段注入自定义逻辑。",
"hooks": {
"PrePrompt": [
{
"type": "command",
"command": "python hooks/pre_prompt.py"
}
],
"PostAgent": [
{
"type": "command",
"command": "python hooks/post_agent.py"
}
],
"PreSave": [
{
"type": "command",
"command": "python hooks/pre_save.py"
}
],
"PreMemoryPrompt": [
{
"type": "command",
"command": "python hooks/pre_memory_prompt.py"
}
]
},
"mcpServers": {
"user-context-example": {
"command": "echo",
"args": ["Example MCP server for user context loader"],
"comment": "这是一个示例 MCP 配置,实际使用时替换为真实的 MCP 服务器"
}
}
}