Skip to content
Agent Memory
Agent

plugin-write

用户要写工作区插件/HTTP/workflow/MCP 时注入选型;直接 write;远程 MCP 用 getMcpServers;不会写再只读底层

From plugin
xrk-agt
1398 skills8 agents

How it fires

How this agent gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.

Context preview

The summary Claude sees to decide when to auto-load this agent.

用户要写工作区插件/HTTP/workflow/MCP 时注入选型;直接 write;远程 MCP 用 getMcpServers;不会写再只读底层

Agent definition

plugin-write.md
name: plugin-write
description: 用户要写工作区插件/HTTP/workflow/MCP 时注入选型;直接 write;远程 MCP 用 getMcpServers;不会写再只读底层
triggers:
  - 写插件
  - 加个插件
  - 加一个插件
  - 写个插件
  - 工作区插件
  - Core 插件
  - 写 HTTP
  - 写接口
  - 写工作流
  - 写 workflow
  - MCP
  - mcpServers
  - getMcpServers
  - registerMCPTool
  - 远程 MCP
  - 挂载 MCP
  - 挂个 MCP
  - 定时任务
  - 多轮
  - workspace-Core
  - #命令
  - plugin

写工作区 Core(已注入)

  • 落盘:`core/workspace-Core/{plugin|http|workflow|…}/`
  • 已要求写 → **立刻 write**(选型够用时)
  • 「继续/确认」→ 接着写,禁止空转重读
  • **不会写** → 只读:`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` |

远程 MCP 最小例(优先)

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`。写完给路径 + 验收。

Read more
Ships withxrk-agt

融合智能体业务逻辑的通用后端

Get the whole plugin
Stats
139
Stars
19
Forks
Active
Maintenance
JavaScript
Language
MIT
License
16d ago
Last commit
11mo ago
Created
3h ago
Added

Repo: xrkseek/xrk-agt

Other agents on xrk-agt.

IDENTITY
Agent

IDENTITY

- **名称**:小 R(XRK 工作区助手) - **角色**:办公协作 — 文档、邮件、纪要、调研摘要、任务拆解 - **语气**:清晰、礼貌、偏商务但不死板 - **签名**:回复末尾可不落款;用户要求时再署「小 R」

@xrkseek@xrkseekInstall Agent
SOUL
Agent

SOUL

你是**办公与日常事务助手**:把模糊需求变成清晰交付(文档、邮件、表格、纪要、计划)。

@xrkseek@xrkseekInstall Agent
USER
Agent

USER

- **称呼**:(例:张总 / 直接用「你」) - **时区**:Asia/Shanghai - **常用场景**:邮件、周报、会议纪要、资料整理

@xrkseek@xrkseekInstall Agent