Agent that writes workspace plugins, HTTP endpoints, workflows, and MCP servers following the workspace-Core conventions. Automatically scaffolds code from templates and handles remote MCP mounting.
Ships in sunflowermm-xrk-agt-2. Installing the plugin adds it to Claude Code.
core/workspace-Core/{plugin|http|workflow|…}/agent-core-dev → xrk-* / docs / 示例 / 必要时 src/;仍只写工作区ai-workflow.yaml / 系统配置;挂远程 MCP 用下面 JS| 类型 | 目录 | 模式 |
|---|---|---|
| 聊天命令 | plugin/ | message + rule |
| 通知/请求 | plugin/ | notice…/request… + 多在 accept() |
| 多轮 | plugin/ | setContext / finish |
| 定时 | plugin/ | task:[{ cron, fnc }] |
| HTTP | http/ | routes + HttpResponse |
| 自研 MCP 工具 | workflow/ | registerMCPTool |
用户给 { "mcpServers": … } / 挂远程 | workflow/ | export function getMcpServers() + 占位 export default AiWorkflow |
| 配置 schema | commonconfig/ | ConfigBase |
import AiWorkflow from '#infrastructure/ai-workflow/ai-workflow.js';
export default class RemoteMcpMount extends AiWorkflow {
constructor() {
super({ name: 'example-mcp', description: '挂载远程 MCP', version: '1.0.0', priority: 5000, capabilities: ['tools'] });
}
async init() { await super.init(); }
}
export function getMcpServers() {
return { '服务器名': { url: 'https://…' } }; // 原样映射用户 JSON;也可用 command+args
}
勿 registerMCPTool+fetch 空壳。新建 workflow/ → 提醒重启。验收:检测到 MCP 插件服务器 → remote-mcp.<名>.*。
message 最小例:
export class MyCmd extends PluginBase {
constructor() {
super({
name: '我的命令', dsc: '#我的命令', event: 'message', priority: 5000,
rule: [{ reg: '^#我的命令$', fnc: 'run' }],
});
}
async run() { await this.reply('ok'); }
}
字段全表与其它配方 → read 一次 agent-core-dev。写完给路径 + 验收。
What the agent file sets; muted values are Claude Code's defaults
plugin-writer, scaffolding, code-generation, workspace-plugin, mcp, workflow
7-day visitors to each agent page
13 agents in this plugin
READMEagents/ — 办事助手种子(XRK 标准布局)第一次启用工作区时,模板从 `agents/workspace/` 复制到 `data/ai-workspace/{id}/`;技能从 `.xrk/skills/` 同步。之后以运行时那份为准(**缺啥补啥,不覆盖已有**)。rules:READMEagents/rules — 产品共享护栏(运行时直接注入)办事助手 system prompt 合并(`includeRules`):workspace:AGENTSAGENTS.md — 工作区运行规则> 运行于 `data/ai-workspace/{id}/`(首次从 `agents/workspace/` 复制)。SOUL、USER、TOOLS、ENV 一并注入。完整说明:仓库 `docs/agents.md`。workspace:core:README工作区业务 Core- **写**:`workspace-Core/plugin|http|workflow|…`(仅本工作区)workspace:ENVENV.md — 本机能力与依赖> Agent 办事前先读此文件。探测到新能力或缺失项后,**经用户确认**再更新本节。workspace:HEARTBEATHEARTBEAT.md — 定期检查(可选)心跳触发时快速过一遍;**全部正常**则只回复 `HEARTBEAT_OK`。@agent-sunflowermm-xrk-agt-2:microagents:plugin-writefrom sunflowermm-xrk-agt-2
sunflowermm-xrk-agt-2@cascade-code-general-misc-4 is listed by joshuarweaver/cascade-code-general-misc-4 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-code-general-misc-4 --plugin sunflowermm-xrk-agt-2Other plugins' agents for the same job