Agent skill

Maafw

by kqcoxn in kqcoxn/MaaPipelineEditor

MaaFramework 开发与集成指南。当任务涉及 MaaFramework 项目结构、Pipeline 协议、ProjectInterface V2 协议、自定义识别/动作(Custom/Agent)、Python/NodeJS/CSharp 等语言 Binding 集成、控制器配置、回调协议或运行时行为时使用。

MITAuto-check passedDevelopment

Install Maafw

skills CLI
$ npx skills add kqcoxn/MaaPipelineEditor --skill maafw -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install kqcoxn/MaaPipelineEditor maafw --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/kqcoxn/MaaPipelineEditor.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/maafw .claude/skills/maafw && rm -rf skills-src

Use ~/.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/

Facts

Skill name
maafw
GitHub stars
408
Token cost
~1.1k tokens
SKILL.md length
267 words
Files
14 (incl. references)
Skills in repo
12
Repo updated
First seen
Licence
MIT

At a glance

MaaFramework 开发与集成指南。当任务涉及 MaaFramework 项目结构、Pipeline 协议、ProjectInterface V2 协议、自定义识别/动作(Custom/Agent)、Python/NodeJS/CSharp 等语言 Binding 集成、控制器配置、回调协议或运行时行为时使用。

  • Works in 4 steps: 先完整读取仓库根目录的… → 优先使用索引中的本地仓库进行 rg、文件读取、git log、git blame… → 本地仓库缺失或明确需要更新时,不要在系统临时目录或其他位置另行 git… → …
  • Development work in your project
  • SKILL.md covers 核心原则, 本地参考源码, 参考文档索引 and 项目结构识别, plus 4 more sections
  • Calls git

What it does

Maafw is an agent skill from kqcoxn/MaaPipelineEditor. MaaFramework 开发与集成指南。当任务涉及 MaaFramework 项目结构、Pipeline 协议、ProjectInterface V2 协议、自定义识别/动作(Custom/Agent)、Python/NodeJS/CSharp 等语言 Binding 集成、控制器配置、回调协议或运行时行为时使用。

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 14 other files, including reference files (for example `references/1.1-快速开始.md`, `references/1.2-术语解释.md` and `references/1.3-Custom&Agent.md`).

It sits in Development. It works with C#, Python, Node.js and Git. The repository describes itself as: ✨ 可视化构建 MaaFramework Pipeline 的下一代工作流 审阅&编辑&调试 工具,你的工程师牛牛! ✨. The licence is MIT.

When your agent uses it

  • Development work in your project

Example prompts

  • “/maafw”

Requirements

  • Python 3
  • Node.js

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. 先完整读取仓库根目录的 dev/docs/社区参考项目索引.md,按其中的“按任务选择参考项目”确定项目,并从索引解析本地路径;不要凭记忆猜测目录。
  2. 优先使用索引中的本地仓库进行 rg、文件读取、git log、git blame 和版本对比。开始引用前记录其当前 commit;需要判断新旧时再检查本地分支和远端跟踪信息。
  3. 本地仓库缺失或明确需要更新时,不要在系统临时目录或其他位置另行 git clone。用户要求同步或更新时使用 sync-reference-projects skill 的统一流程;只读任务中若版本新旧会实质性影响结论,则说明本地状态并取得同步授权。
  4. 仅当索引未收录所需项目,或本地仓库确实无法提供任务所需内容时,才访问 GitHub、Raw URL 或远端 API;访问前说明原因。远端查询不得替代对现有本地参考仓库的检查。

What it can do on your machine

Read from SKILL.md and the folder at commit bff320d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Maafw loads about 1.1k tokens when it runs, and up to ~59k if it reads all its reference files. Until then it costs about 41 tokens; SKILL.md has 267 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~41
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~59k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from kqcoxn/MaaPipelineEditor at commit bff320d, republished under its MIT licence (© kqcoxn). 267 words, ~1,103 tokens.

Download SKILL.mdSave it as .claude/skills/maafw/SKILL.md (or your agent's skills folder). This skill also uses 13 other files; get the full folder from GitHub.
name
maafw
description
MaaFramework 开发与集成指南。当任务涉及 MaaFramework 项目结构、Pipeline 协议、ProjectInterface V2 协议、自定义识别/动作(Custom/Agent)、Python/NodeJS/CSharp 等语言 Binding 集成、控制器配置、回调协议或运行时行为时使用。

MaaFramework 开发指南

核心原则

  • 以 MaaFramework 官方文档、Schema 和源码为语义首要依据。
  • 在 MaaPipelineEditor 仓库中工作时,官方源码默认指 dev/docs/社区参考项目索引.md 登记的本地参考仓库;本地克隆与 GitHub 上游属于同一源码来源,不得因需要“官方源码”而绕过本地仓库访问远端。
  • 准确区分 Project、Pipeline、Bundle、Resource、Task、Entry、Node、Controller、Tasker、Context、Agent 等概念。
  • 不根据旧 MPE 实现反推 MaaFramework 行为;新增或修改 MFW 相关能力前核对当前参考版本的文档与 API。
  • 设计 JSON/JSONC 修改流程时考虑注释、格式、字段顺序和精确位置,禁止默认用普通反序列化再整体序列化破坏源文件。

本地参考源码

需要参考 MaaFramework 或社区项目实现时:

  1. 先完整读取仓库根目录的 dev/docs/社区参考项目索引.md,按其中的“按任务选择参考项目”确定项目,并从索引解析本地路径;不要凭记忆猜测目录。
  2. 优先使用索引中的本地仓库进行 rg、文件读取、git log、git blame 和版本对比。开始引用前记录其当前 commit;需要判断新旧时再检查本地分支和远端跟踪信息。
  3. 本地仓库缺失或明确需要更新时,不要在系统临时目录或其他位置另行 git clone。用户要求同步或更新时使用 sync-reference-projects skill 的统一流程;只读任务中若版本新旧会实质性影响结论,则说明本地状态并取得同步授权。
  4. 仅当索引未收录所需项目,或本地仓库确实无法提供任务所需内容时,才访问 GitHub、Raw URL 或远端 API;访问前说明原因。远端查询不得替代对现有本地参考仓库的检查。

常用本地入口(均以 MaaPipelineEditor 仓库根目录为基准):

  • MaaFramework:../maa-refs/MaaFramework
  • maa-support-extension(MSE):../maa-refs/maa-support-extension
  • 其余项目:以 dev/docs/社区参考项目索引.md 为准。

参考文档索引

按任务类型选择对应参考文件:

任务参考文件
入门、资源准备、调试运行、项目打包1.1-快速开始.md
术语与架构1.2-术语解释.md
Custom/Agent 扩展1.3-Custom&Agent.md
语言 Binding 与集成入口2.1-集成文档.md
API 接口一览2.2-集成接口一览.md
回调消息协议2.3-回调协议.md
控制器截图/输入方式2.4-控制方式说明.md
Pipeline 节点协议3.1-任务流水线协议.md
ProjectInterface V2(interface.json)3.3-ProjectInterfaceV2协议.md
构建 MaaFramework 本体4.1-构建指南.md
新语言 Binding 设计4.2-标准化接口设计.md

项目结构识别

一个标准 MaaFramework 项目通常包含:

tree
project/
├── interface.json          # ProjectInterface V2 声明
├── assets/
│   ├── resource/           # Bundle:pipeline/、image/、model/
│   │   ├── pipeline/
│   │   ├── image/
│   │   ├── model/ocr/
│   │   └── default_pipeline.json
│   └── interface_zh.json   # 多语言翻译(可选)
└── agent/                  # Agent 自定义扩展(可选)

识别顺序:

  1. 确认 interface.json 存在并解析 interface_version。
  2. 解析 controller、resource、task、option、preset、group 等字段。
  3. 按 resource.path 定位 Bundle,递归读取 pipeline/ 下所有 JSON/JSONC。
  4. 需要运行时信息再加载控制器;静态分析阶段不假设设备已连接。

Pipeline 处理工作流

  1. 读取 pipeline/ 目录下所有 JSON/JSONC(以 . 开头的目录/文件被忽略;以 $ 开头的 root 字段被忽略)。
  2. 解析节点时支持 v1(recognition/action 字符串及同级参数字段)和 v2(recognition/action 为 { type, param } 对象)混用。
  3. 识别引用关系:next、on_error、roi、target 可引用节点名或 [Anchor]锚点名。
  4. 修改 Pipeline 时:
    • 保留 JSONC 注释与字段顺序;
    • 使用精确位置编辑而非整体重写;
    • 引用变更时同步检查引用目标是否存在。
  5. 需要算法/动作字段定义时查阅 3.1-任务流水线协议.md。

ProjectInterface V2 处理工作流

  1. 确认 interface_version 为 2。
  2. 解析核心字段:name、version、controller、resource、task、option、preset、group、import、agent、pretask、global_option、setting。
  3. 处理 import 合并规则:
    • task、preset、group、pretask、setting:追加;
    • option:对象合并,后导入覆盖先导入;
    • global_option:追加并按 option 键名去重,保留先出现项。
  4. 处理 option 覆盖优先级:global_option < resource.option < controller.option < task.option。
  5. 启动 Agent 子进程时按 v2.5.0+ 约定注入 PI_* 环境变量,详见 3.3-ProjectInterfaceV2协议.md 的 Agent 子进程环境变量小节。
  6. 需要字段完整定义时查阅 3.3-ProjectInterfaceV2协议.md。

集成与运行时

  1. 优先使用项目确定的语言 Binding(如 Python Binding)。
  2. 核心对象生命周期:创建 Resource → 加载 Bundle → 创建 Controller → 连接设备 → 创建 Tasker → 绑定 Resource 和 Controller → 执行任务。
  3. 自定义识别/动作优先通过 Agent 进程实现;AgentServer 注册自定义逻辑后由 AgentClient 在运行时调用。
  4. 监听回调时按 2.3-回调协议.md 解析 message 与 details_json,注意线程安全与快速返回。
  5. 需要控制器截图/输入方式配置时查阅 2.4-控制方式说明.md。

常见陷阱

  • 不要把 Pipeline JSON 当作完整 MFW 项目;项目还需要 interface.json、资源目录、可能的 Agent。
  • timeout 作用于当前节点的 next 列表识别超时,而非当前节点自身的 recognition 等待时间。
  • roi/target 的字符串引用支持节点名和 [Anchor]锚点名;引用为空时视为识别/动作失败。
  • default_pipeline.json 在 Bundle 根目录与 pipeline/ 同级,按 Bundle 加载顺序合并,已加载节点不受后续默认值影响。
  • Pipeline 文件支持 JSONC,但能否使用以对应版本官方行为或明确工具契约为准;修改时避免破坏注释。

© kqcoxn, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 13 other files (references) in .agents/skills/maafw of kqcoxn/MaaPipelineEditor.

  • SKILL.md
  • references/1.1-快速开始.md
  • references/1.2-术语解释.md
  • references/1.3-Custom&Agent.md
  • references/2.1-集成文档.md
  • references/2.2-集成接口一览.md
  • references/2.3-回调协议.md
  • references/2.4-控制方式说明.md
  • references/3.1-任务流水线协议.md
  • references/3.2-ProjectInterface协议.md
  • references/3.3-ProjectInterfaceV2协议.md
  • references/4.1-构建指南.md
  • references/4.2-标准化接口设计.md
  • references/5.1-问题反馈.md

Open the folder on GitHubat commit bff320d

Compare with similar skills

Maafw 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.

Maafw compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Maafw this skillkqcoxn/MaaPipelineEditor408—~1.1kAutomated safety check: PassMIT
Git HooksProrise-cool/Claude-Code-Multi-Agent305—~3.6kAutomated safety check: NotesNone
Precheckayutaz/piper-plus230—~647Automated safety check: PassMIT
Run Testsayutaz/piper-plus230—~641Automated safety check: PassMIT
Check Toolsoaustegard/claude-skills150—~641Automated safety check: PassMIT
Core API Changelibnativeapi/nativeapi162—~2.5kAutomated safety check: PassMIT

Similar skills

  • Git Hooks

    Prorise-cool/Claude-Code-Multi-Agent

    Central authority on git hook implementations, modern best practices, and tooling for .NET/C, JavaScript/TypeScript, Python, and polyglot repositories.

    305 GitHub stars~3.6k tokensUpdated 23 days ago
    DevelopmentAuto-check: notes
  • Precheck

    ayutaz/piper-plus

    PR 作成前の lint + format + test 一括実行。引数で scope (python/rust/cs/go/js/cpp/all) を指定可能。未指定なら git diff から自動判定。

    230 GitHub stars~647 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Run Tests

    ayutaz/piper-plus

    piper-plus の各言語ランタイムのテストを実行します。引数 python/rust/cs/go/js/cpp/all で対象を選択。未指定なら git diff から自動判定。

    230 GitHub stars~641 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Check Tools

    oaustegard/claude-skills

    Validates development tool installations across Python, Node.js, Java, Go, Rust, C/C++, Git, and system utilities.

    150 GitHub stars~641 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Core API Change

    libnativeapi/nativeapi

    Carry a change to the C++ public API in core/ all the way downstream — design check, header edit, six platform implementations, C ABI + Rust/Dart/C/JS/Python regeneration, per-binding verification…

    162 GitHub stars~2.5k tokensUpdated yesterday
    MobileAuto-check passed
  • This skill provides comprehensive guidance for SAP Business Application Studio (BAS), the cloud-based IDE on SAP BTP built on Code-OSS.

    462 GitHub stars~2.7k tokensUpdated 4 days ago
    DevOps & CloudAuto-check passed

More from kqcoxn/MaaPipelineEditor

All 12 skills in this repo
  • Ant Design

    kqcoxn/MaaPipelineEditor

    Decision guide for antd 6.x, Ant Design Pro 5/ProComponents, Ant Design X v2, and the offline @ant-design/cli.

    408 GitHub starsUsed in 1 repo~1.1k tokens
    Auto-check passed
  • Mpe Background Art

    kqcoxn/MaaPipelineEditor

    为 MPE 桌面端策划、生成或修改版本主题背景图,复用机械动力牛牛与章鱼猫的定稿形象;也用于维护这两个角色的设定与三视图。不用于普通界面样式修改或无关插画。

    408 GitHub stars~410 tokensUpdated today
    Auto-check passed
  • Use X Chat

    kqcoxn/MaaPipelineEditor

    专注讲解如何使用 useXChat Hook,包括自定义 Provider 的集成、消息管理、错误处理、多会话管理等. An agent skill from kqcoxn/MaaPipelineEditor.

    408 GitHub stars~3k tokensUpdated today
    Auto-check passed
  • X Card

    kqcoxn/MaaPipelineEditor

    当需要用 @ant-design/x-card 让 AI Agent 动态渲染富交互 UI 时使用——涵盖 XCard.Box、XCard.Card、A2UI v0.9 命令、数据绑定、Catalog、Actions 和流式渲染模式。

    408 GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • X Chat Provider

    kqcoxn/MaaPipelineEditor

    专注于自定义 Chat Provider 的实现,帮助将任意流式接口适配为 Ant Design X 标准格式. An agent skill from kqcoxn/MaaPipelineEditor.

    408 GitHub stars~3.1k tokensUpdated today
    Auto-check passed
  • X Components

    kqcoxn/MaaPipelineEditor

    使用 @ant-design/x 组件库构建 AI 对话 UI 时使用 —— 涵盖 Bubble、Sender、Conversations、Prompts、ThoughtChain、Actions、Welcome、Attachments、Sources、Suggestion、Think、FileCard、CodeHighlighter、Mermaid、Folder、XProvider 和…

    408 GitHub stars~1.6k tokensUpdated today
    Auto-check passed

Categories

Questions about Maafw

What does Maafw do?

MaaFramework 开发与集成指南。当任务涉及 MaaFramework 项目结构、Pipeline 协议、ProjectInterface V2 协议、自定义识别/动作(Custom/Agent)、Python/NodeJS/CSharp 等语言 Binding 集成、控制器配置、回调协议或运行时行为时使用。. Maafw is an agent skill from kqcoxn/MaaPipelineEditor.

When should I use Maafw?

Maafw fits situations like: development work in your project.

How do I install Maafw in Claude Code?

Run `npx skills add kqcoxn/MaaPipelineEditor --skill maafw -a claude-code`. Or copy the skill folder (.agents/skills/maafw in kqcoxn/MaaPipelineEditor) into .claude/skills/maafw in your project. Claude Code loads it when a task matches its description.

How do I install Maafw in Codex?

Run `npx skills add kqcoxn/MaaPipelineEditor --skill maafw -a codex`. Or copy the skill folder (.agents/skills/maafw in kqcoxn/MaaPipelineEditor) into .agents/skills/maafw in your project. Codex loads it when a task matches its description.

Can I use Maafw in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add kqcoxn/MaaPipelineEditor --skill maafw -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/maafw, .gemini/skills/maafw, .github/skills/maafw and .opencode/skills/maafw in your project.

What does Maafw need to run?

Going by SKILL.md and its folder, Maafw needs the command-line tools its instructions call (git). Our summary lists: Python 3; Node.js.

Does Maafw access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Maafw safe to install?

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.

What licence does Maafw use?

Maafw is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Maafw use?

About 1.1k tokens (SKILL.md is roughly 4.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 57k tokens, read only when the agent opens those files.

What are the alternatives to Maafw?

Skills that share tags, products or a category with Maafw: Git Hooks (Prorise-cool/Claude-Code-Multi-Agent, 305 stars), Precheck (ayutaz/piper-plus, 230 stars), Run Tests (ayutaz/piper-plus, 230 stars) and Check Tools (oaustegard/claude-skills, 150 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Maafw?

kqcoxn (a GitHub user) maintains it in kqcoxn/MaaPipelineEditor, which has 408 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 9, 2026.

Source: kqcoxn/MaaPipelineEditor on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.