MateClaw is a pluggable agent runtime that coordinates AI agents, tools, conversations, memory, and workflows. It is designed for personal and multi-user AI assistants, including agents used through chat platforms. Catalogue add-ons provide skills for extending its agent workflows.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add mateaix/mateclaw --skill mateclaw_source_indexgit clone --depth 1 https://github.com/mateaix/mateclawWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/mateaix/mateclaw/mateclaw_source_index)<a href="https://agentmods.dev/skills/mateaix/mateclaw/mateclaw_source_index"><img src="https://agentmods.dev/badge/skills/mateaix/mateclaw/mateclaw_source_index/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/mateaix/mateclaw/mateclaw_source_index"><img src="https://agentmods.dev/badge/skills/mateaix/mateclaw/mateclaw_source_index.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00050 | $0.01006 |
| Opus 5.5 | $0.00020 | $0.00402 |
| Sonnet 5.5 | $0.00010 | $0.00201 |
| Haiku 4.5 | $0.00005 | $0.00101 |
Grade A, and why
mateclaw_source_index scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MateClaw 源码导航
当用户询问"XX 功能在哪里实现"、"Agent 流程入口在哪"、"如何修改 YY 逻辑"等源码定位问题时使用本技能。
工作流程
第一步:查文档索引
readMateClawDoc(action="list")
根据用户问题关键词在文件列表中找到最相关文档。
第二步:读取架构文档
readMateClawDoc(action="read", path="zh/architecture.md")
或直接读 CLAUDE.md(项目根目录,包含最完整的包结构说明):
read_file(filePath="CLAUDE.md")
第三步:返回定位结果
回答格式:文件路径 : 行号范围 + 一句话说明入口作用
示例:
agent/graph/StateGraphReActAgent.java— ReAct 循环图的组装入口,连接 ReasoningNode → ActionNode → ObservationNode
核心路径速查表
Agent 运行时
| 功能 | 文件路径 |
|---|---|
| ReAct 图组装 | agent/graph/StateGraphReActAgent.java |
| Plan-Execute 图组装 | agent/graph/plan/StateGraphPlanExecuteAgent.java |
| 推理节点 | agent/graph/node/ReasoningNode.java |
| 动作节点 | agent/graph/node/ActionNode.java |
| 观察节点 | agent/graph/node/ObservationNode.java |
| 最终答案节点 | agent/graph/node/FinalAnswerNode.java |
| Agent 图构建器 | agent/AgentGraphBuilder.java |
| 上下文注入 | agent/context/RuntimeContextInjector.java |
| Token 估算 / 裁剪 | agent/context/TokenEstimator.java |
工具 & 审批
| 功能 | 文件路径 |
|---|---|
| 工具注册中心 | tool/ToolRegistry.java |
| MCP 适配器 | tool/mcp/ |
| 工具守卫规则 | tool/guard/ |
| 人工审批流程 | approval/ApprovalWorkflowService.java |
| 审批 Controller | approval/ApprovalController.java |
渠道 & 对话
| 功能 | 文件路径 |
|---|---|
| 渠道适配器接口 | channel/ChannelAdapter.java |
| Web SSE 聊天 | channel/web/ChatController.java |
| 渠道 Webhook | channel/ChannelWebhookController.java |
| 流追踪器 | channel/web/ChatStreamTracker.java |
记忆 & Wiki
| 功能 | 文件路径 |
|---|---|
| 记忆生命周期协调者 | memory/MemoryLifecycleMediator.java |
| Dream 引擎 | memory/dream/DreamService.java |
| Dream 报告 Controller | memory/controller/DreamController.java |
| Wiki 处理流水线 | wiki/service/WikiProcessingService.java |
| Wiki Controller | wiki/controller/WikiController.java |
技能运行时
| 功能 | 文件路径 |
|---|---|
| 技能运行时服务 | skill/runtime/SkillRuntimeService.java |
| 技能安全扫描 | skill/security/SkillSecurityService.java |
| 技能 Controller | skill/controller/SkillController.java |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 109 lines · 50 tokens per session scan A 9666993b80ec
mateclaw_source_index is a skill published in the GitHub repository mateaix/mateclaw (1,218 stars, last pushed today), licensed Apache-2.0. It adds 50 tokens to every session and 1,006 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
mateclaw_source_index compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mateclaw_source_indexmateaix/mateclaw | Skill | 1.2k | today | Apache-2.0 | A | 50 | Claude Code, Codex |
| appjd-opensource/JoySafeter | Skill | 318 | 1mo ago | Apache-2.0 | A | 0 | Claude Code, Codex |
| openclaw-security-checkerjd-opensource/JoySafeter | Skill | 318 | 1mo ago | Apache-2.0 | A | 39 | Claude Code, Codex |
| pentest-whitebox-code-reviewjd-opensource/JoySafeter | Skill | 318 | 1mo ago | Apache-2.0 | A | 36 | Claude Code, Codex |
| pentest-api-deepjd-opensource/JoySafeter | Skill | 318 | 1mo ago | Apache-2.0 | A | 43 | Claude Code, Codex |
| pentest-business-logicjd-opensource/JoySafeter | Skill | 318 | 1mo ago | Apache-2.0 | A | 34 | Claude Code, Codex |
| seclens-enterprise-webjd-opensource/JoySafeter | Skill | 318 | 1mo ago | Apache-2.0 | A | 23 | Claude Code, Codex |