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 Sun-sunshine06/miniprogram-skills --skill miniapp-center-hub-refactorgit clone --depth 1 https://github.com/Sun-sunshine06/miniprogram-skillsWrote 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/sun-sunshine06/miniprogram-skills/miniapp-center-hub-refactor)<a href="https://agentmods.dev/skills/sun-sunshine06/miniprogram-skills/miniapp-center-hub-refactor"><img src="https://agentmods.dev/badge/skills/sun-sunshine06/miniprogram-skills/miniapp-center-hub-refactor/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/sun-sunshine06/miniprogram-skills/miniapp-center-hub-refactor"><img src="https://agentmods.dev/badge/skills/sun-sunshine06/miniprogram-skills/miniapp-center-hub-refactor.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.00083 | $0.00535 |
| Opus 5 | $0.00042 | $0.00267 |
| Sonnet 5 | $0.00017 | $0.00107 |
| Haiku 4.5 | $0.00008 | $0.00053 |
Grade A, and why
miniapp-center-hub-refactor 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 11d 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.
What it actually says
Miniapp Center Hub Refactor
Overview
Use this skill when the real problem is information architecture, not just styling or labels. Reach for it when users no longer know where to handle pending work, where to manage settings, or which tab owns integrations and personal state.
Quick Start
- Read
references/center-hub-playbook.md. - Audit the current top-level tabs, repeated entry points, and detailed pages before moving any routes.
- Separate high-frequency action flow from low-frequency settings flow.
- Keep the hub as an aggregator and keep detailed pages for flows that still need their own state, forms, or validation.
- If the request is only about shortening page text, use
miniapp-user-facing-copy-triminstead.
Core Rules
- Start from user questions, not from the current file tree:
- what do I need to handle now
- where do I manage settings or integrations
- Reduce top-level tabs only when the replacement entry remains obvious.
- Give the hub internal sections with stable ownership, such as
inbox,settings, orstatus, instead of turning the hub into one unstructured long page. - Promote summaries and next actions on the hub; demote long explanation and rarely used detail.
- Keep detailed pages when the flow has its own form state, validation, filters, or multi-step interaction.
- Move pages by ownership, not by which old page linked to them.
- Define a migration map from old entry point to new hub location before deleting or hiding old navigation.
- Update top-level navigation, route docs, and smoke checks together so structure changes stay reviewable.
Output Format
- current navigation problem
- proposed hub structure
- page ownership and migration map
- migration order
Resources
references/center-hub-playbook.md: audit checklist, section design rules, and migration guidancereferences/example-prompts.md: reusable trigger and non-trigger prompts
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 11d ago First seen · 52 lines · 83 tokens per session scan A 9467b8bbc894
miniapp-center-hub-refactor is a skill published in the GitHub repository Sun-sunshine06/miniprogram-skills (22 stars, last pushed 1mo ago), licensed MIT. It adds 83 tokens to every session and 535 once invoked, about $0.0004 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-30.
Other skills, from other repositories
swiftui-expert-skill
Use when writing, reviewing, or refactoring SwiftUI code — state management, view composition, performance, macOS-specific APIs, or iOS 26+ Liquid Glass adoption. Also triggers whenever an Xcode Instruments .trace file is referenced (to analyse it) or the user asks to record a new trace — attach to a running app…
swiftui-liquid-glass
Implement, review, or improve SwiftUI features using the iOS 26+ Liquid Glass API. Use when asked to adopt Liquid Glass in SwiftUI UI, refactor to Liquid Glass, or review Liquid Glass usage.
macos-development
Use when building or debugging a macOS app and the request involves — (1) AppKit/SwiftUI interop or modernizing AppKit code, (2) App Sandbox / file-access entitlement errors, especially "works in Xcode, fails in TestFlight", (3) menu bar commands, keyboard shortcuts, or a menu item stuck disabled, (4) multi-window…
vercel-react-native-skills
React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.
flutter-dev
Flutter cross-platform development guide covering widget patterns, Riverpod/Bloc state management, GoRouter navigation, performance optimization, and platform-specific implementations. Includes const optimization, responsive layouts, testing strategies, and DevTools profiling. Use when: building Flutter apps…
phone-harness
Control the user's phone — iPhone through the Mac's iPhone Mirroring window, or an Android over adb: open apps, tap, type, swipe, read the screen.