Analyze restore activities
Skill synology-apm/apm-sdk-python/skills/analyze-restore-activities
Summarize restore activity trends and investigate restore failures over a time window. Use when the user asks about restore history, trends, or a specific restore failure.From its SKILL.md
npx -y skills add synology-apm/apm-sdk-python --skill analyze-restore-activitiesAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.8 KB, as published. Nobody here has run it
Analyze Restore Activities
When the user asks to summarize recent restore activity, understand restore trends, or investigate a specific restore:
See apm-mcp-conventions for shared conventions this skill relies on (list vs. get field completeness, pagination, permission modes).
-
Determine the time window. Default: last 7 days. Compute
since/untilISO 8601 strings. -
Call
list_restore_activitieswithhistory=true, the computed window, andlimit=500. -
Group results by
statusinto three buckets (mirroring all 10RestoreActivityStatusvalues so none is silently dropped):- success:
success - failed:
failed,partial,canceled - in-progress:
preparing,restoring,canceling,ready_for_migrate,migrate_vm_manually,migrating
- success:
-
For each failed restore, call
get_restore_activityto retrieve log entries and the detailed error message. -
Identify patterns:
- Frequent restores of the same workload: may indicate data quality issues
- Long restore durations:
finished_at - started_at> expected - Failed restores: collect error messages and look for common causes
-
Present:
- Summary: total restores, success rate, average duration
- Failed restores: workload name, error message, timestamp
- Most-restored workloads in the period (sorted by restore count)
- Any anomalies or recommendations
-
If the user asks about a specific restore or workload, call
get_restore_activitybyactivity_idfor full detail.