Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add wangjianqi/AppStore --skill 20-logging-monitoringgit clone --depth 1 https://github.com/wangjianqi/AppStoreWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/wangjianqi/appstore/20-logging-monitoring)<a href="https://agentmods.dev/skills/wangjianqi/appstore/20-logging-monitoring"><img src="https://agentmods.dev/badge/skills/wangjianqi/appstore/20-logging-monitoring/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/wangjianqi/appstore/20-logging-monitoring"><img src="https://agentmods.dev/badge/skills/wangjianqi/appstore/20-logging-monitoring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00043 | $0.02672 |
| Opus 5 | $0.00022 | $0.01336 |
| Sonnet 5 | $0.00009 | $0.00534 |
| Haiku 4.5 | $0.00004 | $0.00267 |
Grade A, and why
logging-monitoring scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 333 lines — stays where its author put it; the contents beside it link to each section on GitHub.
日志与监控
日志系统
OSLog(推荐)
import os.log
enum AppLog {
static let general = Logger(subsystem: "com.app", category: "General")
static let network = Logger(subsystem: "com.app", category: "Network")
static let storage = Logger(subsystem: "com.app", category: "Storage")
static let ui = Logger(subsystem: "com.app", category: "UI")
}
日志级别
AppLog.general.debug("调试信息: \(detail)")
AppLog.general.info("常规信息: 用户登录成功")
AppLog.network.warning("网络警告: 请求超时,将重试")
AppLog.storage.error("存储错误: CoreData 保存失败 - \(error)")
AppLog.general.fault("严重错误: 数据损坏")
| 级别 | 用途 | Release 可见 | 性能影响 |
|---|---|---|---|
| debug | 开发调试 | ❌ | 极低(编译时移除) |
| info | 关键流程 | ✅ | 低 |
| warning | 异常但可恢复 | ✅ | 低 |
| error | 功能失败 | ✅ | 中 |
| fault | 严重错误 | ✅ | 中 |
规范
- 禁止使用
print(),统一用Logger - subsystem 用 Bundle Identifier,category 按模块划分
- 日志中禁止包含敏感数据(Token、密码、身份证号)
- Debug 日志用
#if DEBUG或Logger.debug(Release 自动过滤) - 日志格式:
{操作} - {对象} - {结果/原因}
Console 过滤
subsystem:com.app AND category:Network
level:error OR level:fault
崩溃监控
Firebase Crashlytics
配置
- SPM 添加
firebase-ios-sdk,Product 选FirebaseCrashlytics - Build Phase 添加脚本:
"${BUILD_DIR%/Build/*}/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/run"
Info.plist添加FirebaseCrashlyticsCollectionEnabled = NO(延迟初始化)
初始化
import FirebaseCore
import FirebaseCrashlytics
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
FirebaseApp.configure()
Crashlytics.crashlytics().setCrashlyticsCollectionEnabled(true)
return true
}
自定义键值
Crashlytics.crashlytics().setUserID(userId)
Crashlytics.crashlytics().setCustomValue("premium", forKey: "subscription_tier")
Crashlytics.crashlytics().setCustomValue(true, forKey: "has_completed_onboarding")
记录非致命异常
do {
try performRiskyOperation()
} catch {
Crashlytics.crashlytics().record(error: error)
}
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 333 lines · 43 tokens per session scan A 5a8d370b9fae
logging-monitoring is a skill published in the GitHub repository wangjianqi/AppStore (11 stars, last pushed 3mo ago), licensed MIT. It adds 43 tokens to every session and 2,672 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
ipaship-audit
Use when auditing iOS/Android app submissions for compliance with Apple App Store Review Guidelines or Google Play Developer Policies. Scan .ipa, .apk, or .zip files against official store policies, generate structured compliance reports, and identify violations with remediation steps.
view-specifications
Guide for writing view specification documents and a starter template for SwiftUI and cross-platform views.
project-structure
Directory layout, file responsibilities, and Xcode integration for meta-loop projects.
analyzing-ios-app-security-with-objection
Runtime iOS app security testing with Objection (Frida): inspect keychain and filesystem data, explore app internals at runtime, and validate/bypass client-side protections during authorized mobile assessments.
ios-simulator-skill
29 production-ready scripts for iOS app testing, building, and automation. Provides semantic UI navigation, build automation, accessibility testing, and simulator lifecycle management. Optimized for AI agents with minimal token output.
argent-tv-interact
Control and inspect TV apps via argent — Apple TV (tvOS), Android TV (leanback), and Amazon Fire TV (Vega). Boot the target, read focus, navigate with the D-pad remote, type, screenshot, and on Vega debug the JS runtime (evaluate, console logs, network inspector). Use when a task targets a TV (runtimeKind "tv", or…