/everything-maa:maa-project-initfrom everything-maa
Scans MaaFramework game/app automation projects, resolves interface.json, imports, resources, and pipelines, then writes a compact onboarding document (basic_info.md) for future AI sessions.
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; scripts run unread.
Use this skill to turn a MaaFramework consumer project into a compact onboarding document for future AI sessions. It scans the project's pipeline and image resources, identifies reusable control nodes, and writes basic_info.md at the target project root.
The generated file is a producer/consumer handoff: maa-project-init produces project context, while maa-pipeline-guide, maa-pipeline-generate, maa-pipeline-graph, maa-pipeline-option, and maa-pipeline-testing consume the relevant sections before broad repository discovery.
Do not run this skill against MaaMCP itself unless the user explicitly asks to analyze MaaMCP as a consumer project. MaaMCP is the tool runtime; the normal target is a MaaFramework consumer project with a main interface.json or interface.jsonc.
The main Interface is the source of truth. Do not infer a MaaFramework project from an assets/... directory convention.
interface.json / interface.jsonc or an assets/interface.json / assets/interface.jsonc as the main Interface. Both are common valid project layouts. If both locations exist, use the root-level Interface first as a deterministic tie-breaker.import[] path relative to the main Interface directory. Imports may contribute only top-level task, option, and preset; controller, resource, agent, and other project-level declarations remain in the main Interface.resource[].path relative to the main Interface directory. Pipeline and image files are read from those declared resource roots.languages[] relative to the main Interface directory when it is present.agent in either object form or array form; collect .py paths from every config's child_args.M9A is a standard root-Interface project: the root interface.json imports tasks/**/*.json, declares resource combinations such as resource/base plus channel overlays, and uses array-form agent with agent/bootstrap.py. Boilerplate-family projects such as MAAPVZ, MaaDuDuL, and MaaNTE commonly place the main Interface at assets/interface.json or assets/interface.jsonc; their task entries may live in the main Interface or come entirely from imports. Treat both shape families as valid acceptance cases.
Locate the target project root.
Run the analyzer in summary mode first:
python "<skill-dir>/scripts/analyze_pipeline_project.py" "<project-root>"
Inspect the summary for:
interface.jsoncontext.run_task() / run_recognition() external entrieschild_args resolution + project_root 与 4 层 ancestor 约定入口候选 + 交叉对比)Task counts describe the merged Interface bundle's total top-level task[] entries after imports. Separator and other display-only task entries remain counted; if a report separately claims a functional-task count, it must state the filter used.
Generate basic_info.md only after the summary looks reasonable:
python "<skill-dir>/scripts/analyze_pipeline_project.py" "<project-root>" --write-basic-info
If basic_info.md already exists, the script refuses to overwrite it. Use --overwrite only after the user explicitly confirms.
Report where basic_info.md was written and name the most important sections that still need human review.
When handing off to another Maa skill:
basic_info.md section 0 and the routed sections for its taskbasic_info.md, rerun summary mode and report staleness; do not overwrite silentlyinterface.json / interface.jsonc and its direct import[] declaration filespipeline/**/*.json and default_pipeline.json under each resource path declared by the main Interfaceimage/**context.run_task() and context.run_recognition() under agent/**/*.py@AgentServer.custom_action(...) registrations under agent/**/*.pyagent[] / agent.child_args 里每条 .py 的磁盘解析状态(与运行时 maa_mcp/agent_supervisor._build_subprocess_cmd 同步上溯 4 层)agent/main.py、agent/server.py 等约定入口的候选存在性(AGENT_DIR_NAMES × AGENT_ENTRY_BASENAMES,不递归子目录)For a legacy MaaGumballs-style layout, the script should discover entries such as Start_Up, DailyTask, Reward_Execute, Shop, AutoSky, JJC, Mars, DivineForgeLand_Start, TSD_Entry, AutoCdk, and StopGumballs, then connect them to the pipeline nodes that define them. For M9A, the same acceptance check is root interface.json, all loaded task imports, all declared resource roots, and the declared bootstrap agent. For boilerplate-family projects, the equivalent check is the assets/ main Interface, all loaded task imports, declared resource roots, and the declared agent path.
Parse these pipeline link fields:
nexton_errorinterruptSupport these node reference forms:
"ConfirmButton"["A", "B"]{ "name": "A", "jump_back": true }"[JumpBack]BackText", "[Anchor]SomeNode"Strip bracket prefixes when resolving the target node, but preserve the prefix in summaries where useful.
anchor declarationsA node's own top-level anchor field (string | list | object) is a distinct concept from the next-element anchor attribute above: it declares an anchor name that [Anchor]X references resolve against, not a reference itself.
"anchor": "Cooking" — anchor Cooking now targets this node."anchor": ["A", "B"] — several anchors now target this node."anchor": { "Cooking": "TargetNode" } — object form: explicit target, which need not be this node."anchor": { "Cooking": "" } — clears the anchor; the name stays declared with no current target.Resolve every [Anchor]X / {"anchor": true} reference through the anchor name → target node table built from these declarations (case-insensitive on the anchor attr) before computing unresolved references, in-degree, isolated nodes, and orphan candidates — otherwise every anchor reference is misreported as a dangling node reference. One anchor name may legitimately map to many target nodes (whichever node declared it last wins at runtime); treat that as normal, not a conflict. Report an anchor name that is never declared (unresolved_anchor_refs) separately from a declared anchor whose explicit object-form target does not exist (dangling_anchor_targets) — they indicate different problems.
Generate bounded Mermaid flowcharts from each interface.json task entry. These diagrams are meant to orient MaaMCP and future skills quickly, not to replace a full graph database.
entry node.next, on_error, and interrupt edges with edge labels.JumpBack, jump_back, and anchor in edge labels.basic_info.md.action: Custom (including v2 object form), add a
separate Python Agent block. Link the Pipeline node to the block as a
CustomAction call, link the block back as returns, and show the matched
@AgentServer.custom_action(...) handler and source location when available.Treat a node as likely reusable when either condition is true:
Important common categories:
ClickKey with Android key 4basic_info.md ContentsThe generated document must be concise and useful to an AI agent. Include:
For section 2, the "Agent script paths" subsection includes three parts:
child_args .py with Status (resolved / unresolved / non-py / absolute) and the absolute path of resolution (if any).AGENT_DIR_NAMES × AGENT_ENTRY_BASENAMES candidate under root + 4 ancestor levels with an Exists column.agent/bootstrap.py an orphan.Warnings are emitted when an agent config has malformed child_args, when the aggregate child_args is empty or has no .py entries, or when a declared .py cannot be resolved. Discovered-but-unused conventional entries are compatibility context, not warnings. The scanner mirrors maa_mcp/agent_supervisor._build_subprocess_cmd's parent-walk semantics (AGENT_PARENT_WALK_LIMIT = 4); keep the two limits in sync if you change one.
Keep automatically detected facts separate from TODOs. Do not invent game semantics that are not present in the project files.
If a device or window is available and the user wants deeper game research, use MaaMCP after file scanning:
screencapbasic_info.mdLive observations must include time, controller/device, screenshot size/orientation, visible page evidence, tested node, score, and whether an action ran. If OCR and screenshot catch different frames during a transition, record them as separate observations and do not promote either one to a stable project fact.
For safe initialization validation, prefer a temporary DoNothing recognition probe derived from a known public node. Run it with start_agent=false when Custom code is unnecessary, inspect recognition.all_results, call stop_pipeline, and remove the temporary file.
This is an enhancement, not a blocker. File scanning must work without a live device.
basic_info.md without explicit confirmation.basic_info.md from another repository into MaaMCP.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub khazixw2/everything-maa --plugin everything-maa13 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.Other plugins' skills for the same job