Mateclaw Source Index logo

Mateclaw Source Index

CommunityPopular
mateaix
mateclaw_source_index

将用户问题映射到 MateClaw 文档路径与源码入口,减少盲目搜索。回答'XX 功能在哪里实现'、'怎么修改 YY 逻辑'等源码定位问题。

Overview

Publishermateaix
Repositorymateclaw
Skill namemateclaw_source_index
Stars
1.1K
Forks
337
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by mateaix on GitHub. Read the source before you install it.

Installation

Install the Mateclaw Source Index AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/mateaix/mateclaw/tree/dev/mateclaw-server/src/main/resources/skills/mateclaw_source_index
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mateaix/mateclaw.git /tmp/mateclaw
mkdir -p .claude/skills
cp -r /tmp/mateclaw/mateclaw-server/src/main/resources/skills/mateclaw_source_index .claude/skills/mateclaw_source_index
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Mateclaw Source Index in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Mateclaw Source Index on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Mateclaw Source Index is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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
审批 Controllerapproval/ApprovalController.java

渠道 & 对话

功能文件路径
渠道适配器接口channel/ChannelAdapter.java
Web SSE 聊天channel/web/ChatController.java
渠道 Webhookchannel/ChannelWebhookController.java
流追踪器channel/web/ChatStreamTracker.java

记忆 & Wiki

功能文件路径
记忆生命周期协调者memory/MemoryLifecycleMediator.java
Dream 引擎memory/dream/DreamService.java
Dream 报告 Controllermemory/controller/DreamController.java
Wiki 处理流水线wiki/service/WikiProcessingService.java
Wiki Controllerwiki/controller/WikiController.java

技能运行时

功能文件路径
技能运行时服务skill/runtime/SkillRuntimeService.java
技能安全扫描skill/security/SkillSecurityService.java
技能 Controllerskill/controller/SkillController.java

数据库 & 配置

功能文件路径
Flyway 迁移(H2)resources/db/migration/h2/
Flyway 迁移(MySQL)resources/db/migration/mysql/
种子数据(中文)resources/db/data-mysql-zh.sql
系统设置system/service/SystemSettingService.java

注意

  • 路径均相对于 mateclaw-server/src/main/java/vip/mate/(Java 文件)或 mateclaw-server/src/main/resources/(资源文件)
  • 如找不到精确文件,先用 readMateClawDoc 搜索,再用 read_file 读取 CLAUDE.md 获取最新架构描述

Frequently asked questions

What does the Mateclaw Source Index AI skill do?

将用户问题映射到 MateClaw 文档路径与源码入口,减少盲目搜索。回答'XX 功能在哪里实现'、'怎么修改 YY 逻辑'等源码定位问题。

Why use Mateclaw Source Index on TypingMind?

Because you install it once and use it with any model. Mateclaw Source Index is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Mateclaw Source Index in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/mateaix/mateclaw/tree/dev/mateclaw-server/src/main/resources/skills/mateclaw_source_index. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Mateclaw Source Index?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Mateclaw Source Index?

As many as you like. As long as a model supports skills, you can use Mateclaw Source Index with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Mateclaw Source Index AI skill free?

Yes. It is published on GitHub by mateaix under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇