Monte Carlo Reinforce Agent 标志

Monte Carlo Reinforce Agent

组织
monte-carlo-data
monte-carlo-reinforce-agent

Reinforces an AI agent by turning Monte Carlo's reinforcement loop diagnosis into code fixes. Reads the daily reinforcement loop report for an agent's workflows, ranks the diagnosed issues, proposes what to fix, and — with the user's approval at each step — opens a pull request. Activates on "fix my agent", "improve my agent's health", "reinforce my agent", "what should I fix in my agent". Not for investigating a specific agent alert or trace (monte-carlo-troubleshoot-agent-traces), creating agent monitors (monte-carlo-monitoring-advisor), or instrumenting a new agent (monte-carlo-instrument-agent).

Add to TypingMind

概览

发布者monte-carlo-data
代码仓库mc-agent-toolkit
技能名称monte-carlo-reinforce-agent
星标数
93
复刻数
5
附带文件
仅含指令
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 monte-carlo-data 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Monte Carlo Reinforce Agent AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/monte-carlo-data/mc-agent-toolkit/tree/main/skills/reinforce-agent
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/monte-carlo-data/mc-agent-toolkit.git /tmp/mc-agent-toolkit
mkdir -p .claude/skills
cp -r /tmp/mc-agent-toolkit/skills/reinforce-agent .claude/skills/monte-carlo-reinforce-agent
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Monte Carlo Reinforce Agent,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Monte Carlo Reinforce Agent。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Monte Carlo Reinforce Agent 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Monte Carlo Reinforce Agent Skill

This skill turns Monte Carlo's reinforcement loop diagnosis into landed code fixes. Monte Carlo runs a daily reinforcement loop pipeline that analyzes an agent's traces and produces, per workflow, a report of diagnosed issues — each with supporting evidence (trace deep-links, verifier checks) and recommended fixes. This skill reads that diagnosis, ranks it, proposes what to fix, and follows through with a pull request — pausing for the user's decision at each fan-out point.

Monte Carlo tool routing (required): Always call Monte Carlo MCP tools through this plugin's bundled server, whose fully-qualified tool names are mcp__plugin_mc-agent-toolkit_monte-carlo-mcp__<tool> (e.g. mcp__plugin_mc-agent-toolkit_monte-carlo-mcp__get_reinforcement_loop_report). Bare tool names used in this skill (get_agent_metadata, get_reinforcement_loop_summaries, get_reinforcement_loop_report) refer to that bundled server. If the session also has a separately-configured monte-carlo-mcp server, do not route to it — it may point at a different endpoint or credentials.

When to activate this skill

Activate when the user:

  • Wants to fix or improve an AI agent based on its Monte Carlo reinforcement loop ("fix my agent", "reinforce my agent", "improve my agent's health").
  • Asks what to fix in an agent ("what are my agent's top issues", "what should I fix in ").
  • Wants a PR that addresses an agent's diagnosed problems.

When NOT to activate this skill

  • Investigating one agent alert or trace (eval-score drop, latency/token spike, a specific trace id) → use monte-carlo-troubleshoot-agent-traces. That skill investigates a single incident; this one acts on the standing reinforcement loop diagnosis across a workflow and writes code.
  • Creating or tuning agent monitors → monte-carlo-monitoring-advisor / tune-monitor.
  • Instrumenting a new agent to emit traces → monte-carlo-instrument-agent.

Prerequisites

  • Monte Carlo MCP server configured and authenticated, with agent observability enabled for the account. If get_reinforcement_loop_summaries reports that the reinforcement loop is not enabled, tell the user the account isn't enrolled in the reinforcement loop pipeline and stop.
  • A local checkout of the agent's codebase (this skill writes code and opens a PR against it). If the working directory isn't the agent's repo, ask the user for the path before Step 4.

MCP Tools Used

ToolPurpose
get_agent_metadataList AI agents with their canonical agentName, friendly displayName, traceTableMcon, source type, and warehouse. Used to resolve the agent the user named to the exact agent_name + trace_table_mcon the reinforcement loop tools require (match on canonical name or display name; disambiguate when several match)
get_reinforcement_loop_summariesPer-workflow health rollups for one agent — issue_count + worst-severity health + detection_time per workflow. The cheap triage layer; rank on this before expanding anything
get_reinforcement_loop_reportThe latest reinforcement loop report for one workflow, as a single actionable markdown brief — diagnosed issues with evidence (trace deep-links), recommended fixes, any existing Linear ticket, and any proposed monitor. The expensive call; fetch only for workflows the user chose

Workflow

The flow is user-gated at every fan-out — never expand or act autonomously. The number of get_reinforcement_loop_report calls is bounded by what the user picks, not by how many workflows exist.

Step 1: Resolve the agent

The user triggers this skill with a specific agent in mind — expect them to name it ("reinforce the chat agent", "fix ai-agent"). This step's job is to turn that name into the exact identifiers the reinforcement loop tools need.

Call get_agent_metadata and match the user's name against each entry's agentName and displayName (users often use the friendly display name, not the canonical one). Use the matched entry's agentName + traceTableMcon together for every later call — the trace table disambiguates agents that share a name.

  • No agent named: list the available agents (canonical name + display name) and ask which one.
  • Ambiguous match (same name across trace tables, or a substring matching several): list the candidates with their trace tables / warehouses and ask the user to pick — never guess the trace_table_mcon.
  • No match: tell the user and show the available agents.

Step 2: Triage the workflows (reinforcement loop overview)

Call get_reinforcement_loop_summaries(agent_name, trace_table_mcon) — one cheap call covering every workflow. Then:

  • Drop workflows with issue_count == 0 (clean reports).
  • Rank the rest by health severity (CRITICAL → HIGH → MEDIUM → LOW), then by issue_count.
  • Present the ranked list as a short table: workflow · health · issue count · last diagnosed.

Gate — ask the user which workflow(s) to dig into. Do NOT call get_reinforcement_loop_report for every workflow. Default the suggestion to the single worst workflow; let the user pick one or a few. Only the chosen workflows get expanded in Step 3.

Step 3: Deep-dive the chosen workflow(s)

For each workflow the user chose, call get_reinforcement_loop_report(agent_name, workflow_name, trace_table_mcon). The response is a single markdown brief: a report header (health, coverage, window, and what changed since the last report) followed by one section per issue. Each issue section is self-contained — the summary, the evidence with clickable trace deep-links, and the recommended actions — so identifying the top issues happens in-context from this one call. No per-issue tool calls are needed.

From the brief, pick the top issues by severity/priority. Prefer issues whose evidence includes a concrete node/tool and code-referable checks (those are the most directly fixable in code).

Step 4: Propose what to fix

Summarize the top issues for the user in plain language — for each: what's wrong (the issue summary), the evidence, and the recommended fix. Call out signals that change the action:

  • Existing Linear ticket on an issue → the problem is already tracked; plan to reference/update that ticket, not open a duplicate.
  • Proposed monitor on an issue (proposed_monitor_yaml present in the brief) → the recommended remediation may be a monitor rather than a code change; surface that as an option.
  • Issues whose root cause is external (e.g. client-cancellation, upstream timeouts) may not be code-fixable in this repo — say so rather than forcing a change.

Gate — ask the user which issue(s) to fix now. Fix one issue at a time. Confirm the target before writing any code.

Step 5: Follow through with a PR

For the chosen issue:

  1. Use the issue's brief (its evidence and recommended actions) as the specification — it already contains the failing traces, the implicated node/tool, and the concrete steps to take. Locate the relevant code in the user's repo and implement the smallest change that addresses the recommended action.
  2. Follow the repo's conventions (branch off the default branch, match surrounding code and commit style). One issue → one focused PR.
  3. In the PR description, link the diagnosed issue and its evidence (trace deep-links from the brief) so a reviewer can trace the fix back to the signal. If the issue has an existing Linear ticket, reference it instead of describing the problem from scratch.

Gate — confirm before pushing / opening the PR. Show the diff and the PR body, and only push after the user approves. Then, if the user wants, return to Step 4 for the next issue (or Step 2 for the next workflow).

Important rules

  • Never fan out eagerly. get_reinforcement_loop_summaries is the triage layer; call get_reinforcement_loop_report only for user-chosen workflows. Expanding every workflow wastes context on reports no one will act on.
  • One issue → one PR. Keep changes focused and reviewable; iterate rather than batch.
  • Human checkpoint before code and before push. This skill writes and proposes code; it never commits or opens a PR without explicit approval.
  • Don't re-file tracked issues. If an issue already carries a Linear ticket, reference/update it.
  • Read-only diagnosis. The three MCP tools here are read-only and consume no Monte Carlo credits; the only side effects are the git branch/PR you create with the user's approval.

常见问题

Monte Carlo Reinforce Agent AI 技能有什么作用?

Reinforces an AI agent by turning Monte Carlo's reinforcement loop diagnosis into code fixes. Reads the daily reinforcement loop report for an agent's workflows, ranks the diagnosed issues, proposes what to fix, and — with the user's approval at each step — opens a pull request. Activates on "fix my agent", "improve my agent's health", "reinforce my agent", "what should I fix in my agent". Not for investigating a specific agent alert or trace (monte-carlo-troubleshoot-agent-traces), creating agent monitors (monte-carlo-monitoring-advisor), or instrumenting a new agent (monte-carlo-instrumen...

为什么在 TypingMind 中使用 Monte Carlo Reinforce Agent?

因为您只需安装一次,就能搭配任何模型使用。Monte Carlo Reinforce Agent 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Monte Carlo Reinforce Agent?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/monte-carlo-data/mc-agent-toolkit/tree/main/skills/reinforce-agent。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Monte Carlo Reinforce Agent?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Monte Carlo Reinforce Agent 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Monte Carlo Reinforce Agent 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Monte Carlo Reinforce Agent AI 技能免费吗?

是的。monte-carlo-data 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇