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 15-widget-live-activitygit 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/15-widget-live-activity)<a href="https://agentmods.dev/skills/wangjianqi/appstore/15-widget-live-activity"><img src="https://agentmods.dev/badge/skills/wangjianqi/appstore/15-widget-live-activity/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/15-widget-live-activity"><img src="https://agentmods.dev/badge/skills/wangjianqi/appstore/15-widget-live-activity.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.00036 | $0.02547 |
| Opus 5.5 | $0.00014 | $0.01019 |
| Sonnet 5.5 | $0.00007 | $0.00509 |
| Haiku 4.5 | $0.00004 | $0.00255 |
Grade A, and why
widget-live-activity 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 3mo 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 — 341 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Widget / Live Activity / 动态岛
架构概览
| 特性 | 最低版本 | 框架 | 运行环境 |
|---|---|---|---|
| 主屏幕 Widget | iOS 14+ | WidgetKit | 独立进程 |
| 锁屏 Widget | iOS 16+ | WidgetKit | 独立进程 |
| Live Activity | iOS 16.1+ | ActivityKit | 主 App 进程 |
| Dynamic Island | iOS 16.1+ | ActivityKit | 主 App 进程 |
核心区别:
- Widget 是独立 Extension 进程,与主 App 不共享内存
- Live Activity / Dynamic Island 运行在主 App 进程内
- Widget 必须用 SwiftUI,不支持 UIKit
- Live Activity 的 UI 也必须用 SwiftUI
Widget 开发
创建 Widget Extension
- Xcode → File → New → Target → Widget Extension
- 勾选 "Include Live Activity" 可同时生成 Live Activity 模板
- Widget Extension 有独立 Bundle ID:
com.app.WidgetExtension
目录结构
WidgetExtension/
├── WidgetExtension.swift # 入口 + Provider + Widget View
├── WidgetExtensionBundle.swift # Bundle(多个 Widget 时)
├── Assets.xcassets
└── Info.plist
基本结构
import WidgetKit
import SwiftUI
struct Provider: TimelineProvider {
func placeholder(in context: Context) -> SimpleEntry {
SimpleEntry(date: Date(), title: "示例标题", value: "示例值")
}
func getSnapshot(in context: Context, completion: @escaping (SimpleEntry) -> Void) {
completion(SimpleEntry(date: Date(), title: "快照标题", value: "快照值"))
}
func getTimeline(in context: Context, completion: @escaping (Timeline<SimpleEntry>) -> Void) {
let currentDate = Date()
let entry = SimpleEntry(date: currentDate, title: "实时标题", value: "实时值")
let nextUpdate = Calendar.current.date(byAdding: .minute, value: 30, to: currentDate)!
let timeline = Timeline(entries: [entry], policy: .after(nextUpdate))
completion(timeline)
}
}
struct SimpleEntry: TimelineEntry {
let date: Date
let title: String
let value: String
}
struct WidgetEntryView: View {
let entry: SimpleEntry
var body: some View {
VStack(alignment: .leading, spacing: 4) {
Text(entry.title)
.font(.headline)
Text(entry.value)
.font(.subheadline)
.foregroundColor(.secondary)
}
.padding()
}
}
struct AppWidget: Widget {
let kind: String = "AppWidget"
var body: some WidgetConfiguration {
StaticConfiguration(kind: kind, provider: Provider()) { entry in
WidgetEntryView(entry: entry)
}
.configurationDisplayName("我的小组件")
.description("显示最新数据")
.supportedFamilies([.systemSmall, .systemMedium])
}
}
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.
- 3mo ago First seen · 341 lines · 36 tokens per session scan A 34f6be8a7e6c
widget-live-activity is a skill published in the GitHub repository wangjianqi/AppStore (21 stars, last pushed 6mo ago), licensed MIT. It adds 36 tokens to every session and 2,547 once invoked, about $0.0001 per session on Opus 5.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.
widget-live-activity compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| widget-live-activitywangjianqi/AppStore | Skill | 21 | 6mo ago | MIT | A | 36 | Claude Code, Codex |
| ios-swiftui-developerfindscripter/everything-skills | Skill | 12 | today | none | A | 103 | Claude Code |
| project-structurejpavley/meta-loop-ios | Skill | 3 | 9mo ago | MIT | A | 18 | Claude Code |
| sweetpadsweetpad-dev/sweetpad | Skill | 1.9k | today | MIT | A | 90 | Claude Code, Codex |
| compose-multiplatformericrisco/rsc-harness | Skill | 691 | 5d ago | MIT | A | 80 | Claude Code, Codex |
| build-featuresignerlabs/ShipSwift | Skill | 3.3k | 19d ago | MIT | A | 40 | Claude Code, Codex |
| ios-slim-bindingsdotnet/maui-labs | Skill | 244 | today | MIT | A | 97 | Claude Code, Codex |