# Miniapp Official Scaffold Alignment

> Validate or design a WeChat Mini Program scaffold, repository layout, or TypeScript setup against official platform rules. Use when Codex needs to review `project.config.json`, `app.json`, `miniprogramRoot`, page or component file sets, or the initial repo skeleton before feature work begins.

- **Type:** Skill
- **Install:** `agentstack add skill-sun-sunshine06-miniprogram-skills-miniapp-official-scaffold-alignment`
- **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-official-scaffold-alignment

## Install

```sh
agentstack add skill-sun-sunshine06-miniprogram-skills-miniapp-official-scaffold-alignment
```

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

## About

# Miniapp Official Scaffold Alignment

## Overview

Use this skill when scaffold correctness is the blocker. Validate the repository shape before changing pages, components, or build settings.

## Quick Start

1. Read `references/official-scaffold-baseline.md`.
2. Identify the repository root and the miniapp code root.
3. Check `project.config.json`, `app.json`, page paths, component file sets, and TypeScript assumptions.
4. Report what is already valid, what is incomplete or risky, and the smallest next scaffold decision.

## Core Rules

- Use only official WeChat documentation for normative claims.
- Prefer the smallest runnable scaffold that matches the project shape.
- Distinguish repository root from miniapp code root.
- If the repo authors in TypeScript, make the compiler-plugin path explicit.
- Require matching path-and-name file quartets for pages and components.
- Write "not yet specified" instead of inventing missing spec details.

## Review Checklist

- Does `project.config.json` point at the intended miniapp code root?
- Does `app.json.pages` match real page folders?
- Does every page have matching logic, structure, style, and config files?
- Do custom components declare `component: true` and have matching file sets?
- Is TypeScript support explicit rather than implied?
- Does the repo layout leave room for sibling folders such as `docs/`, backend code, or tooling?

## Output Format

When answering, keep the result short and action-oriented:

1. officially valid parts
2. missing or risky parts
3. recommended scaffold decision
4. first edit to make

## Resources

- `references/official-scaffold-baseline.md`: official rule summary and practical implications
- `references/example-prompts.md`: reusable trigger examples and evaluation notes

## 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-official-scaffold-alignment
- 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%.
