# Miniapp Center Hub Refactor

> Refactor a growing WeChat Mini Program whose top-level navigation has become scattered across tabs such as home, profile, inbox, integrations, or settings into a clearer hub or center structure. Use when Codex needs to regroup top-level tabs, separate high-frequency action flows from low-frequency settings, define internal hub sections, or migrate detailed pages without collapsing everything into…

- **Type:** Skill
- **Install:** `agentstack add skill-sun-sunshine06-miniprogram-skills-miniapp-center-hub-refactor`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [Sun-sunshine06](https://agentstack.voostack.com/s/sun-sunshine06)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [Sun-sunshine06](https://github.com/Sun-sunshine06)
- **Source:** https://github.com/Sun-sunshine06/miniprogram-skills/tree/main/skills/miniapp-center-hub-refactor

## Install

```sh
agentstack add skill-sun-sunshine06-miniprogram-skills-miniapp-center-hub-refactor
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 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

1. Read `references/center-hub-playbook.md`.
2. Audit the current top-level tabs, repeated entry points, and detailed pages before moving any routes.
3. Separate high-frequency action flow from low-frequency settings flow.
4. Keep the hub as an aggregator and keep detailed pages for flows that still need their own state, forms, or validation.
5. If the request is only about shortening page text, use `miniapp-user-facing-copy-trim` instead.

## 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`, or `status`, 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

1. current navigation problem
2. proposed hub structure
3. page ownership and migration map
4. migration order

## Resources

- `references/center-hub-playbook.md`: audit checklist, section design rules, and migration guidance
- `references/example-prompts.md`: reusable trigger and non-trigger prompts

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [Sun-sunshine06](https://github.com/Sun-sunshine06)
- **Source:** [Sun-sunshine06/miniprogram-skills](https://github.com/Sun-sunshine06/miniprogram-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-sun-sunshine06-miniprogram-skills-miniapp-center-hub-refactor
- Seller: https://agentstack.voostack.com/s/sun-sunshine06
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
