Pipeline Guide
MaaEnd/MaaEnd
MaaEnd Pipeline JSON 编写指南。基于 MaaFramework Pipeline 协议,提供节点命名、识别算法、动作类型、流程控制、可复用节点等编码规范与模式参考。在编写、修改或审查 Pipeline JSON、设计节点流程、使用 TemplateMatch/OCR/Custom 识别或 Click/Swipe 动作时使用。
MaaFramework Go Agent / go-service 编写指南。用于编写、修改或审查 agent/go-service/ 下的 Go 自定义识别器、动作、EventSink,或了解 MaaFramework Go Agent 的注册、日志、目录组织和参数解析模式。
$ npx skills add 1204244136/MDA --skill go-service-guide -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install 1204244136/MDA go-service-guide --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/1204244136/MDA.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/go-service-guide .claude/skills/go-service-guide && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "go-service-guide" agent skill from https://github.com/1204244136/MDA/tree/main/.claude/skills/go-service-guide into .claude/skills/go-service-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "go-service-guide", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/1204244136/MDA/tree/main/.claude/skills/go-service-guideType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add 1204244136/MDA --skill go-service-guide -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install 1204244136/MDA go-service-guide --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/1204244136/MDA.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/go-service-guide .agents/skills/go-service-guide && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "go-service-guide" agent skill from https://github.com/1204244136/MDA/tree/main/.claude/skills/go-service-guide into .agents/skills/go-service-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "go-service-guide", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add 1204244136/MDA --skill go-service-guide -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install 1204244136/MDA go-service-guide --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/1204244136/MDA.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/go-service-guide .cursor/skills/go-service-guide && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "go-service-guide" agent skill from https://github.com/1204244136/MDA/tree/main/.claude/skills/go-service-guide into .cursor/skills/go-service-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "go-service-guide", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/1204244136/MDA.git --path .claude/skills/go-service-guide--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add 1204244136/MDA --skill go-service-guide -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install 1204244136/MDA go-service-guide --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/1204244136/MDA.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/go-service-guide .gemini/skills/go-service-guide && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "go-service-guide" agent skill from https://github.com/1204244136/MDA/tree/main/.claude/skills/go-service-guide into .gemini/skills/go-service-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "go-service-guide", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install 1204244136/MDA go-service-guideInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add 1204244136/MDA --skill go-service-guide -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/1204244136/MDA.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/go-service-guide .github/skills/go-service-guide && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "go-service-guide" agent skill from https://github.com/1204244136/MDA/tree/main/.claude/skills/go-service-guide into .github/skills/go-service-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "go-service-guide", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add 1204244136/MDA --skill go-service-guide -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install 1204244136/MDA go-service-guide --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/1204244136/MDA.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/go-service-guide .opencode/skills/go-service-guide && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "go-service-guide" agent skill from https://github.com/1204244136/MDA/tree/main/.claude/skills/go-service-guide into .opencode/skills/go-service-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "go-service-guide", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
go-service-guideMaaFramework Go Agent / go-service 编写指南。用于编写、修改或审查 agent/go-service/ 下的 Go 自定义识别器、动作、EventSink,或了解 MaaFramework Go Agent 的注册、日志、目录组织和参数解析模式。
Go Service Guide is an agent skill from 1204244136/MDA. MaaFramework Go Agent / go-service 编写指南。用于编写、修改或审查 agent/go-service/ 下的 Go 自定义识别器、动作、EventSink,或了解 MaaFramework Go Agent 的注册、日志、目录组织和参数解析模式。
Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
The repository describes itself as: Nikke小助手 | Assistant For Goddess of Victory: Nikke. The licence is AGPL-3.0.
Read from SKILL.md and the folder at commit 90bb2b2. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are go).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
github.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Go Service Guide loads about 1.3k tokens when it runs. Until then it costs about 39 tokens; SKILL.md has 139 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from 1204244136/MDA at commit 90bb2b2, republished under its AGPL-3.0 licence (© 1204244136). 139 words, ~1,267 tokens.
.claude/skills/go-service-guide/SKILL.md (or your agent's skills folder).Go Service / Go Agent 只处理 Pipeline 难以表达的复杂逻辑,例如图像算法、状态机、外部数据、系统环境检查、运行时上下文处理等。
不要在 Go 中编写大规模业务流程;业务流程控制应优先由 Pipeline JSON 负责。
除非项目另有说明,所有坐标与图像处理以 720p(1280×720)为基准。
agent/go-service/
├── main.go # 入口:初始化、registerAll、启动 AgentServer
├── register.go # registerAll() 聚合各子包 Register()
├── logger.go # 日志初始化
├── pkg/ # 公共工具包
├── common/ # 通用 Custom 组件
├── taskersink/ # TaskerEventSink / ContextEventSink 实现
└── <business>/ # 业务子包
├── register.go # Register() 注册本包组件
└── *.go # 实现文件实际项目可能只使用其中一部分;遵循当前仓库已有结构。
每个包含 MaaFramework 自定义组件的子包应暴露一个 Register() 函数,在其中注册本包所有组件:
package mypkg
import maa "github.com/MaaXYZ/maa-framework-go/v4"
func Register() {
maa.AgentServerRegisterCustomAction("MyAction", &MyAction{})
maa.AgentServerRegisterCustomRecognition("MyRecognition", &MyRecognition{})
}注册名称必须与 Pipeline JSON 中 custom_action / custom_recognition 的名称一致。
子包 Register() 必须在总注册函数中调用:
func registerAll() {
mypkg.Register()
}遗漏调用会导致 Pipeline 中的 Custom 节点运行时找不到组件。
所有注册类型应在定义该类型的文件中包含编译期校验:
var _ maa.CustomActionRunner = &MyAction{}
var _ maa.CustomRecognitionRunner = &MyRecognition{}
var _ maa.TaskerEventSink = &MySink{}
var _ maa.ContextEventSink = &MySink{}不要把这些校验集中放在 register.go,应靠近类型定义。
.go 文件,但避免无意义碎片化。pkg/ 或当前项目已有公共包中。优先使用当前项目已配置的结构化日志库;常见 MaaFramework Go 项目使用 zerolog。
log.Info().
Str("component", "MyComponent").
Str("step", "Prepare").
Msg("prepared input")
log.Error().
Err(err).
Str("component", "MyComponent").
Msg("failed to parse params")规则:
Msg。.Err(err)。log.Printf / log.Println,除非项目明确采用标准库日志。package mypkg
import (
"encoding/json"
maa "github.com/MaaXYZ/maa-framework-go/v4"
"github.com/rs/zerolog/log"
)
var _ maa.CustomActionRunner = &MyAction{}
type myActionParam struct {
Target string `json:"target"`
}
// MyAction performs a custom Pipeline action.
type MyAction struct{}
func (a *MyAction) Run(ctx *maa.Context, arg *maa.CustomActionArg) bool {
var params myActionParam
if err := json.Unmarshal([]byte(arg.CustomActionParam), ¶ms); err != nil {
log.Error().
Err(err).
Str("component", "MyAction").
Msg("failed to parse params")
return false
}
return true
}package mypkg
import (
"encoding/json"
maa "github.com/MaaXYZ/maa-framework-go/v4"
"github.com/rs/zerolog/log"
)
var _ maa.CustomRecognitionRunner = &MyRecognition{}
type myRecognitionParam struct {
Threshold float64 `json:"threshold"`
}
// MyRecognition performs a custom Pipeline recognition.
type MyRecognition struct{}
func (r *MyRecognition) Run(ctx *maa.Context, arg *maa.CustomRecognitionArg) (*maa.CustomRecognitionResult, bool) {
var params myRecognitionParam
if err := json.Unmarshal([]byte(arg.CustomRecognitionParam), ¶ms); err != nil {
log.Error().
Err(err).
Str("component", "MyRecognition").
Msg("failed to parse params")
return nil, false
}
matched := true
if !matched {
return nil, false
}
return &maa.CustomRecognitionResult{
Box: arg.Roi,
Detail: "{}",
}, true
}package mypkg
import maa "github.com/MaaXYZ/maa-framework-go/v4"
var _ maa.TaskerEventSink = &MySink{}
// MySink handles task lifecycle events.
type MySink struct{}
func (s *MySink) OnTaskerTask(tasker *maa.Tasker, event maa.EventStatus, detail maa.TaskerTaskDetail) {
if event != maa.EventStatusStarting {
return
}
}如需监听 Context 事件,实现 maa.ContextEventSink 并按项目现有方式注册。未使用的回调方法写空实现。
panic;除非这是启动期不可恢复配置错误且项目已有相同模式。custom_action / custom_recognition 完全一致。Register() 已在总注册函数中调用。time.Sleep。github.com/MaaXYZ/maa-framework-go/v4© 1204244136, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/go-service-guide of 1204244136/MDA.
Open the folder on GitHubat commit 90bb2b2
Go Service Guide next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Go Service Guide this skill1204244136/MDA | 120 | — | ~1.3k | Automated safety check: Pass | AGPL-3.0 | |
| Pipeline GuideMaaEnd/MaaEnd | 4k | — | ~1.9k | Automated safety check: Pass | AGPL-3.0 | |
| Go Service GuideMaaEnd/MaaEnd | 4k | — | ~2.1k | Automated safety check: Pass | AGPL-3.0 | |
| Maa Pipeline Guideduorua/narutomobile | 340 | — | ~3.4k | Automated safety check: Pass | AGPL-3.0 | |
| Cpp Algo StyleMaaEnd/MaaEnd | 4k | — | ~2.3k | Automated safety check: Pass | AGPL-3.0 | |
| Maafwkqcoxn/MaaPipelineEditor | 408 | — | ~1.1k | Automated safety check: Pass | MIT |
MaaEnd/MaaEnd
MaaEnd Pipeline JSON 编写指南。基于 MaaFramework Pipeline 协议,提供节点命名、识别算法、动作类型、流程控制、可复用节点等编码规范与模式参考。在编写、修改或审查 Pipeline JSON、设计节点流程、使用 TemplateMatch/OCR/Custom 识别或 Click/Swipe 动作时使用。
MaaEnd/MaaEnd
MaaEnd go-service 编写指南。为 agent/go-service/ 下的 Go 代码提供架构、注册、命名、日志、注释等编码规范和模式参考。在编写、修改或审查 Go 自定义识别器、动作、EventSink,或需要了解 go-service 项目结构与 MaaFramework Go 集成方式时使用。
duorua/narutomobile
Universal Pipeline JSON 编写指南。基于 MaaFramework Pipeline 协议,提供节点命名、识别算法、动作类型、流程控制、可复用节点等编码规范与模式参考。在编写、修改或审查 Pipeline JSON、设计节点流程、使用 TemplateMatch/OCR/Custom 识别或 Click/Swipe 动作时使用。
MaaEnd/MaaEnd
MaaEnd cpp-algo C++ 编码风格与工程规范指南。参考 MaaFramework 的优秀实践,规范命名、头文件、公共工具、错误处理、日志、CMake 等方面。在编写、修改或审查 agent/cpp-algo/ 下的 C++ 代码时使用。
kqcoxn/MaaPipelineEditor
MaaFramework 开发与集成指南。当任务涉及 MaaFramework 项目结构、Pipeline 协议、ProjectInterface V2 协议、自定义识别/动作(Custom/Agent)、Python/NodeJS/CSharp 等语言 Binding 集成、控制器配置、回调协议或运行时行为时使用。
MaaEnd/MaaEnd
MaaFramework 日志宏用法指南,适用于 MaaEnd cpp-algo。Use when writing logging code, using LogInfo/LogError/LogWarn/LogDebug/LogTrace, outputting containers or custom types to logs, or when the user asks about…
1204244136/MDA
根据 MaaFramework Pipeline 定义生成或更新 Project Interface 任务 JSON。用于创建、编辑或扩展 assets/tasks/ 下的任务文件,将 Pipeline 节点映射为用户可配置选项(switch/select/checkbox/input)并绑定 pipelineoverride。
1204244136/MDA
分析 Windows 崩溃转储文件(.dmp),诊断 MaaFramework / MXU 项目及其依赖项的崩溃。用于 issue 日志包或附件中发现 .dmp 文件,或用户要求分析 DMP / 崩溃转储时。
1204244136/MDA
MaaFramework C++ 日志宏用法指南。用于写 C++ MaaFramework 扩展、Custom 组件或工具代码时使用 LogInfo/LogError/LogWarn/LogDebug/LogTrace、VAR、容器输出和自定义类型日志。
1204244136/MDA
分析 MDA 公开 Issue、日志包或本地日志。用于 https://github.com/1204244136/MDA/issues/...、1234、MDA 日志压缩包、识别失败、任务卡死、控制器差异、Pipeline/Agent/MXU 问题。会从…
1204244136/MDA
MDA 项目专属开发指南。用于在 MDA 中编写或审查 MaaFramework Pipeline、Project Interface 任务、locale、go-service 组件时补充项目结构、业务域、命名习惯和现有任务选项示例。与通用 pipeline-guide、pipeline-debug、generate-pi-task、go-service-guide 配合使用。
1204244136/MDA
meojson C++ JSON 库使用指南。用于 MaaFramework C++ 项目中的 JSON 解析、序列化、MEOJSONIZATION、json::value 操作、ext::jsonization 自定义类型支持,以及 Custom 参数解析。
MaaFramework Go Agent / go-service 编写指南。用于编写、修改或审查 agent/go-service/ 下的 Go 自定义识别器、动作、EventSink,或了解 MaaFramework Go Agent 的注册、日志、目录组织和参数解析模式。. Go Service Guide is an agent skill from 1204244136/MDA.
Run `npx skills add 1204244136/MDA --skill go-service-guide -a claude-code`. Or copy the skill folder (.claude/skills/go-service-guide in 1204244136/MDA) into .claude/skills/go-service-guide in your project. Claude Code loads it when a task matches its description.
Run `npx skills add 1204244136/MDA --skill go-service-guide -a codex`. Or copy the skill folder (.claude/skills/go-service-guide in 1204244136/MDA) into .agents/skills/go-service-guide in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add 1204244136/MDA --skill go-service-guide -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/go-service-guide, .gemini/skills/go-service-guide, .github/skills/go-service-guide and .opencode/skills/go-service-guide in your project.
SKILL.md names no scripts, command-line tools or credentials: Go Service Guide is instructions for the agent only.
SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Go Service Guide is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.3k tokens (SKILL.md is roughly 5.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Go Service Guide: Pipeline Guide (MaaEnd/MaaEnd, 4k stars), Go Service Guide (MaaEnd/MaaEnd, 4k stars), Maa Pipeline Guide (duorua/narutomobile, 340 stars) and Cpp Algo Style (MaaEnd/MaaEnd, 4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
1204244136 (a GitHub user) maintains it in 1204244136/MDA, which has 120 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 10, 2026.
Source: 1204244136/MDA on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.