/everything-maa:maa-workflow-buildfrom everything-maa
Orchestrates ambiguous MaaFramework automation requests from vague intent to verified implementation. Compiles task contracts, discovers UI state, designs state machines, and routes work across Maa skills.
Ships in everything-maa. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Own an end-to-end Maa automation request from ambiguous intent through evidence-backed completion. Treat the other Maa skills as specialist capabilities; keep this skill responsible for goal compilation, phase state, routing, recovery, and acceptance.
Read references/task-contract.md before finalizing the goal. Read references/run-state.md before the first action and at every phase transition. Read references/exploration-first.md whenever a start or success state is not backed by a screenshot or recognition result captured in this task.
$maa-pipeline-guide as a reference and constraint source, not a sequential execution phase or node producer. Load only the sections needed to design, edit, or review the current control flow.$maa-pipeline-generate as the primary producer for recognition and action nodes, especially OCR, TemplateMatch, ColorMatch, ROI selection, and screenshot-derived snippets. Integrate its output into the designed state machine instead of treating generated nodes as task completion.$maa-pipeline-option only when the task contract requires a user-facing toggle, selector, checkbox, switch, or input. Do not create options merely because the skill is available.$maa-pipeline-testing after each coherent implementation increment and again against the integrated end-to-end flow. Use its evidence to route a failure back to the specialist or orchestrator phase that owns the defect.$maa-cli-operate as an execution backend for repeatable checks or guarded runtime operations, not a mandatory business phase.$maa-diagnose only from RECOVER, and only when a failure exists whose owner is still unknown after focused testing. It is a read-only evidence producer, never a routine phase, and never a repair actor.$maa-wiki as an official-knowledge reference provider. Use it when the task contract, design, or acceptance criteria depend on MaaFramework documentation, schema, API, binding, release, or semantic-change facts; navigate to original sources before treating those facts as authoritative.Do not treat the specialists as a fixed guide -> generate -> option -> testing sequence. Call only the capability required by the current task state, then return its artifacts and evidence to this control loop.
Compile the request into a task contract. Define the goal, non-goals, observable start states, success and failure states, constraints, allowed and forbidden side effects, assumptions, and acceptance criteria.
Treat start state as a set of observable states, not one ideal screen. Include safe behavior for an unknown or unexpected state. Resolve project-independent product choices before editing, such as whether paid currency, purchases, repeated consumptions, or destructive actions are allowed.
Record how each state was established. Mark a state evidence_status: observed only when a screencap, OCR result, or recognition trace captured in this task shows it, and record that artifact. A state inferred from documentation, an existing node name, a reused CustomAction's assumed precondition, a similar game, or the model's expectation is evidence_status: guessed.
Locate the target project and check for optional project-level context artifacts before broad discovery:
basic_info.md exists and is current enough for the task, read its routed sections as a cache and verify every touched fact against current source.pipeline_overview.html, pipeline_external_entries.html, or its index.html exists and is current enough, use it for orientation and verify affected edges against current Pipeline and Python files.Never invoke $maa-project-init or $maa-pipeline-graph automatically. Use those one-time or low-frequency project tools only when the user explicitly requests initialization, refresh, visualization, or graph regeneration. Confirm current Pipeline files, task entries, resource groups, public return/recovery nodes, option surfaces, Python entries, device availability, and current UI evidence directly from the project and environment.
Check the exploration gate before leaving DISCOVER. The gate is a condition, not a judgement call:
start_states or success_states entry is still evidence_status: guessed;start_states and success_states entry is evidence_status: observed and names the artifact that shows it.While the gate is open, the task is in exploration-first mode. Drive the real UI with the MaaMCP tools (screencap, ocr, click, swipe) and observe at least one complete round-trip: from an observed start state, through every intermediate state, to the observed success state, and back to a stable return state. Record every hop as an observation with its screenshot, recognized text, box, and the action that caused the transition.
Do not write Pipeline nodes, CustomAction code, or a full implementation plan while the gate is open. Treat every reused node, processor, or CustomAction as having an entry precondition and observe the state it expects; do not assume an existing component is reachable from the current screen.
Read references/exploration-first.md for the round-trip definition, the observation record, and the exit criteria. When exploration is impossible because no device, no authorized entry point, or no permitted side effect is available, stop with an explicit gap instead of designing on guesses.
Enter DESIGN only when the exploration gate is closed, and design every node from the states, ROIs, and text recorded during exploration. Never write a node first and match it to the UI afterwards.
Design the complete state machine before generating nodes. Include:
Use $maa-pipeline-guide to choose Pipeline state transitions versus CustomAction or CustomRecognition. Define the required files, nodes, options, and verification ladder. For actions that spend currency, consume items, start battles, or change an account, design a non-mutating probe before the real action.
If the workflow needs code to react when a task or node completes or fails, route Event Sink lookup through $maa-wiki. If it needs a Pipeline node to show the user a custom message, use $maa-pipeline-guide for focus and verify support in the target client.
Apply the smallest coherent change that can satisfy the task contract:
$maa-pipeline-guide while designing, editing, or reviewing that control flow;$maa-pipeline-generate to produce recognition/action nodes and ROI sweeps;$maa-pipeline-option only for required user-facing controls and their end-to-end wiring;$maa-cli-operate for compact repeatable validation and guarded runtime operations;$maa-pipeline-testing after each coherent increment for recognition, Custom wiring, and behavioral validation, then run the integrated verification ladder.Keep temporary probes distinguishable from deliverable nodes. Derive every click target from a recognition result instead of a hardcoded coordinate; see coordinate hygiene. Preserve the target project's existing schema and naming conventions. Update the run state after each meaningful observation, edit, or failed attempt.
Read references/acceptance-protocol.md. Verify in increasing-risk order:
Attach observable evidence to each acceptance criterion. A skipped or unavailable check remains open unless the contract explicitly permits a documented limitation.
Complete only when every required acceptance criterion has supporting evidence, no unexplained high-risk finding remains, temporary artifacts are handled, and the final state is stable.
Do not declare completion based only on generated JSON, a clean resource load, an unverified plan, or the model's own assessment. Report changed artifacts, verification evidence, remaining limitations, and safe follow-up actions.
Read references/recovery-policy.md whenever an observation, tool call, edit, or test fails. Record the root cause or best bounded hypothesis, a safe retry, retry count, evidence needed from the retry, and an explicit stop condition.
Re-observe after navigation or unexpected output. Replan when the state model is wrong. Return to EXPLORE and reopen the gate when a failure shows that a state, a transition, or a reused component's precondition was assumed rather than observed. Stop instead of repeating ambiguous clicks, resource-consuming actions, or an unchanged failing attempt.
When the failure class itself is unknown, request evidence from $maa-diagnose before choosing a route, then decide retry, replan, delegate a repair, request user action, or stop from its normalized result. This orchestrator owns that decision; the diagnostic skill only supplies evidence and a bounded owner.
At each phase boundary, update a compact result with:
status: success | warning | error
summary: one-line phase result
next_actions: []
artifacts: []
evidence: []
stop_reason: null
Keep the task contract stable unless new evidence or a user decision changes it. Compact context at phase boundaries; load only the specialist skill and reference needed for the next action.
What SKILL.md sets; muted values are Claude Code's defaults
13 skills in this plugin
/maa-cli-operateOperate MaaFramework devices and Pipeline resources through the maafw-cli command line with strict JSON output. Use for low-context, repeatable or scripted device discovery, ADB/Win32/PlayCover/wlroots connections, OCR and recognition, screenshots and guarded actions, named sessions, Pipeline validation or execution, resource checks, and CI-friendly Maa automation; route persistent exploratory debugging to MaaMCP instead./maa-diagnoseDiagnose unexplained MaaFramework failures by driving the externally managed latest MaaEvidenceKit diagnostic runtime (formerly MaaDiagnosticExpert) read-only over local logs, project sources, and run-state context. Use when a run, task, or test already failed and the owner of the defect is still unknown, including maafw.log, timestamped maafw.bak logs, or other maafw.*.log files - resource or schema load failures, environment or dependency problems, device errors, runtime timeouts, wrong branches, Custom exceptions, or large MaaFramework logs that need timeline and node correlation. Produces normalized findings, evidence, artifacts, and one bounded failure owner, and never applies a repair. Route project scaffold health checks to $maa-project-create doctor and focused recognition retuning to $maa-pipeline-generate./maa-interface-guide解释、审查、诊断和修改已有 MaaFramework Project Interface V2。用于处理现有 interface.json / interface.jsonc、Interface import、controller、resource、task、group、option、preset、setting、pretask、agent、telemetry、resource hash、attach_resource_path、国际化、路径与跨文件引用,或执行 schema 与 maa-tools 校验;不用于创建新项目、从零生成 Interface 或支持 Project Interface v1。/maa-pipeline-generateGenerate MaaFramework Pipeline nodes and recognition snippets from screenshots or observed UI state. Use for OCR node generation, ROI sweep, choosing TemplateMatch/OCR/ColorMatch/CustomRecognition, preserving target-file schema style, and designing `next`/`[JumpBack]` links before merging generated nodes into pipeline JSON./maa-pipeline-graph生成 MaaFramework Pipeline 项目的可交互状态机图谱。当用户想"看 Pipeline 节点关系"、"画状态机图"、"画 Mermaid 图"、"看 node 间关系"、"找孤立节点 / orphan node"、"看 Python 怎么驱动 Pipeline"、"看 interface.json 入口"、"调试跨文件 next 引用"、"重构前理清架构" 时使用。**任何涉及 MaaFramework 节点关系可视化的需求都用这个 skill**,即便用户没明确说"画图"。/maa-pipeline-guideUniversal Pipeline JSON 编写指南。用于编写、修改或审查 MaaFramework Pipeline JSON,设计节点流程,使用 TemplateMatch/OCR/Custom 识别或 Click/Swipe 动作,并配置节点识别、动作或失败时显示自定义日志、轻提示或通知(focus)。npx claudepluginhub khazixw2/everything-maa --plugin everything-maaOther plugins' skills for the same job