Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By AvdLeev1.0.0MITIn 1 marketplace
Analyzes Diagnostics HTML reports from customer support requests, reading embedded JSON for session logs, crash diagnostics and app or system metadata. Falls back to parsing legacy HTML reports when no JSON is embedded.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
diagnostics, support, debugging, logs, html-report, crash-analysis, customer-support, json
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
| Example mail composer | Example Report |
|---|---|
![]() | ![]() |
Diagnostics is a library written in Swift which makes it really easy to share Diagnostics Reports to your support team.
The library allows to easily attach the Diagnostics Report as an attachment to the MFMailComposeViewController.
MFMailComposeViewControllerDiagnosticsReportFilterDiagnosticsLogger to add your own logsThe default report already contains a lot of valuable information and could be enough to get you going.
Make sure to set up the DiagnosticsLogger as early as possible to catch all the system logs, for example in the didLaunchWithOptions:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
do {
try DiagnosticsLogger.setup()
} catch {
print("Failed to setup the Diagnostics Logger")
}
return true
}
Then, simply show the MFMailComposeViewController using the following code:
import UIKit
import MessageUI
import Diagnostics
class ViewController: UIViewController {
@IBAction func sendDiagnostics(_ sender: UIButton) {
Task { @MainActor in
/// Create the report.
let report = await DiagnosticsReporter.create()
guard MFMailComposeViewController.canSendMail() else {
/// For debugging purposes you can save the report to desktop when testing on the simulator.
/// This allows you to iterate fast on your report.
report.saveToDesktop()
return
}
let mail = MFMailComposeViewController()
mail.mailComposeDelegate = self
mail.setToRecipients(["[email protected]"])
mail.setSubject("Diagnostics Report")
mail.setMessageBody("An issue in the app is making me crazy, help!", isHTML: false)
/// Add the Diagnostics Report as an attachment.
mail.addDiagnosticReport(report)
present(mail, animated: true)
}
}
}
extension ViewController: MFMailComposeViewControllerDelegate {
func mailComposeController(_ controller: MFMailComposeViewController, didFinishWith result: MFMailComposeResult, error: Error?) {
controller.dismiss(animated: true)
}
}
On macOS you could send the report by using the NSSharingService:
import AppKit
import Diagnostics
func send(report: DiagnosticsReport) {
let service = NSSharingService(named: NSSharingService.Name.composeEmail)!
service.recipients = ["[email protected]"]
service.subject = "Diagnostics Report"
let url = URL(fileURLWithPath: NSTemporaryDirectory()).appendingPathComponent("Diagnostics-Report.html")
// remove previous report
try? FileManager.default.removeItem(at: url)
do {
try report.data.write(to: url)
} catch {
print("Failed with error: \(error)")
}
service.perform(withItems: [url])
}
Diagnostics reports remain a single .html attachment that users can email and open in a browser. New reports also embed a structured JSON payload in:
<script id="diagnostics-report-data" type="application/json">
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub avdlee/diagnostics --plugin diagnostics-report-analyzerPlugins from other owners that cover similar ground