# 家谱 APP 地基重整 Implementation Plan > **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. **Goal:** 在不改变 A01、G01 已验收视觉结果的前提下,完成页面路由命名、图片资产包、代码中文注释和无引用资源清理的可维护地基。 **Architecture:** `pages.json` 继续作为唯一实际路由源;P00 文档提供页面语义映射。跨模块图片归入 `static/assets/foundation/{opaque,transparent}`,模块专用图片归入 `static/assets/modules//`。页面只引用语义路径;公共组件仅复用两个及以上已确认页面的稳定结构。 **Tech Stack:** Vue 3、uni-app、SCSS、PowerShell 审计脚本、HBuilderX Android 预览。 ## Global Constraints - Android `uni-app`;不新增依赖、接口、业务功能或未确认页面状态。 - A01、G01 在 412 × 915 的可见结果冻结,迁移后必须回归验证。 - 可见装饰一律为图片:`opaque` 负责完整底色,`transparent` 为 RGBA 叠加;禁止 CSS/SVG 装饰和截图切片。 - 页面路径采用 `<编号>-<语义名>.vue`;旧入口必须在所有引用更新并验证后删除。 - 关键结构、路由、资产图层和复杂逻辑使用中文注释;不得保留无用代码、资产、依赖或兼容入口。 --- ### Task 1: 建立可重复的地基审计 **Files:** - Create: `tests/foundation-structure-audit.ps1` - Modify: `docs/design/P00_页面结构与资产清单.md` - Test: `tests/foundation-structure-audit.ps1` **Interfaces:** - Consumes: `pages.json` 的 `pages[*].path`,P00 的目标页面命名规则。 - Produces: 退出码 `0` 表示路由、文件、资产目录和中文文件头满足当前迁移阶段;非 `0` 输出具体缺失路径。 - [ ] **Step 1: 写出会失败的结构审计** 在 `tests/foundation-structure-audit.ps1` 定义下列检查: ```powershell $pages = (Get-Content -Raw pages.json | ConvertFrom-Json).pages foreach ($page in $pages) { $file = "$($page.path).vue" if (-not (Test-Path $file)) { throw "缺少路由页面:$file" } if ($file -match '/(index|list|detail)\.vue$') { throw "最终页面名不允许使用:$file" } if (-not (Get-Content -Raw $file -Encoding utf8).StartsWith('