Skip to content
Skills Library
Programming · Analysis

maa-diagnose

/maa-diagnose

Diagnose 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

Licence
MIT
Last repository change
06.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
5
Scripts
1
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 06.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/find-maa-evidence-skill.mjs

What it does and when to use it

Diagnose 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

Original author description

Diagnose 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

How it works

  1. Decide whether to diagnose
  2. Load the authoritative upstream Skill
  3. Discover the runtime before invoking it
  4. Collect bounded local inputs
  5. Prefer the cross-tool pipeline
  6. Read the structured contract
  7. Stay read-only
  8. Report one owner
Original SKILL.md headings · 84 lines, 952 words
SKILL.md preview
---
name: maa-diagnose
description: Diagnose 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 Diagnose

Drive the externally managed latest diagnostic runtime to turn an unexplained MaaFramework failure into normalized evidence and one bounded failure owner. This skill owns discovery, invocation, and normalization. It does not parse MaaFramework logs itself and does not contain a diagnostic engine.

Read [references/runtime-discovery.md](references/runtime-discovery.md) before the first invocation. Read [references/failure-map.md](references/failure-map.md) before reporting an owner.

## Decide whether to diagnose

Run this skill only when the failing owner is still unknown after the evidence already in hand.

- Do not run it when `$maa-pipeline-testing` already attributed the failure to a node, option, state model, or integration defect. Route that evidence to the owner directly.
- Do not run it as a routine phase of every workflow, and do not run it before a failure exists.
- Do not run it for project scaffold or managed-file health; that is `$maa-project-create` doctor.
- Do not run it for Project Interface schema review; that is `$maa-interface-guide`.

Broad diagnosis is for cross-tool correlation: a runtime failure whose cause could live in the logs, the static project definition, the environment, or the harness.
Treat `maafw.log`, `maafw.bak.<timestamp>.log`, and another `maafw.*.log` path as diagnostic input only when the failure owner is still unknown.

## Load the authoritative upstream Skill

Before composing a MaaEvidenceKit command, locate and read the authoritative upstream `maa-evidence` Skill. This handoff is part of a legitimate diagnosis; it does not broaden this Skill into an entry point for evidence extraction when no failure needs diagnosis.

1. If the user supplies a MaaEvidenceKit checkout, package root, skill directory, or `SKILL.md`, pass each candidate to the locator with `--root PATH`.
2. Run `node scripts/find-maa-evidence-skill.mjs`. The read-only locator searches installed standalone skills, project and user installations, and npm/pnpm global packages while excluding this Skill's own root.
3. For every locator result, read the latest formal GitHub Release of `Windsland52/MaaEvidenceKit`, preferring its integrated `maa-evidence` Skill and falling back to its README. The locator result reports local candidates; it never makes a local `skillPath` authoritative for the latest runtime.
4. If the latest formal release does not expose the integrated Skill or README, use the disclosed default-branch handoff.

Preserve the latest upstream Skill or README's installation, privacy, telemetry, evidence, and version requirements. If no complete authoritative document can be read, stop and report every latest-release and default-branch route attempted. Do not improvise MaaEvidenceKit commands from this Skill alone.

## Discover the runtime before invoking it

1. Resolve the runtime surface with the discovery sequence in `references/runtime-discovery.md`. Never assume a command catalog from memory; the upstream project has already been renamed and has already changed its command names.
2. Record the resolved surface, package version, and output schema id as evidence.
3. Apply one precedence policy: supported local MCP surface first when it is already configured and provably matches npm latest, then the on-demand latest CLI, then a user-supplied local checkout entry point only when its reported version exactly matches npm latest. If that proof is unavailable, stop rather than using an old runtime. Do not mix surfaces inside one diagnosis.
4. If no surface resolves, or the discovered schema id is outside the supported set, stop with `status: error`, `failure_owner: user`, and a `stop_reason`. Never persistently install, build, or upgrade the runtime to make a diagnosis possible.

## Collect bounded local inputs

Pass only what the failure needs, as already-extracted local paths:

- the Maa project root, when static definitions are in question;
- one log file or an extracted log folder, never an archive the runtime must unpack;
- the specific source paths under investigation;
- the entry task, controller, and resource names already known from the run state;
- a time range when the failing run is known, so unrelated sessions stay out of the evidence;
- an optional runtime profile only when discovery proved the installed runtime defines one.

Validate every argument against the discovered contract before invoking. Drop an input the runtime does not accept instead of guessing a flag.

## Prefer the cross-tool pipeline

Use the runtime's cross-tool entry point when both runtime logs and project sources are available, so its correlated relations are produced in one pass. Fall back to a single-adapter command only when just one material kind exists.

Reuse the runtime's own adapters - filesystem discovery, the MaaLogAnalyzer log adapter, the maa-support-extension static adapter, and the local corpus inventory. Do not re-implement discovery, parsing, or retrieval here.

## Read the structured contract

- Request the structured output format and parse the JSON envelope. Never treat the human-readable text or diagram renderer as the primary contract.
- Honour the envelope's own gap fields. Missing evidence, warnings, and truncation flags are results, not noise, and must reach the report.
- Do not claim absence from a truncated or time-filtered view. Say the view was bounded.
- Follow up with the runtime's evidence-lookup commands against the saved result instead of re-running the analysis.

## Stay read-only

Never mutate the project, write into the project tree, install dependencies, connect a device, or rerun a side-effecting task to diagnose it. Disable the runtime's own self-updating behavior and keep its optional upload paths off, as described in `references/runtime-discovery.md`. Write result files only to a scratch path the user accepted, and report that path.

## Report one owner

Map findings to exactly one `failure_owner` using `references/failure-map.md`, and emit:

```yaml
status: success | warning | error
summary: one-line diagnostic result
findings: []
evidence: []
artifacts: []
next_actions: []
failure_owner: generate | option | testing | workflow-design | workflow-implement | project-create | user
stop_reason: null
```

Keep `next_actions` to safe, bounded steps for that owner. Recommend a repair; do not apply one. Return the result to `$maa-workflow-build` `RECOVER`, which decides whether to retry, replan, delegate, request user action, or stop.
Files in this package (5)
  • SKILL.md 7 KB
  • agents/openai.yaml 1 KB
  • references/failure-map.md 5 KB
  • references/runtime-discovery.md 6 KB
  • scripts/find-maa-evidence-skill.mjs 10 KB

Versions

The database has no other skills named maa-diagnose.

Database snapshot: 13.11.2026 · package version 044a3aafb799 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90maa-cli-operate
    Operate 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…
  • 90maa-project-create
    Create, extend, diagnose, and update MaaFramework application projects through the create-maa-project MCP server or CLI. Use when asked to start or scaffold a Maa project, choose Pipeline versus Python Agent templates, add dev tools, GitHub workflows, Agent support, or resource…
  • 95maa-issue-log-analysis
    分析 MaaAssistantArknights 上游仓库公开 Issue(`https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/...` 或 `#1234`)。自动抓取 issue 正文和评论中的 `report_*.zip` 附件,优先读取 `debug/asst.log`、`debug/gui.log`、`config/gui.new.json`、`cache/resource/tasks.json`,并在有后续分卷时补看…
  • 100flutter-runtime-debugging
    Reproduce, inspect, diagnose, and fix Flutter failures in a running app using logs, debugger attachment, DevTools, framework diagnostics, and minimal experiments. Use for runtime exceptions, incorrect live state, hangs, lifecycle failures, or failures that require execution…
  • 90fec-debug-framework
    Use when diagnosing frontend build failures, runtime errors, UI anomalies, API/data problems, white screens, request failures, or unexplained production exceptions; Chinese triggers include debugging, debug, troubleshooting, positioning, error reporting, exceptions, white screens, request failures.
  • 85ro-troubleshoot
    Diagnose rAthena and RO client problems - servers not starting, database errors, script load errors, crashes, login failures, packet errors, missing sprites, build failures. Use when the user says "it's not working", "server won't start", "error in map server", "can't log in",…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.